Sessions
CloudKit keeps one active AWS profile and one active gcloud configuration per terminal. Switching in one terminal never affects another.
ck aws login
Section titled “ck aws login”Pick an AWS profile from ~/.aws/config, run an SSO login if the token is missing or expired, and show the session table.
ck aws loginAccount 1234-5678-9012Profile dev-adminRegion eu-west-1Identity SSO AdministratorAccess as jane@example.comCredentials SSO · expires 2026-10-21 14:20 UTC (in 7h 12m)Profiles are listed if they use SSO (sso_session / sso_account_id), access keys, or credential_process, including chained roles.
ck aws switch
Section titled “ck aws switch”Switch this terminal to another AWS profile.
ck aws switchck aws sso
Section titled “ck aws sso”Shortcut for aws sso login --profile <profile>.
ck aws sso my-profileck aws logout
Section titled “ck aws logout”Clear the AWS session from this terminal.
ck aws logoutck gcloud login
Section titled “ck gcloud login”Pick a gcloud configuration, authenticate if needed, and show the session table.
ck gcloud loginck gcloud login --reauth # force re-authenticationThe selection applies to the current terminal only (via CLOUDSDK_ACTIVE_CONFIG_NAME). New terminals start with no gcloud session until you run ck gcloud login. Set CLOUDKIT_GCLOUD_GLOBAL=1 to use gcloud’s global configuration instead.
ck gcloud switch
Section titled “ck gcloud switch”Switch this terminal to another gcloud configuration.
ck gcloud switchck gcloud logout
Section titled “ck gcloud logout”Clear the gcloud session from this terminal.
ck gcloud logoutPrompt and production marker
Section titled “Prompt and production marker”While a session is active, your prompt is prefixed with [profile:region] for AWS and [gcloud:account:project] for gcloud.
Turn the prompt changes off with CLOUDKIT_NO_PROMPT=1 if you use Starship or Powerlevel10k.
ck status
Section titled “ck status”Show the active AWS and gcloud sessions in this terminal. It makes no network calls.
ck status