# 使用 Homebrew, Nix 安装 langgraph-cli

查看 langgraph-cli 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:langgraph-cli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install langgraph-cli
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#langgraph-cli
```

  证据: nixpkgs package indexes: pkgs/by-name/la/langgraph-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:langgraph-cli
- **软件包管理器:** Homebrew
- **版本:** 0.4.31
- **来源摘要:** Command-line interface for deploying apps to the LangGraph platform
- **主页:** <https://www.github.com/langchain-ai/langgraph>
- **最后更新:** 2026-07-12T00:18:23Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- langgraph (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.4.31
## 项目历史与用法

LangGraph CLI is the command-line tool for creating, developing, building, and running LangGraph applications and LangGraph API servers.

### 项目历史

LangGraph grew out of the LangChain ecosystem as lower-level infrastructure for stateful, long-running agent workflows. The LangGraph repository describes the core framework as orchestration infrastructure for durable execution, human-in-the-loop control, memory, debugging, and production deployment.

The CLI package is housed in the LangGraph monorepo under `libs/cli` and is published as the `langgraph-cli` Python package. Its project metadata describes it as a CLI for interacting with the LangGraph API, with a `langgraph` console script and dependencies for HTTP access, dotenv loading, and LangGraph SDK integration.

### 采用历史

The CLI follows LangGraph's broader adoption among AI-agent developers: it packages local development, Docker image generation, and deployment commands behind one command name. The upstream README cites companies such as Klarna, Replit, and Elastic as LangGraph users, which made the CLI part of the operational tooling around a visible agent framework.

### 使用方式

The docs define `langgraph.json` as the default configuration file for declaring dependencies, graphs, and environment variables. Common commands include local development, image build, deployment, starting services with Docker Compose, and generating Dockerfiles.

### 为什么软件包爱好者会关心

For package nerds, LangGraph CLI is interesting because it is not just a wrapper around a library: it is the packaging boundary between agent source trees, local service orchestration, Docker images, and hosted LangGraph deployments. Its Homebrew formula also reflects a Python AI tool being distributed as a first-class command-line utility.

### 时间线

- 2024: LangGraph became a prominent LangChain-family project for stateful agent workflows.
- 2024: `langgraph-cli` appeared as a Python package for interacting with LangGraph API projects.
- 2025-2026: The CLI docs describe Python and JavaScript command variants for build, deploy, up, and Dockerfile workflows.

### Related projects

- Related projects include LangGraph, LangChain, LangSmith, LangGraph.js, and the LangGraph SDK packages used by the CLI.

### 来源

- <https://docs.langchain.com/langgraph-platform/langgraph-cli>
- <https://github.com/langchain-ai/langgraph>
- <https://pypi.org/project/langgraph-cli/>
- <https://raw.githubusercontent.com/langchain-ai/langgraph/main/libs/cli/pyproject.toml>
- <https://reference.langchain.com/python/langgraph-cli>


## 安全说明

没有找到 langgraph-cli 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: langgraph.json

## Credential files

- Unix: .env
## 其他软件包管理器记录

- Nix - langgraph-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/la/langgraph-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/langgraph-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/langgraph-cli.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
