langgraph-cli

Scaffold, develop, build, and deploy LangGraph applications using the langgraph CLI.

Updated Jul 16, 2026
One-click install
npx skills add https://github.com/flemx/salesforce-langgraph-agent --skill langgraph-cli-flemx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: langgraph-cli
Source: https://github.com/flemx/salesforce-langgraph-agent/tree/main/.agents/skills/langgraph-cli
Command: npx skills add https://github.com/flemx/salesforce-langgraph-agent --skill langgraph-cli-flemx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires langgraph-cli.

What problem does it solve? Managing the full lifecycle of a LangGraph application—from scaffolding a project to deploying it on LangGraph Platform—requires knowing many CLI commands, flags, and the structure of the langgraph.json configuration file. This Skill provides complete operational guidance so the agent can correctly scaffold, run, build, and deploy LangGraph apps without guesswork. ## Core Features & Use Cases - Project Scaffolding: Create new projects from templates like agent-python or deep-agent-js using langgraph new. - Local Development & Validation: Run hot-reload dev servers with langgraph dev (no Docker) or production-like stacks with langgraph up (Docker Compose with Postgres). - Build & Deploy: Build Docker images with langgraph build and ship to LangSmith Deployments with langgraph deploy, then monitor with langgraph deploy logs. - Configuration Guidance: Author and edit langgraph.json with correct dependencies, graphs, env, and dockerfile_lines keys. - Use Case: A developer asks the agent to create a new LangGraph agent, run it locally for testing, and then deploy it to LangGraph Platform—the Skill supplies the exact commands and config for each step. ## Quick Start Ask the agent to scaffold a new LangGraph project and start a local dev server with hot reload using the langgraph CLI.

Frequently Asked Questions about langgraph-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a LangGraph application to LangGraph Platform?

Run langgraph deploy from the project root with a valid langgraph.json and LANGSMITH_API_KEY set. Docker is required, and on Apple Silicon you also need Docker Buildx to cross-compile to linux/amd64. Use --name, --deployment-type prod, or --deployment-id to control the deployment.

What is the difference between langgraph dev and langgraph up?

langgraph dev runs a lightweight hot-reload server without Docker on port 2024, using in-memory or locally pickled state. langgraph up launches a production-like Docker Compose stack with Postgres on port 8123, suited for pre-deploy validation.

How do I configure langgraph.json for a Python project?

Set dependencies to ["."] so local packages resolve from pyproject.toml or requirements.txt, and map each graph ID to a path like ./my_agent/agent.py:graph. Optionally add env, python_version, pip_config_file, and dockerfile_lines keys.

Can I use the langgraph CLI with JavaScript projects?

Yes, use npx @langchain/langgraph-cli or install it globally with npm install -g @langchain/langgraph-cli, which provides the langgraphjs command. JS templates like new-langgraph-project-js and deep-agent-js are available, and node_version can be set in langgraph.json.

Why does langgraph deploy fail to update my deployment?

langgraph deploy can only update deployments it created itself. Deployments created through the LangSmith UI or GitHub integration must be updated through those interfaces instead.

Does langgraph dev require a LangSmith API key?

No, langgraph dev runs without LANGSMITH_API_KEY, but traces will not appear in LangSmith. The key is mandatory only for langgraph deploy, and can also be supplied via LANGCHAIN_API_KEY.