| title | Installation |
|---|---|
| description | Learn how to install Apify CLI using installation scripts, Homebrew, or NPM. |
Learn how to install Apify CLI using installation scripts, Homebrew, or NPM.
curl -fsSL https://apify.com/install-cli.sh | bashirm https://apify.com/install-cli.ps1 | iex:::tip No need for Node.js
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.
:::
brew install apify-cli:::tip Homebrew and Node.js dependency
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.
:::
First, make sure you have Node.js version 22 or higher with NPM installed on your computer:
node --version
npm --versionInstall or upgrade Apify CLI by running:
npm install -g apify-cli:::tip Troubleshooting
If you receive a permission error, read npm's official guide on installing packages globally.
:::
You can verify the installation process by running the following command:
apify --versionThe 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 bundleUpgrading Apify CLI is as simple as running the following command:
apify upgrade