Export Infisical secrets from CLI into different file formats
--output-file
flag to save directly to a file.
infisical export
INFISICAL_TOKEN
INFISICAL_DISABLE_UPDATE_CHECK
--output-file
--output-file
is specified:secrets.{format}
(e.g., secrets.json
, secrets.yaml
).env
as the filename--output-file
is NOT specified (default behavior):infisical export > secrets.json
--template
--template
flag specifies the path to the template file used for rendering secrets. When using templates, you can omit the other format flags.--env
dev
--projectId
.infisical.json
located at the root of your local project.
This flag allows you to override this behavior by explicitly defining the project to fetch your secrets from.--expand
${DOMAIN}
)Default value: true
--include-imports
true
--format
dotenv
, dotenv-export
, csv
, json
and yaml
Default value: dotenv
--secret-overriding
true
--path
--path
flag indicates which project folder secrets will be injected from.--tags