st2 auth <username>

Authenticate user and acquire access token

Arguments

NameDescription
usernameName of the user

Options

NameDescription
-h, --helpShow this help and exit
-j, --jsonPrint output in JSON format
-y, --yamlPrint output in YAML format
-p <PASSWORD>Password
-l, --ttl <TTL>The life span of the token in seconds. Max TTL configured by the admin supersedes this
-t, --only-tokenOn successful authentication, print only token to the console