---
title: "ezgh hosted-queues exchanges create"
description: "Create an exchange."
---

> 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 exchanges 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 exchanges create <cluster> <name> --type t [--vhost v] [--durable=false] [--arguments json] [--wait] [flags]
```

Create an exchange: `--type` direct, fanout, topic, headers or a plugin's x- type.

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

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--arguments` | string |  | exchange arguments as a JSON object, such as &#123;"alternate-exchange": "unrouted"&#125; |
| `--durable` | boolean | `true` | survive a broker restart (`--durable=false` for transient) |
| `--type` | string |  | direct, fanout, topic, headers or a plugin's x- type |
| `--vhost` | string | `/` | the vhost it's in (/ is the default vhost) |
| `--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-exchanges-create/index.mdx
