> ## 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](/docs/cli/cloudsmith-migration).
</Warning>

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

<CodeGroup>
  ```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
  ```
</CodeGroup>

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

<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/docs/cli/usage">
    Log in and check that the CLI can reach your Infisical instance.
  </Card>

  <Card title="Upgrade" icon="refresh-cw" href="/docs/cli/upgrade">
    Upgrade the CLI to the latest version.
  </Card>
</CardGroup>
