
Langgraph Cli
Scaffold, hot-reload, Docker-build, and deploy LangGraph apps using `langgraph.json` and the full `langgraph` CLI lifecycle.
Install
npx skills add https://github.com/langchain-ai/langchain-skills --skill langgraph-cliWhat is this skill?
- Covers langgraph new, dev, build, up, deploy, and dockerfile generation
- Local dev with hot reload via `langgraph dev` (no Docker)
- Production-like local runs via Docker Compose with `langgraph up`
- All commands except `new` read root `langgraph.json` configuration
- LangSmith Deployments management: list, delete, logs
Adoption & trust: 637 installs on skills.sh; 782 GitHub stars; trending (+100% hot-view momentum).
Recommended Skills
Microsoft Foundrymicrosoft/azure-skills
Azure Aimicrosoft/azure-skills
Azure Hosted Copilot Sdkmicrosoft/azure-skills
Lark Eventlarksuite/cli
Running Claude Code Via Litellm Copilotxixu-me/skills
Setup Matt Pocock Skillsmattpocock/skills
Journey fit
Primary fit
LangGraph CLI is where agent graphs become runnable projects—canonical shelf is build-time agent tooling even though deploy spans ship/operate. Graph apps, `langgraph dev`, and `langgraph.json` are core agent-tooling concerns distinct from generic backend CRUD.
SKILL.md
READMESKILL.md - Langgraph Cli
<overview> The `langgraph` CLI manages the full lifecycle of LangGraph applications — from scaffolding a new project to deploying it to LangGraph Platform (LangSmith Deployments). Key commands: - **`langgraph new`** — Scaffold a project from a template - **`langgraph dev`** — Run locally with hot reload (no Docker) - **`langgraph build`** — Build a Docker image - **`langgraph up`** — Launch locally via Docker Compose - **`langgraph deploy`** — Ship to LangGraph Platform - **`langgraph dockerfile`** — Generate a Dockerfile All commands (except `new`) read from a `langgraph.json` config file in the project root. </overview> ## When to use Use this skill when the user wants to: - Scaffold a new LangGraph project - Run a local development or production-like server - Build or deploy a LangGraph application - Understand or edit `langgraph.json` configuration - Manage LangSmith Deployments (list, delete, view logs) ## Installation ```bash # Python pip install 'langgraph-cli[inmem]' # includes langgraph dev support pip install langgraph-cli # without dev server (build/up/deploy only) # if using UV as package manager uv add "langgraph-cli[inmem]" # includes langgraph dev support uv add langgraph-cli # without dev server (build/up/deploy only) # JavaScript npx @langchain/langgraph-cli # use on demand npm install -g @langchain/langgraph-cli # install globally (available as langgraphjs) ``` ## Commands ### `langgraph new [PATH]` Scaffold a new project from a template. ```bash langgraph new # interactive template selection langgraph new ./my-agent # create in specific directory langgraph new --template agent-python # skip prompt, use template directly ``` Available templates: `deep-agent-python`, `deep-agent-js`, `agent-python`, `new-langgraph-project-python`, `new-langgraph-project-js` ### `langgraph dev` Run a local development server with hot reloading. No Docker required. ```bash langgraph dev # default: localhost:2024 langgraph dev --port 8000 # custom port langgraph dev --config ./langgraph.json # explicit config path langgraph dev --no-reload # disable hot reload langgraph dev --no-browser # don't auto-open LangGraph Studio langgraph dev --host 0.0.0.0 # bind to all interfaces (trusted networks only) langgraph dev --tunnel # expose via Cloudflare tunnel for remote access langgraph dev --debug-port 5678 # enable remote debugger (requires debugpy) langgraph dev --n-jobs-per-worker 20 # max concurrent jobs per worker (default: 10) ``` ### `langgraph build` Build a Docker image for the LangGraph API server. ```bash langgraph build -t my-image # required: tag the image langgraph build -t my-image --no-pull # use locally-built base images langgraph build -t my-image -c langgraph.json # explicit config langgraph build -t my-image --base-image langchain/langgraph-server:0.2.18 # pin base version ``` ### `langgraph up` Launch the LangGraph API server via Docker Compose (includes Postgres). ```bash langgraph up # default port 8123 langgraph up --port 8000 # custom port langgraph up --watch # restart on file changes langgraph up --recreate # force fresh build (useful for pre-deploy validation) langgraph up --postgres-uri postgresql://... # external Postgres langgraph up --no-pull # use local images (after langgraph build) langgraph up --image my-image # skip build, use pre-built image langgraph up -d docker-compose.yml # add extra