CLI
The Infisical CLI can be used to inject secrets into any framework like Next.js, Express, Django and more in local development.
It can also be used to expose secrets from Infisical as environment variables in CI/CD pipelines and Docker containers
Prerequisites:
- Have a project with secrets ready in Infisical Cloud.
Installation
Follow the instructions for your operating system to install the Infisical CLI.
Use brew package manager
Login
Authenticate the CLI with the Infisical platform using your email and password.
Initialization
Navigate to the root of your project directory and run the init
command. This step connects your local project to the project on the Infisical platform and creates a infisical.json
file containing a reference to that latter project.
Start your app with environment variables injected
Example Start Commands
Your app should now be running with the secrets from Infisical injected as environment variables.
See also:
Was this page helpful?