Apify command-line interface helps you create, develop, build and run Apify Actors, and manage the Apify cloud platform.
翻译准备中
开发工具TypeScript · JavaScriptGitHub @apify自行安装运营者未确认
试用过了吗? 点一下就好,无需登录。
制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗Apify CLI is the command-line tool for creating, developing, and deploying Apify Actors, and for managing the Apify cloud platform from your terminal.
This repo ships an agent skill that teaches AI coding agents (Claude Code, Cursor, etc.) how to work with the Apify CLI reliably. You can print the skill straight from the CLI — it always matches your installed version:
apify help --skill
If you'd rather have the skill installed persistently, apify help --skill prints a valid SKILL.md that you can redirect into your agent's skills directory. The location depends on the agent:
mkdir -p ~/.claude/skills/apify-cli
apify help --skill > ~/.claude/skills/apify-cli/SKILL.md
Codex and most other agents follow the Agent Skills open standard, which loads skills from .agents/skills (per repo) or ~/.agents/skills (per user):
mkdir -p ~/.agents/skills/apify-cli
apify help --skill > ~/.agents/skills/apify-cli/SKILL.md
That copy is a snapshot; re-run it after upgrading the Apify CLI to refresh it.
Install the CLI (macOS / Linux):
curl -fsSL https://apify.com/install-cli.sh | bash
For Windows and other installation options, see Installation.
Log in with your Apify API token:
apify login
Run an Actor on the Apify cloud:
apify call apify/hello-world --output-dataset
This runs the public apify/hello-world Actor and prints its results. To build your own Actor instead, run apify create and follow the interactive wizard.
curl -fsSL https://apify.com/install-cli.sh | bash
brew install apify-cli
irm https://apify.com/install-cli.ps1 | iex
Requires Node.js 22 or higher:
npm install -g apify-cli
You can also run the CLI without a global install via npx apify-cli <command>.
Verify the installation:
apify --version
The table below lists the most common commands. For the full reference, see the command reference.
| Command | Description |
|---|---|
apify create | Create a new Actor project from a template |
apify init | Initialize an existing project as an Actor |
apify run | Run the Actor locally |
apify login | Authenticate with the Apify platform |
apify logout | Log out of the Apify platform |
apify push | Deploy the Actor to the Apify cloud |
apify pull | Pull an Actor from the cloud to your local machine |
apify call | Run the Actor on the Apify cloud |
apify builds | Manage Actor builds (create, info, ls, log, rm) |
apify secrets | Manage secret environment variables |
apify help | Show help for any command |
Actor configuration lives in .actor/actor.json. See the Actor configuration docs for the full schema (name, version, build tag, environment variables, Dockerfile, input schema, storages).
Apify CLI collects anonymous usage data to help us improve the tool and the Apify platform. See Telemetry for details on what is collected.
To opt out, either run:
apify telemetry disable
or set the APIFY_CLI_DISABLE_TELEMETRY=1 environment variable.
Contributions are welcome. See CONTRIBUTING.md for local setup, code style, test categories, and PR guidelines.