astro deployment variable list
For a given Deployment on Astro, list its running environment variables in your terminal. To test these environment variables locally without having to manually copy them, you can also use this command to save them in a local .env
file.
If an existing .env
file already exists in your current directory, --save
will append environment variables to the bottom of that file. It will not override or replace its contents. If .env
does not exist, --save
will create the file for you.
If an environment variable value is set as secret, the CLI will list only its key.
Usage
This command is recommended for automated workflows. To run this command in an automated process such as a CI/CD pipeline, you can generate an API token, then specify the ASTRO_API_TOKEN
environment variable in the system running the Astro CLI:
See Organization, Workspace, and Deployment API token documentation for more details about ways to use API tokens.