ccloud api-key create


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.


Create API keys for a given resource. A resource is some Confluent product or service for which an API key can be created, for example ksqlDB application ID, or “cloud” to create a Cloud API key.

ccloud api-key create [flags]


    --resource string          REQUIRED: The resource ID. Use "cloud" to create a Cloud API key.
    --service-account string   Service account ID. If not specified, the API key will have full access on the cluster.
    --description string       Description of API key.
-o, --output string            Specify the output format as "human", "json", or "yaml". (default "human")
    --environment string       Environment ID.
    --context string           CLI context name.

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).


Create an API key for service account with resource ID sa-lqv3mm for cluster lkc-xyz

ccloud api-key create --resource lkc-xyz --service-account sa-lqv3mm

See Also