# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/contentful-cli>
- **版本:** 4.0.2
- **来源摘要:** Contentful command-line tools
- **主页:** <https://www.contentful.com/developers/docs/tutorials/cli/>
- **仓库:** <https://github.com/contentful/contentful-cli>
- **上游文档:** <https://github.com/contentful/contentful-cli/tree/main/docs>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/contentful-cli/-/contentful-cli-4.0.2.tgz>
- **最后更新:** 2026-06-15T10:20:13-04:00
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- contentful (cli)
- contentful (别名)

## 依赖

- node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 4.0.2
- 管理器更新时间: 2026-06-15
- 本地数据: OK
- 上游仓库: https://www.contentful.com/developers/docs/tutorials/cli/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

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
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** contentful-cli
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [node](https://www.automicvault.com/zh-hans/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [activemq-cpp](https://www.automicvault.com/zh-hans/pkg/brew/activemq-cpp/) - Shares av.db curated category or tags: cli, cms, developer-tools.
- [algolia](https://www.automicvault.com/zh-hans/pkg/brew/algolia/) - Shares av.db curated category or tags: api, cli, developer-tools.
- [apfel](https://www.automicvault.com/zh-hans/pkg/brew/apfel/) - Shares av.db curated category or tags: api, cli, developer-tools.
- [api-linter](https://www.automicvault.com/zh-hans/pkg/brew/api-linter/) - Shares av.db curated category or tags: api, cli, developer-tools.
- [apibuilder-cli](https://www.automicvault.com/zh-hans/pkg/brew/apibuilder-cli/) - Shares av.db curated category or tags: api, cli, developer-tools.
- [apigeecli](https://www.automicvault.com/zh-hans/pkg/brew/apigeecli/) - Shares av.db curated category or tags: api, cli, developer-tools.
- [asyncapi](https://www.automicvault.com/zh-hans/pkg/brew/asyncapi/) - Shares av.db curated category or tags: api, cli, developer-tools.
- [atac](https://www.automicvault.com/zh-hans/pkg/brew/atac/) - Shares av.db curated category or tags: api, cli, developer-tools.
- [contentful-cli](https://www.automicvault.com/zh-hans/pkg/npm/contentful-cli/) - Same normalized package name appears in another local ecosystem. Shared terms: cli, content, content-management, contentful, contentful-cli.
- [graphql-cli](https://www.automicvault.com/zh-hans/pkg/brew/graphql-cli/) - Both packages touch the same language runtime or ecosystem. Shared terms: api, cli, command-line, developer, developer-tools.
- [newman](https://www.automicvault.com/zh-hans/pkg/brew/newman/) - Both packages touch the same language runtime or ecosystem. Shared terms: api, cli, command-line, developer, developer-tools.
- [contentful-cli](https://www.automicvault.com/zh-hans/pkg/npm/contentful-cli/) - Same normalized package name in another local ecosystem.

## Combined YAML source

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


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
