# 使用 Homebrew 安装 apify-cli

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install apify-cli
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:apify-cli
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/apify-cli>
- **版本:** 1.7.0
- **来源摘要:** Apify command-line interface
- **主页:** <https://docs.apify.com/cli/>
- **仓库:** <https://github.com/apify/apify-cli>
- **上游文档:** <https://docs.apify.com/cli>
- **许可证:** Apache-2.0
- **源码归档:** <https://registry.npmjs.org/apify-cli/-/apify-cli-1.7.0.tgz>
- **最后更新:** 2026-07-02T13:49:24Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- actor (cli)
- apify (cli)
- apify-cli (cli)
- actor (别名)
- apify (别名)
- apify-cli (别名)

## 依赖

- node

## 安装行为

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

## 版本和新鲜度

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

Apify CLI is the command-line tool for creating, developing, running, and deploying Apify Actors and for managing Apify cloud resources from a terminal. It turns the Apify platform into a local developer workflow for web scraping, automation, data processing, Actor runs, storage, and account configuration.

### 项目历史

The public apify/apify-cli repository was created in 2018. The current README and docs describe a CLI for Actor creation, local runs, cloud deployment, datasets, key-value stores, request queues, secrets, builds, and runs.

The documentation has evolved with the Apify platform. Current docs identify versioned CLI documentation, a command reference, a changelog, and an Actor definition format based on .actor/actor.json. Recent changelog entries show active 2025-2026 development, including auth commands, Actor type generation, build and run improvements, .actorignore support, an apify api command, improved AI/human help output, and schema validation changes.

### 采用历史

Apify distributes the CLI through a recommended macOS/Linux install script, Windows PowerShell install script, npm, and Homebrew. The README also documents npx usage, making it available both as a persistent local binary and as a one-off Node-based command.

The batch input's Homebrew package is one of several distribution channels. That matters because Apify CLI often sits in local project setup, CI deployment, and automation scripts where predictable installation and upgrade behavior are important.

### 使用方式

The quick-start path is apify login, apify create, apify run, and apify push. The command reference expands this into account authentication, Actor development, Actor management, builds, runs, storage operations, API calls, secrets, telemetry controls, and upgrade checks.

Actor project metadata is stored in .actor/actor.json at the root of the Actor directory. Authentication stores the saved API token in ~/.apify/auth.json according to the command reference, while Actor definitions may reference Dockerfiles, input and output schemas, storage schemas, changelogs, and environment variables.

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

Apify CLI is a good example of a cloud-platform CLI that is also a project-format tool. Package nerds care about its config files, Node runtime requirements, release cadence, shell installers, Homebrew formula, npm package, and command aliases because the same binary is used for local development, cloud deployment, and CI automation.

### 时间线

- 2018: Public apify/apify-cli repository created.
- 2025: 0.21 series added and refined Actor/build/run workflows.
- 2025: Version 1.1 introduced upgrade and install-command work and breaking CLI behavior changes.
- 2026: Version 1.3 added auth commands and Actor type generation.
- 2026: Version 1.4 added .actorignore support and Actor search.
- 2026: Version 1.5 added apify api and improved help output.
- 2026: Version 1.6 added schema-generation and validation improvements.

### Related projects

- Apify CLI is closely tied to Apify Actors, Apify SDK, Crawlee, Apify API, Actor definition files, and the Apify platform's datasets, key-value stores, request queues, builds, runs, and secrets.

### 来源

- <https://api.github.com/repos/apify/apify-cli>
- <https://docs.apify.com/cli>
- <https://docs.apify.com/cli/docs/changelog>
- <https://docs.apify.com/cli/docs/reference>
- <https://docs.apify.com/platform/actors/development/actor-definition/actor-json>
- <https://github.com/apify/apify-cli#readme>


## 安全说明

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: .actor/actor.json

## Credential files

- Unix: ~/.apify/auth.json
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** apify-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.
- [ahoy](https://www.automicvault.com/zh-hans/pkg/brew/ahoy/) - Shares av.db curated category or tags: automation, cli, developer-tools.
- [all-repos](https://www.automicvault.com/zh-hans/pkg/brew/all-repos/) - Shares av.db curated category or tags: automation, cli, developer-tools.
- [appium](https://www.automicvault.com/zh-hans/pkg/brew/appium/) - Shares av.db curated category or tags: automation, cli, developer-tools.
- [atomist-cli](https://www.automicvault.com/zh-hans/pkg/brew/atomist-cli/) - Shares av.db curated category or tags: automation, cli, developer-tools.
- [bitrise](https://www.automicvault.com/zh-hans/pkg/brew/bitrise/) - Shares av.db curated category or tags: automation, cli, developer-tools.
- [boot-clj](https://www.automicvault.com/zh-hans/pkg/brew/boot-clj/) - Shares av.db curated category or tags: automation, cli, developer-tools.
- [buildozer](https://www.automicvault.com/zh-hans/pkg/brew/buildozer/) - Shares av.db curated category or tags: automation, cli, developer-tools.
- [claude-hooks](https://www.automicvault.com/zh-hans/pkg/brew/claude-hooks/) - Shares av.db curated category or tags: automation, cli, developer-tools.
- [gatsby-cli](https://www.automicvault.com/zh-hans/pkg/brew/gatsby-cli/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, command-line, developer, developer-tools, interface.
- [ovsx](https://www.automicvault.com/zh-hans/pkg/brew/ovsx/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, command-line, developer, developer-tools, interface.

## Combined YAML source

View the package source record on GitHub. [combined/apify-cli.yml](https://github.com/automic-vault/db/blob/main/combined/apify-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
