mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 16:26:37 +00:00
Add docs for generate-example-env command
This commit is contained in:
@@ -87,4 +87,25 @@ $ infisical secrets set STRIPE_API_KEY=sjdgwkeudyjwe DOMAIN=example.com HASH=jeb
|
|||||||
|
|
||||||
Default value: `dev`
|
Default value: `dev`
|
||||||
</Accordion>
|
</Accordion>
|
||||||
</Accordion>
|
</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>
|
||||||
|
|||||||
Reference in New Issue
Block a user