Manage secrets with Infisical CLI
Log in with the CLI
infisical login
command to authenticate with Infisical.infisical login -i
to avoid browser based loginInitialize Infisical for your project
infisical init
command creates a .infisical.json
file, containing local project settings, at the location where the command is executed..infisical.json
file does not contain any sensitive data, so you may commit it to your git repository.Inject environment variables
run
command hereIgnore commands
$HOME/.profile
is pretty common but, you could place it under $HOME/.profile.d/infisical.sh
or any profile file run at loginCan I connect the CLI to my self-hosted Infisical instance?
infisical login
command and follow the on-screen instructions.INFISICAL_API_URL
in your terminal.Can I use the CLI with service tokens?
INFISICAL_TOKEN
. If set, it’ll attempt to use it for authentication.