Installation
Learn how to install Apify CLI using installation scripts, Homebrew, or NPM.
Installation scripts
MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
Windows
irm https://apify.com/install-cli.ps1 | iex
If you install Apify CLI using our installation scripts, you don't need Node.js. The scripts use Bun to create a standalone executable file.
This approach eliminates Node.js dependency management, which is useful for Python developers or users working in non-Node.js environments.
Homebrew
brew install apify-cli
When you install Apify CLI using Homebrew, it automatically installs Node.js as a dependency. If you already have Node.js installed through another method (e.g., nvm
), this may create version conflicts.
If you experience Node.js version conflicts, modify your PATH
environment variable to prioritize your preferred Node.js installation over Homebrew's version.
NPM
First, make sure you have Node.js version 22 or higher with NPM installed on your computer:
node --version
npm --version
Install or upgrade Apify CLI by running:
npm install -g apify-cli
If you receive a permission error, read npm's official guide on installing packages globally.
Verify installation
You can verify the installation process by running the following command:
apify --version
The output should resemble the following (exact details like version or platform may vary):
apify-cli/1.0.1 (0dfcfd8) running on darwin-arm64 with bun-1.2.19 (emulating node 24.3.0), installed via bundle
Upgrading
Upgrading Apify CLI is as simple as running the following command:
apify upgrade