MCPcopy Index your code
hub / github.com/Infisical/cli

github.com/Infisical/cli @v0.43.101

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.43.101 ↗ · + Follow
3,078 symbols 9,500 edges 217 files 905 documented · 29%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

infisical infisical

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

[!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:

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 for security vulnerabilities. Instead, contact us at security@infisical.com.


Made with ❤️ by the Infisical team

Extension points exported contracts — how you extend this code

Reporter (Interface)
(no doc) [13 implementers]
detect/report/report.go
ServicePortProvider (Interface)
ServicePortProvider provides a way to get the mapped port for a service [1 implementers]
e2e/packages/client/reset_db.go
MongoProxyGetter (FuncType)
MongoProxyGetter returns a session-level MongoDBProxy, creating it on first call. This allows the topology to be shared
packages/pam/pam-proxy.go
Pkcs11Module (Interface)
(no doc) [1 implementers]
packages/gateway-v2/pkcs11.go
CloseWrite (Interface)
(no doc)
packages/gateway/connection.go
InfisicalServiceOption (FuncType)
(no doc)
e2e/util/helpers.go
CertificatePolicyOption (FuncType)
(no doc)
e2e/agent/agent_helpers.go
SetupPAMOption (FuncType)
(no doc)
e2e/pam/pam_helpers.go

Core symbols most depended-on inside this repo

Errorf
called by 1066
packages/telemetry/telemetry.go
HandleError
called by 458
packages/util/log.go
String
called by 346
detect/cmd/scm/scm.go
Get
called by 283
packages/proxy/cache.go
Close
called by 247
packages/pam/session/logger.go
Error
called by 211
packages/api/errors.go
Error
called by 146
packages/proxy/sse.go
Write
called by 136
detect/report/report.go

Shape

Function 1,279
Method 853
Struct 559
TypeAlias 352
FuncType 12
Interface 10
Class 8
Enum 5

Languages

Go97%
Rust2%
TypeScript1%
C++1%

Modules by API surface

e2e/packages/client/client.gen.go836 symbols
packages/api/model.go136 symbols
packages/cmd/agent.go121 symbols
packages/api/api.go65 symbols
packages/gateway-v2/gateway.go52 symbols
e2e/agent/agent_helpers.go49 symbols
e2e/util/helpers.go46 symbols
packages/proxy/cache.go42 symbols
packages/pam/handlers/mssql/tds.go42 symbols
packages/cmd/login_status.go36 symbols
e2e/agent/certificate_test.go36 symbols
packages/pam/handlers/rdp/native/src/bridge.rs33 symbols

Datastores touched

(mongodb)Database · 1 repos
(mysql)Database · 1 repos
infisicalDatabase · 1 repos
mydbDatabase · 1 repos

For agents

$ claude mcp add cli \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact