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

<a id="confluent-cluster-register"></a>

# confluent cluster register

## Description

Register cluster with the MDS cluster registry.

```none
confluent cluster register [flags]
```

## Flags

```none
--hosts strings                    REQUIRED: A comma-separated list of hosts.
--protocol string                  REQUIRED: Security protocol.
--cluster-name string              REQUIRED: Cluster name.
--kafka-cluster string             Kafka cluster ID.
--schema-registry-cluster string   Schema Registry cluster ID.
--ksql-cluster string              ksqlDB cluster ID.
--connect-cluster string           Kafka Connect cluster ID.
--cmf string                       Confluent Managed Flink (CMF) ID.
--flink-environment string         Flink environment ID.
--client-cert-path string          Path to client cert to be verified by MDS. Include for mTLS authentication.
--client-key-path string           Path to client private key, include for mTLS authentication.
--context string                   CLI context name.
```

## 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

Register a new Confluent Platform cluster:

```none
confluent cluster register --cluster-name myKafkaCluster --kafka-cluster kafka-ID --hosts 10.6.6.6:9000,10.3.3.3:9003 --protocol SASL_PLAINTEXT
```

For more information, see [https://docs.confluent.io/platform/current/security/cluster-registry.html#registering-clusters](https://docs.confluent.io/platform/current/security/cluster-registry.html#registering-clusters).

## See Also

* [confluent cluster](index.md#confluent-cluster) - Retrieve metadata about Confluent Platform clusters.
