Skip to main content

ankra login

Authenticate with the Ankra platform using your browser. This command will:
  1. Open your browser to the Ankra login page
  2. After you authenticate, ask you to approve the sign-in in the browser
  3. Complete the two-factor challenge in the browser, if your account has one
  4. Save your credentials locally so you can use all ankra CLI commands
The whole login happens between your browser and the platform; the CLI never opens a local network port. Your credentials will be saved to ~/.ankra.yaml

ankra login status

Report the login state without any browser interaction: whether credentials are configured, the API base URL in use, where the token came from (the saved config file, the environment, or a flag), and the currently selected organisation. Exit code 6 when not logged in or the token is rejected, so scripts can probe the login state without parsing output.
Flags