auth command helps you manage authentication and account profiles for the Xata CLI.
Subcommands
login
Log in to a Xata account.Profile to log in to (default:
default)Force login even if already logged in
Print help information and exit
Custom environment flags
For Enterprise customers we allow connecting the CLI to a custom deployment in their cloud. Pass any of the flags below to log in against a non-production environment; if omitted, the CLI uses the default production values.Issuer URL for the custom environment
API base URL for the custom environment
Client ID for the custom environment (defaults to
cli)Client secret for the custom environment
list
List all available Xata account profiles.Output the list of profiles in JSON format
Print help information and exit
logout
Log out of the current account.Profile to log out of (default:
default)Do not ask for confirmation, assume yes
Print help information and exit
status
Display active account and authentication state.Profile to log in to (default:
default)Print help information and exit
switch
Switch to a different Xata account profile.The profile to switch to
Print help information and exit
access-token
Print the current access token.Profile to log in to (default:
default)Print help information and exit
refresh-token
Print the current refresh token.Profile to log in to (default:
default)Print help information and exit
Global Flags
Print help information and exit