1. Usage

Prerequisite: Install the CLI

Authenticate

  • Local development

  • Infisical Token

To use the Infisical CLI in your development environment, you can run the command below. This will allow you to access the features and functionality provided by the CLI.

infisical login 

Initialize Infisical for your project

# navigate to your project
cd /path/to/project

# initialize infisical
infisical init

Inject environment variables

# inject environment variables into app
infisical run -- [your application start command]

View all available options for run command here

Examples:

# example with node
infisical run -- node index.js

# example with node (nodemon)
infisical run -- nodemon index.js

# example with node (nodemon) pulling in secrets from test environment
infisical run --env=test -- nodemon index.js

# example with flask
infisical run -- flask run