# 使用 Homebrew Cask 安装 cursor-cli

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

## 安装

```sh
sudo av install cask:cursor-cli
```

其他安装命令:

### macOS

- Homebrew Cask (100%):

```sh
brew install --cask cursor-cli
```

  证据: local Homebrew cask metadata

## 软件包事实

- **软件包键:** cask:cursor-cli
- **软件包管理器:** Homebrew Cask
- **版本:** 2026.07.23-e383d2b
- **来源摘要:** Command-line agent for Cursor
- **主页:** <https://cursor.com/>
- **最后更新:** 2026-07-23T22:00:25Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cursor-agent (二进制)
- cursor-agent (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Cursor CLI is the command-line interface for Cursor Agent, letting developers interact with AI coding agents from a terminal for interactive work, scripts, and CI automation.

### 项目历史

Cursor's official CLI docs describe terminal-based agent sessions, non-interactive print mode, Cloud Agent handoff, resumable sessions, sandbox controls, and configuration through cli-config.json.

### 采用历史

The cask package turns Cursor's agent CLI into a package-manager-installable developer tool. That matters for teams standardizing AI coding tools across shells, CI jobs, and workstation bootstrap scripts.

### 使用方式

Users install the CLI, authenticate with browser login or CURSOR_API_KEY, then run agent interactively or in print mode with prompts, models, and output formats. The config file stores CLI settings and permissions; API keys are supplied through environment variables or command flags.

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

Cursor CLI is significant as a proprietary AI coding agent distributed like a Unix command: installable, scriptable, configurable, and usable headlessly.

### 时间线

- 2026: The Homebrew cask input records a dated packaged build, 2026.07.01-777f564.

### Related projects

- Cursor editor, Cursor Cloud Agent, MCP servers, and other terminal coding agents are adjacent tools.

### 来源

- <https://cursor.com/docs/cli/headless>
- <https://cursor.com/docs/cli/installation>
- <https://cursor.com/docs/cli/overview>
- <https://cursor.com/docs/cli/reference/authentication>
- <https://cursor.com/docs/cli/reference/configuration>
- source_facts.version


## 安全说明

没有找到 cursor-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: ~/.cursor/cli-config.json, .cursor/cli.json
- Windows: $env:USERPROFILE\.cursor\cli-config.json, .cursor\cli.json
## 其他软件包管理器记录

- Nix - cursor-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/cu/cursor-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/cursor-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cursor-cli.yml)


## 来源

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