Skip to content

stratumctl auth

Inspect authentication state

Terminal window
stratumctl auth [flags]

Choose a new password for the signed-in account

Terminal window
stratumctl auth change-password [flags]

Sets a new password for the account the active profile is signed in as. Every other session of the account is signed out; this one stays.

An account that still has its install-time password (the bootstrap admin right after an install) can do nothing else until it does this.

The new password comes from –new-password, STRATUM_NEW_PASSWORD, or a prompt (asked twice) at a terminal. At least 8 characters, and not the current one.

Terminal window
stratumctl auth change-password
stratumctl auth change-password --new-password "$NEW_PASSWORD"
Flag Type Default Description
--new-password string The new password (prompts if missing)

List all profiles in ~/.stratum/config.yaml

Terminal window
stratumctl auth list-profiles [flags]
Terminal window
stratumctl auth list-profiles

Print the active profile + endpoint + token validity

Terminal window
stratumctl auth status [flags]
Terminal window
stratumctl auth status
stratumctl auth status --profile lab

Manage personal access tokens

Terminal window
stratumctl auth tokens [flags]

Mint a new PAT (plaintext printed ONCE — store it now)

Terminal window
stratumctl auth tokens create [flags]
Terminal window
stratumctl auth tokens create --label ci-deploy --ttl 720h
stratumctl auth tokens create --label read-only --scope "compute:*" --scope network:DescribeVPC
Flag Type Default Description
--label string Operator-facing label for the PAT
--scope stringSlice Cedar action prefix scopes (repeatable)
--ttl string TTL (Go duration, e.g. 24h, 720h). Empty = no expiry.
--user string User id (defaults to current principal)

Describe a single PAT

Terminal window
stratumctl auth tokens get <token-id> [flags]
Terminal window
stratumctl auth tokens get tok-h3k7mq2xvb4n5r
Flag Type Default Description
--user string User id (defaults to current principal)

List your personal access tokens

Terminal window
stratumctl auth tokens list [flags]
Terminal window
stratumctl auth tokens list
stratumctl auth tokens list --user u-alice --output json
Flag Type Default Description
--user string User id (defaults to current principal)

Revoke a PAT. Idempotent.

Terminal window
stratumctl auth tokens revoke <token-id> [flags]
Terminal window
stratumctl auth tokens revoke tok-h3k7mq2xvb4n5r
Flag Type Default Description
--user string User id (defaults to current principal)

Set the current_profile pointer in ~/.stratum/config.yaml

Terminal window
stratumctl auth use-profile <name> [flags]
Terminal window
stratumctl auth use-profile lab