Skip to content

Commit

Permalink
cli: Update messaging for langsmith api key (#884)
Browse files Browse the repository at this point in the history
* cli: Update messaging for langsmith api key

* Adjust
  • Loading branch information
nfcampos authored Jun 28, 2024
1 parent d9bfe22 commit ca4ad62
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion libs/cli/langgraph_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ def cli():
is_flag=True,
help="Wait for services to start before returning. Implies --detach",
)
@cli.command(help="Start langgraph API server. Requires a license key.")
@cli.command(
help="Start langgraph API server. For local testing, requires a LangSmith API key with access to LangGraph Cloud closed beta. Requires a license key for production use."
)
@log_command
def up(
config: pathlib.Path,
Expand All @@ -173,6 +175,12 @@ def up(
debugger_port: Optional[int],
postgres_uri: Optional[str],
):
click.secho("Starting LangGraph API server...", fg="green")
click.secho(
"""For local dev, requires env var LANGSMITH_API_KEY with access to LangGraph Cloud closed beta.
For production use, requires a license key in env var LANGGRAPH_CLOUD_LICENSE_KEY.""",
fg="red",
)
with Runner() as runner, Progress(message="Pulling...") as set:
capabilities = langgraph_cli.docker.check_capabilities(runner)
args, stdin = prepare(
Expand Down

0 comments on commit ca4ad62

Please sign in to comment.