mcpField
I
Infisical CLI

Infisical CLI

OfficialAgent-ready
infisical.comDeveloper Tools100infisicalUpdated 1d ago
RepositoryVisit website

About Infisical CLI

Inject and scan for leaked secrets locally.

Install

Pick your OS or package manager and run the command in a terminal.

$
brew install infisical/get-cli/infisical

Once installed, runinfisical --versionto confirm it works.

Example commands

Common commands in the order you’d use them.

01
infisical login
02
infisical run -- npm start
03
infisical scan

Details

From the project README
infisical infisical

The official Infisical CLI: Inject secrets into applications and manage your Infisical infrastructure.

Important

The Infisical CLI Linux package repository has moved off Cloudsmith. To keep up with download volume, we migrated the Linux package repository to our own host at artifacts-cli.infisical.com. Cloudsmith stopped being served on September 16th, 2026, so installs and updates from the old URL will fail.

Every release, including all older versions, is 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:

wget -qO- 'https://artifacts-cli.infisical.com/setup.apk.sh' | sudo sh
sudo apk add infisical

RHEL/CentOS:

curl -1sLf 'https://artifacts-cli.infisical.com/setup.rpm.sh' | sudo -E bash
sudo yum install infisical

Arch Linux:

yay -S infisical-bin
Direct Download

Download binaries from GitHub Releases.

Documentation

Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Setup
git clone https://github.com/Infisical/cli.git
cd cli
go build -o infisical .
go test ./...

Support

License

The Infisical CLI is available under the MIT License.

Security

Please do not file GitHub issues or post on public forums for security vulnerabilities, as they are public. Report them privately through our vulnerability disclosure policy at https://infisical.com/vulnerability-disclosure. Scope, safe harbour and disclosure terms are all set out there. See also SECURITY.md.


Made with ❤️ by the Infisical team

Comments

Markdown supported