# 使用 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
- **版本:** 1.7.1
- **来源摘要:** Apify command-line interface
- **主页:** <https://docs.apify.com/cli/>
- **最后更新:** 2026-07-10T03:05:52Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

## Combined YAML source

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