LangGraph CLI
The `langgraph-cli` is a command-line interface tool designed to interact with the LangGraph API, primarily for deploying, managing, and running LangGraph applications. It enables developers to build, deploy, and validate LangGraph applications to various environments. The current version is 0.4.21, and it's actively developed with frequent releases, often alongside updates to the core `langgraph` library.
Warnings
- gotcha The `langgraph-cli` is distinct from the `langgraph` Python library. The CLI is used for deploying and interacting with *deployed* LangGraph applications, not for authoring or running local Python `langgraph` code directly. Users often confuse the two.
- gotcha Deploying LangGraph applications with `langgraph deploy` often requires external dependencies like Docker or specific cloud provider credentials (e.g., for AWS ECS/Lambda, GCP Cloud Run). The CLI itself doesn't bundle these dependencies.
- breaking CLI command arguments and subcommands can change between minor versions. For instance, the `deploy` subcommands, or available flags, may be modified or renamed. New commands like `validate` are added incrementally.
- gotcha When interacting with remote LangGraph applications (e.g., using `langgraph run`), you need to configure access via environment variables like `LANGCHAIN_API_KEY` and `LANGCHAIN_ENDPOINT`.
Install
-
pip install langgraph-cli
Quickstart
langgraph --help