Quick usage
Manage secrets with Infisical CLI
The CLI is designed for a variety of applications, ranging from local secret management to CI/CD and production scenarios. The distinguishing factor, however, is the authentication method used.
To use the Infisical CLI in your local development environment, simply run the command below and follow the interactive guide.
If you are in a containerized environment such as WSL 2 or Codespaces, run infisical login -i
to avoid browser based login
Initialize Infisical for your project
This will create .infisical.json
file at the location the command was executed. This file contains your local project settings. It does not contain any sensitive data.
Inject environment variables
View all available options for run
command here
Connect CLI to self hosted Infisical
History
Your terminal keeps a history with the commands you run. When you create Infisical secrets directly from your terminal, they’ll stay there for a while.
For security and privacy concerns, we recommend you to configure your terminal to ignore those specific Infisical commands.
Was this page helpful?