Skip to main content

Documentation Index

Fetch the complete documentation index at: https://astronomer-preview.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

The behavior and format of this command are the same for both Astro and Astro Private Cloud.
Print the current authentication token to standard output. The output contains only the raw token value with the Bearer prefix stripped, making it suitable for use in scripts and CI/CD pipelines. The command returns an error if you are not authenticated.

Usage

astro auth token

Options

OptionDescriptionPossible Values
-d, --domainPrint the token for a specific context domain instead of the current context. Useful for Astro Private Cloud environments with multiple control planesAny valid domain string

Examples

astro auth token
# Print the authentication token for the current context

astro auth token --domain cloud.astronomer.io
# Print the token for a specific context domain

# Use in scripts
export ASTRO_TOKEN=$(astro auth token)
curl -H "Authorization: Bearer $ASTRO_TOKEN" https://api.astronomer.io/...