feat: set default host URL for CLI and simplify deployment error handling

- Added a default value for the `--host-url` option in the CLI to streamline user experience.
- Removed the explicit error check for `host_url` in the `deploy` function, allowing for a more flexible deployment process.
This commit is contained in:
David Asamu
2026-03-09 12:10:55 -04:00
committed by hari-dhanushkodi
parent 05db19dd45
commit 7c758b3f0c
+1 -3
View File
@@ -642,6 +642,7 @@ def build(
@click.option(
"--host-url",
envvar="LANGGRAPH_HOST_URL",
default="https://api.smith.langchain.com",
hidden=True,
)
@click.option("--image-name", hidden=True)
@@ -694,9 +695,6 @@ def deploy(
no_wait: bool,
docker_build_args: Sequence[str],
):
if not host_url:
raise click.UsageError("Provide --host-url or set LANGGRAPH_HOST_URL")
config_json = langgraph_cli.config.validate_config_file(config)
warn_non_wolfi_distro(config_json)