← All tools

@infisical/cli

Popularity 65 Updated Development & Build

<h1 align="center">Infisical CLI</h1> <p align="center"> <p align="center"><b>Embrace shift-left security with the Infisical CLI and strengthen your DevSecOps practices by seamlessly managing secrets across your workflows, pipelines, and applications.</

npmauto-collected

Installation

npm
npm install -g @infisical/cli

Install with npm.

<div align="center" <img width="300" src="https://raw.githubusercontent.com/Infisical/infisical/main/img/logoname-white.svg#gh-dark-mode-only" alt="infisical" <img width="300" src="https://raw.githubusercontent.com/Infisical/infisical/main/img/logoname-black.svg#gh-light-mode-only" alt="infisical" </div

<p align="center" <bThe official Infisical CLI</b: Inject secrets into applications and manage your Infisical infrastructure. </p

[!IMPORTANT] The Infisical CLI Linux package repository is moving off Cloudsmith. To keep up with download volume, we're migrating the Linux package repository to our own host at artifacts-cli.infisical.com. Cloudsmith downloads will stop being served on September 16th, 2026, after which installs and updates from the old URL will fail. Every release, including all older versions, is already available on the new host. If you're on an existing setup, you don't need to change anything else, just repoint your machine to the new artifact URL by following the migration steps.

Introduction

The Infisical CLI is a powerful command-line tool for secret management that allows you to:

  • Inject secrets into applications and development workflows
  • Scan for secret leaks in your codebase and git history
  • Export secrets to various formats (dotenv, JSON, YAML)
  • Authenticate with Infisical Cloud or self-hosted instances
  • Integrate with CI/CD pipelines and Docker containers

Installation

Package Managers

macOS

brew install infisical/get-cli/infisical

Windows

# Scoop
scoop install infisical

# Winget
winget install infisical

NPM

npm install -g @infisical/cli

Linux

Ubuntu/Debian:

curl -1sLf 'https://artifacts-cli.infisical.com/setup.deb.sh' | sudo -E bash
sudo apt-get install -y infisical

Alpine: