Merge pull request #4754 from Infisical/docs-secrets-local-dev-video

Add Link to Video Tutorial for the Infisical CLI in Local Development to Docs
This commit is contained in:
BlackMagiq
2025-10-26 17:04:47 -07:00
committed by GitHub
+18 -12
View File
@@ -9,11 +9,15 @@ The CLI is designed for a variety of secret management applications ranging from
<Tab title="Local development"> <Tab title="Local development">
In the following steps, we explore how to use the Infisical CLI to fetch back environment variables from Infisical In the following steps, we explore how to use the Infisical CLI to fetch back environment variables from Infisical
and inject them into your local development process. and inject them into your local development process.
<Note>
If you prefer learning by watching, you can follow along our step-by-step video tutorial [here](https://www.youtube.com/watch?v=EzDQC7nY3YY).
</Note>
<Steps> <Steps>
<Step title="Log in with the CLI"> <Step title="Log in with the CLI">
Start by running the `infisical login` command to authenticate with Infisical. Start by running the `infisical login` command to authenticate with Infisical.
```bash ```bash
infisical login infisical login
``` ```
@@ -23,7 +27,7 @@ The CLI is designed for a variety of secret management applications ranging from
</Step> </Step>
<Step title="Initialize Infisical for your project"> <Step title="Initialize Infisical for your project">
Next, navigate to your project and initialize Infisical. Next, navigate to your project and initialize Infisical.
```bash ```bash
# navigate to your project # navigate to your project
cd /path/to/project cd /path/to/project
@@ -123,23 +127,25 @@ The CLI is designed for a variety of secret management applications ranging from
<Note> <Note>
Starting with CLI version v0.4.0, you can now choose to log in via Infisical Cloud (US/EU) or your own self-hosted instance by simply running `infisical login` and following the on-screen instructions — no need to manually set the `INFISICAL_API_URL` environment variable. Starting with CLI version v0.4.0, you can now choose to log in via Infisical Cloud (US/EU) or your own self-hosted instance by simply running `infisical login` and following the on-screen instructions — no need to manually set the `INFISICAL_API_URL` environment variable.
For versions prior to v0.4.0, the CLI defaults to the US Cloud. To connect to the EU Cloud or a self-hosted instance, set the `INFISICAL_API_URL` environment variable to `https://eu.infisical.com` or your custom URL. For versions prior to v0.4.0, the CLI defaults to the US Cloud. To connect to the EU Cloud or a self-hosted instance, set the `INFISICAL_API_URL` environment variable to `https://eu.infisical.com` or your custom URL.
</Note> </Note>
<Tip> <Tip>
## Custom Request Headers ## Custom Request Headers
The Infisical CLI supports custom HTTP headers for requests to servers protected by authentication services such as Cloudflare Access. Configure these headers using the `INFISICAL_CUSTOM_HEADERS` environment variable: The Infisical CLI supports custom HTTP headers for requests to servers protected by authentication services such as Cloudflare Access. Configure these headers using the `INFISICAL_CUSTOM_HEADERS` environment variable:
```bash ```bash
# Syntax: headername1=headervalue1 headername2=headervalue2 # Syntax: headername1=headervalue1 headername2=headervalue2
export INFISICAL_CUSTOM_HEADERS="Access-Client-Id=your-client-id Access-Client-Secret=your-client-secret" export INFISICAL_CUSTOM_HEADERS="Access-Client-Id=your-client-id Access-Client-Secret=your-client-secret"
# Execute Infisical commands after setting the environment variable # Execute Infisical commands after setting the environment variable
infisical secrets infisical secrets
``` ```
This functionality enables secure interaction with Infisical instances that require specific authentication headers.
This functionality enables secure interaction with Infisical instances that require specific authentication headers.
</Tip> </Tip>
## History ## History