Skip to main content

astro login

info

The behavior and format of this command differs depending on what Astronomer product you're using. Use the following tabs to change product contexts.

Authenticate to Astro. After you run this command, the CLI prompts you for your login email address. Using the provided email address, the CLI assumes your organization and redirects you to a web browser where you can log in via the Cloud UI. Once you are logged in via the web browser, the CLI automatically recognizes this and authenticates to your account.

Usage

astro login

Options

OptionDescriptionPossible Values
-l, --login-linkForce the user to manually access the Cloud UI to log in instead of opening the browser automatically from the CLI.None
-t, --token-loginForce the user to manually enter a token generated in the Cloud UI. This flag is used primarily for browserless login.None

Examples

astro login
# The CLI automatically opens the Cloud UI in a web browser, which prompts you to log in.

astro login --login-link
# The CLI provides a link to the Cloud UI that you can manually open in a web browser.

astro login --token-login
# The CLI provides a link to the Cloud UI that you can manually open in a web browser. You then copy a generated token from the UI and enter it in the CLI. For a browserless login, you can open the link and copy the token on a separate machine from the one running the Astro CLI.