CLI referenceastro envastro env variableastro env variable getCopy pageThis command is only available on Astro. Get a single environment variable by its ID or key. Usage $astro env variable get <id-or-key> Options OptionDescriptionPossible Values<id-or-key>The ID or key of the variable to get.Any valid variable ID or key--formatThe output format. Defaults to table.table, json, yaml, or dotenv--include-secretsSurface the secret value in the output. Requires an Organization policy that allows it.None--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 $# Get a Workspace variable by key$astro env variable get DBT_PROFILES_DIR --workspace-id <workspace-id>$$# Get a variable as JSON$astro env variable get DBT_PROFILES_DIR --workspace-id <workspace-id> --format json Related Commands astro env variable list astro env variable update