Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Add link to cli in local dev video tutorial in docs
Tuan Dang28603b8e2a11
diff --git a/docs/cli/usage.mdx b/docs/cli/usage.mdxindex 8d0236ed5c..bedfda22c6 100644--- a/docs/cli/usage.mdx+++ b/docs/cli/usage.mdx@@ -9,11 +9,15 @@ The CLI is designed for a variety of secret management applications ranging from<Tab title="Local development">In the following steps, we explore how to use the Infisical CLI to fetch back environment variables from Infisicaland 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><Step title="Log in with the CLI">Start by running the `infisical login` command to authenticate with Infisical.-+```bashinfisical login```@@ -23,7 +27,7 @@ The CLI is designed for a variety of secret management applications ranging from</Step><Step title="Initialize Infisical for your project">Next, navigate to your project and initialize Infisical.-+```bash# navigate to your projectcd /path/to/project@@ -123,23 +127,25 @@ The CLI is designed for a variety of secret management applications ranging from<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.- 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><Tip>## 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+# Syntax: headername1=headervalue1 headername2=headervalue2+export INFISICAL_CUSTOM_HEADERS="Access-Client-Id=your-client-id Access-Client-Secret=your-client-secret"- ```bash- # Syntax: headername1=headervalue1 headername2=headervalue2- export INFISICAL_CUSTOM_HEADERS="Access-Client-Id=your-client-id Access-Client-Secret=your-client-secret"+# Execute Infisical commands after setting the environment variable+infisical secrets+```- # Execute Infisical commands after setting the environment variable- 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>## History