> ## Documentation Index
> Fetch the complete documentation index at: https://infisical.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Install the CLI

> Install the Infisical CLI with the package manager for your operating system.

> [!WARNING]
>
> If you installed the CLI on Linux from the Cloudsmith package repository, move to `artifacts-cli.infisical.com`. Cloudsmith stopped serving the CLI on September 16, 2026, so machines still pointed at it can't install or upgrade the CLI. See [Migrate off Cloudsmith](https://infisical.com/docs/cli/cloudsmith-migration.md).

Install the CLI with the package manager for your operating system:

```bash macOS theme={"dark"}
brew install infisical/get-cli/infisical
```

```bash Windows (winget) theme={"dark"}
winget install infisical
```

```bash Windows (Scoop) theme={"dark"}
scoop bucket add org https://github.com/Infisical/scoop-infisical.git
scoop install infisical
```

```bash npm theme={"dark"}
npm install -g @infisical/cli
```

```bash Debian/Ubuntu theme={"dark"}
curl -1sLf 'https://artifacts-cli.infisical.com/setup.deb.sh' | sudo -E bash
sudo apt-get update && sudo apt-get install -y infisical
```

```bash RedHat/CentOS/Amazon Linux theme={"dark"}
curl -1sLf 'https://artifacts-cli.infisical.com/setup.rpm.sh' | sudo -E bash
sudo yum install infisical
```

```bash Alpine theme={"dark"}
apk add --no-cache bash sudo wget
wget -qO- 'https://artifacts-cli.infisical.com/setup.apk.sh' | sudo sh
apk update && sudo apk add infisical
```

```bash Arch Linux theme={"dark"}
yay -S infisical-bin
```

Check that the installation worked:

```bash theme={"dark"}
infisical --version
```

If you install the CLI in production, such as on a server or in a container image, pin a specific version so every reinstall gets the same one. The [CLI releases](https://github.com/Infisical/cli/releases) list every version.

## Next steps

> **[Quickstart](https://infisical.com/docs/cli/usage.md)**
>
> Log in and check that the CLI can reach your Infisical instance.

> **[Upgrade](https://infisical.com/docs/cli/upgrade.md)**
>
> Upgrade the CLI to the latest version.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.