Skip to Content
CLI & APICommand reference

stackblaze env

Remote environment

Usage: stackblaze env [options] [command]

Remote environment

Options:
  -h, --help             Print help

Commands:
  pull [options] [path]  Download remote app env vars to a local file ([path]
                         or --out, default .env.local)
  help [command]         Print this message or the help of the given
                         subcommand(s)

env pull

Usage: stackblaze env pull [options] [path]

Download remote app env vars to a local file ([path] or --out, default
.env.local)

Options:
  --api-url <url>        StackBlaze API base URL (env STACKBLAZE_API_URL)
  --token <token>        API token, sb_pat_... (env STACKBLAZE_TOKEN)
  -p, --project <name>   Project name
  -e, --env <name>       Environment name (default: production)
  -a, --app <name>       App name
  --json                 Output JSON (same as -o json) (default: false)
  --out <file>           Output path (default: .env.local; or pass it
                         positionally)
  --include-metadata     Include STACKBLAZE_PIPELINE/PHASE/APP (default: false)
  --all                  Include platform-injected variables (hidden by
                         default) (default: false)
  --force                Overwrite output file if it exists (default: false)
  -o, --output <format>  Output format: text or json (choices: "text", "json")
  -h, --help             Print help

On this page