LangGraph has announced a new CLI (command-line interface) within the langgraph-cli package, designed to simplify the deployment and management of agents directly from the command line.
Key Features
The main command, langgraph deploy, allows deploying an agent to LangSmith Deployment in a single step. This facilitates the integration of LangSmith Deployment into existing CI/CD workflows, using tools like GitHub Actions, GitLab CI, or Bitbucket Pipelines.
When you run the command, the CLI builds a Docker image for your local LangGraph project and provisions the infrastructure needed to run it. This includes setting up supporting services like Postgres for persistence and Redis for streaming messages, ensuring that the agent can run reliably in production without any manual infrastructure setup.
Additional Commands
In addition to langgraph deploy, other commands have been introduced to facilitate the creation and management of deployments:
langgraph deploy --help: View all available commands.langgraph deploy list: List deployments in your workspace.langgraph deploy logs: View deployment logs.langgraph deploy delete: Delete deployments.
New templates for agents, both simple and complex, have also been released, which can be generated with the langgraph new command.
Getting Started
The new commands are available in the latest version of langgraph-cli. To get started quickly, you can use uvx:
uvx --from langgraph-cli langgraph deploy
Full documentation is available here: https://docs.langchain.com/langsmith/cli#deploy.
๐ฌ Comments (0)
๐ Log in or register to comment on articles.
No comments yet. Be the first to comment!