跳到主要内容

Authentication Commands: auth

bohr auth signs in to Bohrium, checks the current identity, and manages local credentials.

Commands

CommandUsageDescription
loginbohr auth login [flags]Log in to the Bohrium platform.
logoutbohr auth logout [flags]Remove the stored access key and vouch tokens.
statusbohr auth status [flags]Display the current authentication status.
tokenbohr auth token [flags]Print the access key or vouch token for the active profile.
whoamibohr auth whoami [flags]Display the currently authenticated user information.

For subcommands inside a command group, run bohr auth <group> --help.

Common parameters

ParameterDescription
--ak <AccessKey>Sign in with an existing AccessKey
--deviceUse the device-code login flow
--no-waitReturn immediately after starting a device-code flow
--resumeResume a pending device-code login
--verifyVerify credentials with Bohrium when checking status

Examples

bohr auth login
bohr auth login --device --no-wait --json
bohr auth login --resume
bohr auth status --verify

auth token prints the current credential in plain text. Do not run it in shared terminals, logs, or screen recordings. auth logout clears local authentication state.