Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Add cli docs for supported environment variables

Maidul Islam50da0a753ac5
diff --git a/docs/cli/commands/export.mdx b/docs/cli/commands/export.mdx
index 206a85cc6d..0fb673418c 100644
--- a/docs/cli/commands/export.mdx
+++ b/docs/cli/commands/export.mdx
@@ -35,6 +35,27 @@ Export environment variables from the platform into a file format.
infisical export --format=yaml > secrets.yaml
```
+ ### Environment variables
+ <Accordion title="INFISICAL_TOKEN">
+ Used to fetch secrets via a [service token](/getting-started/dashboard/token) apposed to logged in credentials. Simply, export this variable in the terminal before running this command.
+
+ ```bash
+ # Example
+ export INFISICAL_TOKEN=st.63e03c4a97cb4a747186c71e.ed5b46a34c078a8f94e8228f4ab0ff97.4f7f38034811995997d72badf44b42ec
+ ```
+ </Accordion>
+
+ <Accordion title="INFISICAL_DISABLE_UPDATE_CHECK">
+ Used to disable the check for new CLI versions. This can improve the time it takes to run this command. Recommended for production environments.
+
+ To use, simply export this variable in the terminal before running this command.
+
+ ```bash
+ # Example
+ export INFISICAL_DISABLE_UPDATE_CHECK=true
+ ```
+ </Accordion>
+
### flags
<Accordion title="--env">
Used to set the environment that secrets are pulled from.
diff --git a/docs/cli/commands/run.mdx b/docs/cli/commands/run.mdx
index 18c0069bc4..d801bd9f30 100644
--- a/docs/cli/commands/run.mdx
+++ b/docs/cli/commands/run.mdx
@@ -40,7 +40,28 @@ Inject secrets from Infisical into your application process.
$ infisical run -- npm run dev
```
- ### flags
+ ### Environment variables
+ <Accordion title="INFISICAL_TOKEN">
+ Used to fetch secrets via a [service token](/getting-started/dashboard/token) apposed to logged in credentials. Simply, export this variable in the terminal before running this command.
+
+ ```bash
+ # Example
+ export INFISICAL_TOKEN=st.63e03c4a97cb4a747186c71e.ed5b46a34c078a8f94e8228f4ab0ff97.4f7f38034811995997d72badf44b42ec
+ ```
+ </Accordion>
+
+ <Accordion title="INFISICAL_DISABLE_UPDATE_CHECK">
+ Used to disable the check for new CLI versions. This can improve the time it takes to run this command. Recommended for production environments.
+
+ To use, simply export this variable in the terminal before running this command.
+
+ ```bash
+ # Example
+ export INFISICAL_DISABLE_UPDATE_CHECK=true
+ ```
+ </Accordion>
+
+ ### Flags
<Accordion title="--command">
Pass secrets into multiple commands at once
diff --git a/docs/cli/commands/secrets.mdx b/docs/cli/commands/secrets.mdx
index d2c4da4941..55f0dc0dce 100644
--- a/docs/cli/commands/secrets.mdx
+++ b/docs/cli/commands/secrets.mdx
@@ -18,7 +18,28 @@ This command enables you to perform CRUD (create, read, update, delete) operatio
$ infisical secrets
```
- ### flags
+ ### Environment variables
+ <Accordion title="INFISICAL_TOKEN">
+ Used to fetch secrets via a [service token](/getting-started/dashboard/token) apposed to logged in credentials. Simply, export this variable in the terminal before running this command.
+
+ ```bash
+ # Example
+ export INFISICAL_TOKEN=st.63e03c4a97cb4a747186c71e.ed5b46a34c078a8f94e8228f4ab0ff97.4f7f38034811995997d72badf44b42ec
+ ```
+ </Accordion>
+
+ <Accordion title="INFISICAL_DISABLE_UPDATE_CHECK">
+ Used to disable the check for new CLI versions. This can improve the time it takes to run this command. Recommended for production environments.
+
+ To use, simply export this variable in the terminal before running this command.
+
+ ```bash
+ # Example
+ export INFISICAL_DISABLE_UPDATE_CHECK=true
+ ```
+ </Accordion>
+
+ ### Flags
<Accordion title="--expand">
Parse shell parameter expansions in your secrets