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

<a id="confluent-local-kafka-topic-create"></a>

# confluent local kafka topic create

#### IMPORTANT
- The [confluent local](https://docs.confluent.io/confluent-cli/current/command-reference/local/index.html) commands are intended for a single-node development environment and
  are not suitable for a production environment. The data that are produced are transient and are intended to be
  temporary. For production-ready workflows, see [Install and Upgrade Confluent Platform](/platform/current/installation/index.html).

## Description

Create a Kafka topic.

```none
confluent local kafka topic create <topic> [flags]
```

## Flags

```none
--partitions uint32           Number of topic partitions.
--replication-factor uint32   Number of replicas.
--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.
--if-not-exists               Exit gracefully if topic already exists.
```

## 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 topic named “test” with specified configuration parameters.

```none
confluent local kafka topic create test --config cleanup.policy=compact,compression.type=gzip
```

## See Also

* [confluent local kafka topic](index.md#confluent-local-kafka-topic) - Run Kafka topic related commands.
