# 使用 Homebrew 安装 contentful-cli

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install contentful-cli
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:contentful-cli
- **软件包管理器:** Homebrew
- **版本:** 4.0.6
- **来源摘要:** Contentful command-line tools
- **主页:** <https://www.contentful.com/developers/docs/tutorials/cli/>
- **最后更新:** 2026-08-03T09:07:44Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- contentful (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Contentful CLI is the official command-line interface for Contentful, aimed at developers who want to automate Contentful spaces, migrations, imports, exports, extensions, and organization checks from a terminal or CI system.

### 项目历史

The npm package was first published in May 2017, and the official GitHub repository was created later that year. Contentful maintains it as an MIT-licensed Node.js CLI distributed through npm/yarn and also packaged by Homebrew.

### 采用历史

Its adoption tracks Contentful's API-first CMS workflow: the README and docs emphasize global Node package installation, Homebrew provides a bottled formula, and the command set covers the day-to-day operations a team would otherwise perform through the Contentful web app or APIs.

### 使用方式

Typical use is `contentful login` to create or store a Content Management API token, then commands such as `contentful init`, `contentful space`, import/export, migration generation and execution, extension management, and organization security checks. The token is stored in `.contentfulrc.json` in the user's home directory.

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

For package managers, Contentful CLI is a representative SaaS automation CLI: a fast-moving npm-origin tool with a stable executable name, a home-directory credentials file, and an official upstream that also ships standalone/package-manager-friendly releases.

### 时间线

- 2017-05-24: npm package created.
- 2017-08-31: Official GitHub repository created.
- 2026-06-05: v4.0.2 release published.

### Related projects

- The CLI references Contentful's Migration DSL and Content Management API, and it sits beside Contentful SDKs as the terminal-oriented automation surface for the service.

### 来源

- <https://www.npmjs.com/package/contentful-cli>
- <https://github.com/contentful/contentful-cli>
- <https://github.com/contentful/contentful-cli/tree/main/docs>
- <https://github.com/contentful/contentful-cli/blob/main/docs/login/README.md>
- <https://github.com/contentful/contentful-cli/releases/tag/v4.0.2>
- <https://formulae.brew.sh/formula/contentful-cli>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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: ~/.contentfulrc.json

## Credential files

- Unix: ~/.contentfulrc.json

## Combined YAML source

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


## 来源

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