diff --git a/README.md b/README.md index a8ba58a..0d90a07 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ The installer: | `IRIS_HOME` | `~/.iris` | Installation directory | | `IRIS_VERSION` | `latest` | Specific version to install (e.g. `1.1.2`) | | `IRIS_INSTALL_METHOD` | `auto` | Force `pip` or `pipx` | +| `IRIS_SERVER_URL` | `https://iris.clickbus.com` | Platform URL used by `iris login` and `iris install` — override for local dev | **Uninstall:** diff --git a/iris/cli.py b/iris/cli.py index d7b6a80..5e84921 100644 --- a/iris/cli.py +++ b/iris/cli.py @@ -869,7 +869,7 @@ def _run_login(argv: list[str]) -> None: # Manual token login (for CI/CD) if token: - s = server or os.environ.get("IRIS_SERVER_URL") or "http://localhost:3000" + s = server or os.environ.get("IRIS_SERVER_URL") or "https://iris.clickbus.com" if not manual_login(s, token): sys.exit(1) return @@ -1272,7 +1272,7 @@ def _run_upgrade() -> None: except Exception: pass server_url = ( - os.environ.get("IRIS_SERVER_URL") or config_server or "http://localhost:3000" + os.environ.get("IRIS_SERVER_URL") or config_server or "https://iris.clickbus.com" ).rstrip("/") install_url = f"{server_url}/install.sh" diff --git a/iris/platform/auth.py b/iris/platform/auth.py index be6d5b3..85dbd8c 100644 --- a/iris/platform/auth.py +++ b/iris/platform/auth.py @@ -11,7 +11,7 @@ from iris.platform.config import load_config, save_config -DEFAULT_SERVER = os.environ.get("IRIS_SERVER_URL", "http://localhost:3000") +DEFAULT_SERVER = os.environ.get("IRIS_SERVER_URL", "https://iris.clickbus.com") TIMEOUT_SECONDS = 120