From 7c758b3f0c53bbd5fc2b67f37ccb8c192960c6fb Mon Sep 17 00:00:00 2001 From: David Asamu Date: Thu, 26 Feb 2026 22:24:29 +0000 Subject: [PATCH] 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. --- libs/cli/langgraph_cli/cli.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/cli/langgraph_cli/cli.py b/libs/cli/langgraph_cli/cli.py index 24725b6a7..590125c38 100644 --- a/libs/cli/langgraph_cli/cli.py +++ b/libs/cli/langgraph_cli/cli.py @@ -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)