# Source: https://docs.apify.com/cli/docs/installation.md

# Installation

Copy for LLM

Learn how to install Apify CLI using installation scripts, Homebrew, or NPM.

***

## Installation scripts[](#installation-scripts)

### MacOS / Linux[](#macos--linux)

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

### Windows[](#windows)

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

No need for Node.js

If you install Apify CLI using our installation scripts, you don't need Node.js. The scripts use [Bun](https://bun.sh/) 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[](#homebrew)

```
brew install apify-cli
```

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.

## NPM[](#npm)

First, make sure you have [Node.js](https://nodejs.org) 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
```

Troubleshooting

If you receive a permission error, read npm's [official guide](https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally) on installing packages globally.

## Verify installation[](#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)

Upgrading Apify CLI is as simple as running the following command:

```
apify upgrade
```