---
title: "ezgh hosted-queues topics create"
description: "Create a topic."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh hosted-queues topics create

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh hosted-queues topics create <cluster> <name> [--partitions n] [--replication-factor n] [--config key=value] [--wait] [flags]
```

Create a topic. Partitions and the replication factor default to the cluster's; `--config` sets topic configs (retention.ms, retention.bytes, cleanup.policy, min.insync.replicas, max.message.bytes, compression.type, segment.bytes).

Part of [`ezgh hosted-queues topics`](/cli/reference/hosted-queues-topics).

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--config` | string, repeatable |  | a topic config, key=value; repeat for more |
| `--partitions` | int |  | partitions, 1 to 1,000 |
| `--replication-factor` | int |  | copies, 1 to the cluster's nodes |
| `--wait` | boolean |  | wait until it's done |
| `--wait-timeout` | duration | `10m0s` | how long `--wait` waits |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/hosted-queues-topics-create/index.mdx
