Apify CLI

April 15, 2026 ยท View on GitHub

NPM version GitHub workflow

Apify CLI is the command-line tool for creating, developing, and deploying Apify Actors, and for managing the Apify cloud platform from your terminal.

Features

  • Create, develop, and deploy Apify Actors from your terminal
  • Run Actors locally for development and testing, or in the Apify cloud
  • Manage Actors, datasets, key-value stores, and request queues
  • Manage secret environment variables used by your Actors
  • Works with any programming language โ€” Actors run as Docker containers on the platform

Quick start

  1. Install the CLI (macOS / Linux):

    curl -fsSL https://apify.com/install-cli.sh | bash
    

    For Windows and other installation options, see Installation.

  2. Log in with your Apify API token:

    apify login
    
  3. Create, run, and deploy your first Actor:

    apify create # it will walk you through an interactive wizard
    cd my-actor
    apify run
    apify push
    

Installation

curl -fsSL https://apify.com/install-cli.sh | bash

macOS / Linux (Homebrew)

brew install apify-cli

Windows

irm https://apify.com/install-cli.ps1 | iex

npm (cross-platform)

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

Commands

The table below lists the most common commands. For the full reference, see the command reference.

CommandDescription
apify createCreate a new Actor project from a template
apify initInitialize an existing project as an Actor
apify runRun the Actor locally
apify loginAuthenticate with the Apify platform
apify logoutLog out of the Apify platform
apify pushDeploy the Actor to the Apify cloud
apify pullPull an Actor from the cloud to your local machine
apify callRun the Actor on the Apify cloud
apify buildsManage Actor builds (create, info, ls, log, rm)
apify secretsManage secret environment variables
apify helpShow 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).

Documentation

Telemetry

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.

Contributing

Contributions are welcome. See CONTRIBUTING.md for local setup, code style, test categories, and PR guidelines.

Feedback & support

License

Apache-2.0