ccloud init


The Confluent Cloud CLI is deprecated and will stop working on May 9, 2022. All ccloud features have been moved to the Confluent CLI. To update to the new CLI, run ccloud update –major. See the Migrate to Confluent CLI v2 for more details.


Initialize and set a current context.

ccloud init <context-name> [flags]


--kafka-auth          Initialize with bootstrap url, API key, and API secret. Can be done interactively, with flags, or both.
--bootstrap string    Bootstrap URL.
--api-key string      API key.
--api-secret string   API secret. Can be specified as plaintext, as a file, starting with '@', or as stdin, starting with '-'.

Global Flags

-h, --help            Show help for this command.
-v, --verbose count   Increase verbosity (-v for warn, -vv for info, -vvv for debug, -vvvv for trace).


Initialize and set a current context of name “new context”:

ccloud init "new context" --kafka-auth

See Also