> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devinenterprise.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Devin CLI

> 下载并安装 Devin CLI，这是一款在 macOS、Linux、WSL 和 Windows 终端中运行的本地编码 Agent，并可将任务移交给云端 Devin。

[Devin CLI](https://docs.devinenterprise.com/zh/cli.md) 是一款直接在你的终端中运行的本地编码 Agent。它可与本地文件和环境配合使用，在你编写代码时提供快速、交互式的协助。

## 下载 Devin CLI

> [tab] macOS / Linux / WSL
>
> ```bash theme={null}
> curl -fsSL https://cli.devin.ai/install.sh | bash
> ```

> [tab] Homebrew
>
> 在 macOS 上，使用 [Homebrew](https://brew.sh) 安装 Devin CLI：
>
> ```bash theme={null}
> brew install --cask devin-cli
> ```
>
> 后续如需升级到最新版本，运行：
>
> ```bash theme={null}
> brew upgrade --cask devin-cli
> ```

> [tab] Windows
>
> 下载并运行安装程序：
>
> * [x86\_64 (大多数 Windows 电脑) ](https://static.devin.ai/cli/devin-updater-x86_64-pc-windows.exe)
> * [ARM64 (ARM 架构的 Windows) ](https://static.devin.ai/cli/devin-updater-aarch64-pc-windows.exe)
>
> 也可以打开 **PowerShell** 并运行：
>
> ```powershell theme={null}
> irm https://static.devin.ai/cli/setup.ps1 | iex
> ```
>
> > [!WARNING]
> >
> > `irm` 和 `iex` 是 PowerShell 命令。请勿在 Git Bash 或 CMD 中运行，否则会因 "command not found" 而失败。安装时请仅使用 PowerShell。
>
> 安装完成后，你可以在 **PowerShell**、**Windows Terminal** 或 **Git Bash** 中使用 Devin CLI。

> [tab] Devin Desktop
>
> Devin CLI 随 **Devin Desktop** 一起打包提供。此安装方式适用于 **Legacy Windsurf Enterprise** 和 **Devin Enterprise** 套餐。
>
> **Admin 设置：** 若要使用随 Devin Desktop 打包的安装方式，Admin 需先在 Devin CLI 团队设置中开启 **Install Devin CLI in Devin Desktop**，以启用该安装选项。
>
> **用户安装：**
>
> 1. 打开 Devin Desktop
> 2. 使用 `Cmd+Shift+P`
>    (macOS) 或 `Ctrl+Shift+P`
>    (Windows/Linux) 打开 Command Palette
> 3. 搜索并运行 **Install Devin CLI**
>
> 这会将 `devin` 二进制程序添加到你的 PATH 中，之后即可在任意终端中使用它。

重启终端后，进入一个项目目录并输入 `devin` 即可开始。

如需完整文档——包括命令、配置和可扩展性——请参阅 **[Devin CLI 文档](https://docs.devinenterprise.com/zh/cli.md)**。

> [card] [快速入门与安装](https://docs.devinenterprise.com/zh/cli.md)
>
> 2 分钟内完成安装并开始编写代码

> [card] [核心命令](https://docs.devinenterprise.com/zh/cli/essential-commands.md)
>
> 必须掌握的命令和键盘快捷键


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.