docs/documentation/getting-started/cli.mdx
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:
Follow the instructions for your operating system to install the Infisical CLI.
<Tabs> <Tab title="MacOS"> Use [brew](https://brew.sh/) package manager ```console
$ brew install infisical/get-cli/infisical
```
```console
$ scoop bucket add org https://github.com/Infisical/scoop-infisical.git
```
```console
$ scoop install infisical
```
Add Infisical repository
```console
$ wget -qO- 'https://artifacts-cli.infisical.com/setup.apk.sh' | sudo sh
```
Then install CLI
```console
$ apk update && sudo apk add infisical
```
Then install CLI
```console
$ sudo yum install infisical
```
```console
$ curl -1sLf \
'https://artifacts-cli.infisical.com/setup.deb.sh' \
| sudo -E bash
```
Then install CLI
```console
$ sudo apt-get update && sudo apt-get install -y infisical
```
```console
$ yay -S infisical-bin
```
Authenticate the CLI with the Infisical platform using your email and password.
$ infisical login
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.
$ infisical init
$ infisical run -- <your_application_start_command>
$ infisical run -- npm run dev
$ infisical run -- flask run
$ infisical run -- ./your_bash_script.sh
Your app should now be running with the secrets from Infisical injected as environment variables.
See also: