Configure the Confluent Cloud CLI for Multiple Environments¶
You can provide restricted access to Confluent Cloud clusters by using the
ccloud init command. This
command allows you to authenticate with Confluent Cloud using as an Apache Kafka® API key and secret pair.
Each authentication instance that you create is saved.
When you connect to a cluster using
ccloud init with the
you are limited to produce and consume. Topic management is currently not supported.
Create and log in to your environment by using the
ccloud initcommand, where <context-name> is your environment name. This requires a Kafka API key and the bootstrap server URL of the Confluent Cloud environment.
ccloud init <context-name> --kafka-auth
You should be prompted to enter the login information:
Bootstrap: xxx API Key: xxx API Secret: xxx
You can now produce or consume to your Confluent Cloud environment. For more information, see ccloud kafka topic consume.