rpk cloud auth create

Create an rpk cloud authentication (auth).

This command creates a new rpk cloud auth. The default SSO login does not need any additional auth values (the token is populated on login) so you can just create an empty auth. You can also use --set to set key=value pairs for client credentials.

The --set flag supports autocompletion, suggesting the -X key format. If you begin writing a YAML path, the flag will suggest the rest of the path.

rpk always switches the current cloud auth to the newly created auth.


rpk cloud auth create [NAME] [flags]


Value Type Description



Optional description of the auth.

-h, --help


Help for create.

-s, --set


A key=value pair to set in the cloud auth.



Redpanda or rpk config file; default search paths are ~/.config/rpk/rpk.yaml, $PWD, and /etc/redpanda/redpanda.yaml.

-X, --config-opt


Override rpk configuration settings; '-X help' for detail or '-X list' for terser detail.



rpk profile to use.

-v, --verbose


Enable verbose logging.