---
title: "ezgh hosted-queues bindings create"
description: "Create a binding."
---

> 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 bindings 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 bindings create <cluster> --source exchange --destination name [--destination-type queue|exchange] [--routing-key k] [--vhost v] [--wait] [flags]
```

Bind a queue or an exchange to an exchange.

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

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--arguments` | string |  | binding arguments as a JSON object, for headers exchanges |
| `--destination` | string |  | the queue or exchange it binds to |
| `--destination-type` | string | `queue` | queue or exchange |
| `--routing-key` | string |  | the routing key |
| `--source` | string |  | the exchange it binds from |
| `--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-bindings-create/index.mdx
