login/logout

CrateDB Cloud uses OAuth2 for authentication.

You must authenticate yourself before interacting with your CrateDB Cloud account or its resources.

login

Log in to your CrateDB Cloud account.

This will open a browser window that will present you with an authentication screen.

CrateDB Cloud offers four authentication methods: username and password (via Amazon Cognito), Azure AD, GitHub and Google logins. By default username and password authentication is used, but the login provider can be changed using the --idp (Identity Provider) argument.

Usage: croud login [-h] --idp {cognito,azuread,github,google}
                   [--region REGION] [--output-fmt {table,wide,json,yaml}]
                   [--sudo]

Required Arguments

--idp

Possible choices: cognito, azuread, github, google

The identity provider (IdP) for the login.

Optional Arguments

--region, -r

Temporarily use the specified region that command will be run in.

--output-fmt, --format, -o

Possible choices: table, wide, json, yaml

Change the formatting of the output.

--sudo

Run the given command as superuser.

Default: False

Note

Your access token is cached locally, and all subsequent commands will be authenticated until you explicitly log out.

logout

Log out of your CrateDB Cloud account.

This will clear your access token. You will then be required to log in again before interacting with your account or its resources.

Usage: croud logout [-h] [--region REGION]
                    [--output-fmt {table,wide,json,yaml}] [--sudo]

Optional Arguments

--region, -r

Temporarily use the specified region that command will be run in.

--output-fmt, --format, -o

Possible choices: table, wide, json, yaml

Change the formatting of the output.

--sudo

Run the given command as superuser.

Default: False