astro env variable list

This command is only available on Astro.

List the environment variables for a scope. At Deployment scope, the list includes variables linked from the Workspace unless you set --resolve-linked to false.

Usage

$astro env variable list

Options

OptionDescriptionPossible Values
--formatThe output format. Defaults to table.table, json, yaml, or dotenv
--outputWrite the output to a file. Use - for stdout. Defaults to -.Any valid file path, or -
--include-secretsSurface secret values in the output. Requires an Organization policy that allows it.None
--resolve-linkedInclude objects linked from another scope, such as a Workspace variable resolved at Deployment scope. Enabled by default. Set to false to return addressable object IDs.true (default), false
--workspace-idSet the Workspace scope. Mutually exclusive with --deployment-id. Defaults to your current Workspace from CLI context.Any valid Workspace ID
--deployment-idSet the Deployment scope. Mutually exclusive with --workspace-id.Any valid Deployment ID

Examples

$# List Workspace variables
$astro env variable list --workspace-id <workspace-id>
$
$# List the variables a Deployment resolves, including those linked from the Workspace
$astro env variable list --deployment-id <deployment-id> --resolve-linked