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

<a id="confluent-kafka-mirror-create"></a>

# confluent kafka mirror create

## Description

Create a mirror topic under the link. The destination topic name is required to be the same as the source topic name.

```none
confluent kafka mirror create <source-topic-name> [flags]
```

## Flags

```none
--link string                REQUIRED: Name of cluster link.
--replication-factor int32   Replication factor. (default 3)
--config strings             A comma-separated list of "key=value" pairs, or path to a configuration file containing a newline-separated list of "key=value" pairs.
--source-topic string        Name of the source topic to be mirrored over the cluster link. Only required when there is a prefix configured on the link.
--kafka-endpoint string      Endpoint to be used for this Kafka cluster.
--cluster string             Kafka cluster ID.
--context string             CLI context name.
--environment string         Environment ID.
```

## 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 a mirror topic “my-topic” under cluster link “my-link”:

```none
confluent kafka mirror create my-topic --link my-link
```

Create a mirror topic with a custom replication factor and configuration file:

```none
confluent kafka mirror create my-topic --link my-link --replication-factor 5 --config my-config.txt
```

Create a mirror topic “src_my-topic” where “src_” is the prefix configured on the link:

```none
confluent kafka mirror create src_my-topic --link my-link --source-topic my-topic
```

## See Also

* [confluent kafka mirror](index.md#confluent-kafka-mirror) - Manage cluster linking mirror topics.
