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 docs for generate-example-env command
Maidul Islamd50de9366bbe
diff --git a/docs/cli/commands/secrets.mdx b/docs/cli/commands/secrets.mdxindex 0e4190291c..d2c4da4941 100644--- a/docs/cli/commands/secrets.mdx+++ b/docs/cli/commands/secrets.mdx@@ -87,4 +87,25 @@ $ infisical secrets set STRIPE_API_KEY=sjdgwkeudyjwe DOMAIN=example.com HASH=jebDefault value: `dev`</Accordion>-</Accordion>\ No newline at end of file+</Accordion>++<Accordion title="infisical secrets generate-example-env">+This command allows you to generate an example .env file from your secrets and with their associated comments and tags. This is useful when you would like to let+ others who work on the project but do not use Infisical become aware of the required environment variables and their intended values.++To place default values in your example .env file, you can simply include the syntax `DEFAULT:<value>` within your secret's comment in Infisical. This will result in the specified value being extracted and utilized as the default.++```bash+$ infisical secrets generate-example-env++## Example+$ infisical secrets generate-example-env > .example-env+```++ ### Flags+ <Accordion title="--env">+ Used to select the environment name on which actions should be taken on++ Default value: `dev`+ </Accordion>+</Accordion>