<!-- WARNING: This documentation is auto-generated from the confluentinc/cli repository and should not be manually edited. -->

<a id="confluent-flink-connection-create"></a>

# confluent flink connection create

## Description

Create a Flink connection.

```none
confluent flink connection create <name> [flags]
```

## Flags

```none
    --cloud string               REQUIRED: Specify the cloud provider as "aws", "azure", or "gcp".
    --region string              REQUIRED: Cloud region for Flink (use "confluent flink region list" to see all).
    --type string                REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "anthropic", "fireworksai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", "mcp_server", "cosmosdb", or "s3vectors".
    --endpoint string            REQUIRED: Specify endpoint for the connection.
    --api-key string             Specify API key for the type: "openai", "azureml", "azureopenai", "anthropic", "fireworksai", "googleai", "elastic", "pinecone", "a2a", "mcp_server", or "cosmosdb".
    --aws-access-key string      Specify access key for the type: "bedrock", "sagemaker", or "s3vectors".
    --aws-secret-key string      Specify secret key for the type: "bedrock", "sagemaker", or "s3vectors".
    --aws-session-token string   Specify session token for the type: "bedrock", "sagemaker", or "s3vectors".
    --service-key string         Specify service key for the type: "vertexai".
    --username string            Specify username for the type: "mongodb", "elastic", "couchbase", "confluent_jdbc", "a2a", "rest", or "mcp_server".
    --password string            Specify password for the type: "mongodb", "elastic", "couchbase", "confluent_jdbc", "a2a", "rest", or "mcp_server".
    --token string               Specify bearer token for the type: "a2a", "rest", or "mcp_server".
    --token-endpoint string      Specify OAuth2 token endpoint for the type: "a2a", "rest", or "mcp_server".
    --client-id string           Specify OAuth2 client ID for the type: "a2a", "rest", or "mcp_server".
    --client-secret string       Specify OAuth2 client secret for the type: "a2a", "rest", or "mcp_server".
    --scope string               Specify OAuth2 scope for the type: "a2a", "rest", or "mcp_server".
    --sse-endpoint string        Specify SSE endpoint for the type: "mcp_server".
    --transport-type string      Specify transport type for the type: "mcp_server". Default: SSE.
    --environment string         Environment ID.
-o, --output string              Specify the output format as "human", "json", or "yaml". (default "human")
```

## Global Flags

```none
-h, --help            Show help for this command.
    --unsafe-trace    Equivalent to -vvvv, but also log HTTP requests and responses which might contain plaintext secrets.
-v, --verbose count   Increase verbosity (-v for warn, -vv for info, -vvv for debug, -vvvv for trace).
```

## Examples

Create Flink connection “my-connection” in AWS us-west-2 for OpenAPI with endpoint and API key.

```none
confluent flink connection create my-connection --cloud aws --region us-west-2 --type openai --endpoint https://api.openai.com/v1/chat/completions --api-key 0000000000000000
```

## See Also

* [confluent flink connection](index.md#confluent-flink-connection) - Manage Flink connections.
