st2 auth <username>
Authenticate user and acquire access token
Arguments
Name | Description |
---|---|
username | Name of the user |
Options
Name | Description |
---|---|
-h, --help | Show this help and exit |
-j, --json | Print output in JSON format |
-y, --yaml | Print 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-token | On successful authentication, print only token to the console |