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.
- Astro
- Software
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
Option | Description | Possible Values |
---|---|---|
-l , --login-link | Force the user to manually access the Cloud UI to log in instead of opening the browser automatically from the CLI. | None |
-t , --token-login | Force 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.
Authenticate to Astronomer Software. After you run this command, the CLI prompts you to either enter a username and password or retrieve an OAuth token from <basedomain>/token
.
Usage
astro login <basedomain>
Options
Option | Description | Possible Values |
---|---|---|
--l , --login-link | Generate a login link to login on a separate device for cloud CLI login | None |
-o , --oauth | Skip the prompt for local authentication, proceed directly to OAuth token authentication | None |
Examples
astro login mycompany.astromomer.io
# The CLI prompts you for a username and password, or to leave the prompt empty for OAuth authentication
astro login mycompany.astromomer.io -o
# The CLI does not prompt you for a username and password and instead directly prompys you for an OAuth login token