dpsctl login#
dpsctl login Usage Guide#
Login to the DPS server and store authentication credentials.
Usage#
dpsctl login [flags]
Flags#
Includes global dpsctl options.
--username string, -u string The username to use to authenticate to DPS [$DPSCTL_USERNAME]
--password-stdin Read password from stdin (e.g. printf '%s\n' 'pass' | dpsctl login -u user --password-stdin) (default: false)
--help, -h show help
Examples#
Interactive Login#
$ dpsctl login
Please enter the value for username: alice
Please enter the value for password:
{
"status": {
"ok": true,
"diag_msg": "Login successful"
}
}
Login with Password from Stdin#
$ printf '%s\n' '<password>' | dpsctl login --username alice --password-stdin
{
"status": {
"ok": true,
"diag_msg": "Login successful"
}
}
Login with Environment Variables#
$ export DPSCTL_USERNAME=alice
$ export DPSCTL_PASSWORD=<password>
$ dpsctl login
{
"status": {
"ok": true,
"diag_msg": "Login successful"
}
}
Notes#
Credentials are stored in
${HOME}/.dpsctl/credentials.yamlby defaultThe credentials file path can be customized with
--credentials-pathflagA password provided with
--password-stdinorDPSCTL_PASSWORDrequires--usernameorDPSCTL_USERNAMETokens are automatically refreshed when expired
loginuses username/password authentication. It does not use the OIDC OAuth client-credentials flow for automation accounts when DPS runs in OIDC mode.