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

# Install

> Infisical's CLI is one of the best ways to manage environments and secrets. Install it here

<Warning>
  **Action required for Linux users.** The Infisical CLI Linux package repository has moved from Cloudsmith to `artifacts-cli.infisical.com`. The Cloudsmith repository stops serving on **September 16, 2026**. Machines still pointed at the old URL will fail to install or update. See the [migration guide](/cli/cloudsmith-migration) for step-by-step instructions.
</Warning>

The Infisical CLI is a powerful command line tool that can be used to retrieve, modify, export and inject secrets into any process or application as environment variables.
You can use it across various environments, whether it's local development, CI/CD, staging, or production.

## Installation

<Tabs>
  <Tab title="MacOS">
    Use [brew](https://brew.sh/) package manager

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

    ### Updates

    ```bash theme={"dark"}
    brew update && brew upgrade infisical
    ```
  </Tab>

  <Tab title="Windows">
    <Accordion title="Scoop package manager">
      Use [Scoop](https://scoop.sh/) package manager

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

      ```bash theme={"dark"}
      scoop install infisical
      ```

      ### Updates

      ```bash theme={"dark"}
      scoop update infisical
      ```
    </Accordion>

    <Accordion title="Winget package manager">
      Use [Winget](https://learn.microsoft.com/en-us/windows/package-manager/winget/) package manager

      ```bash theme={"dark"}
      winget install infisical
      ```
    </Accordion>
  </Tab>

  <Tab title="NPM">
    Use [NPM](https://www.npmjs.com/) package manager

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

    ### Updates

    ```bash theme={"dark"}
    npm update -g @infisical/cli
    ```
  </Tab>

  <Tab title="Alpine">
    Install prerequisite

    ```bash theme={"dark"}
    apk add --no-cache bash sudo wget
    ```

    Add Infisical repository

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

    Then install CLI

    ```bash theme={"dark"}
    apk update && sudo apk add infisical
    ```

    ###

    <Tip>
      If you are installing the CLI in production environments, we highly recommend to set the version of the CLI to a specific version. This will help keep your CLI version consistent across reinstalls. [View versions](https://github.com/Infisical/cli/releases)
    </Tip>
  </Tab>

  <Tab title="RedHat/CentOs/Amazon">
    Add Infisical repository

    ```bash theme={"dark"}
    curl -1sLf \
    'https://artifacts-cli.infisical.com/setup.rpm.sh' \
    | sudo -E bash
    ```

    Then install CLI

    ```bash theme={"dark"}
    sudo yum install infisical
    ```

    ###

    <Tip>
      If you are installing the CLI in production environments, we highly recommend to set the version of the CLI to a specific version. This will help keep your CLI version consistent across reinstalls. [View versions](https://github.com/Infisical/cli/releases)
    </Tip>
  </Tab>

  <Tab title="Debian/Ubuntu">
    Add Infisical repository

    ```bash theme={"dark"}
    curl -1sLf \
    'https://artifacts-cli.infisical.com/setup.deb.sh' \
    | sudo -E bash
    ```

    Then install CLI

    ```bash theme={"dark"}
    sudo apt-get update && sudo apt-get install -y infisical
    ```

    ###

    <Tip>
      If you are installing the CLI in production environments, we highly recommend to set the version of the CLI to a specific version. This will help keep your CLI version consistent across reinstalls. [View versions](https://github.com/Infisical/cli/releases)
    </Tip>
  </Tab>

  <Tab title="Arch Linux">
    Use the `yay` package manager to install from the [Arch User Repository](https://aur.archlinux.org/packages/infisical-bin)

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

    ###

    <Tip>
      If you are installing the CLI in production environments, we highly recommend to set the version of the CLI to a specific version. This will help keep your CLI version consistent across reinstalls. [View versions](https://github.com/Infisical/cli/releases)
    </Tip>
  </Tab>
</Tabs>

## Quick Usage Guide

<Card color="#00A300" href="./usage">
  Now that you have the CLI installed on your system, follow this guide to make the best use of it
</Card>
