astro deployment variable create
This command is only available on Astro.
For a given Deployment on Astro, create environment variables in the Astro CLI by supplying either a key and value pair or a file (for example, .env
) with a list of keys and values. This command is functionally identical to creating an environment variable in the Astro UI. See Set Environment Variables on Astro.
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.