confluent api-key create

Description

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.

confluent api-key create [flags]

Flags

    --resource string          REQUIRED: The resource ID. Use "cloud" to create a Cloud API key.
    --service-account string   Service account ID.
    --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).

Examples

Create an API key with full access to cluster “lkc-123456”:

confluent api-key create --resource lkc-123456

Create an API key for cluster “lkc-123456” and service account “sa-123456”:

confluent api-key create --resource lkc-123456 --service-account sa-123456

See Also