---
title: "ezgh queues create"
description: "Create a standard or FIFO queue."
---

> 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 queues 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 queues create <name> [--fifo] [--visibility-timeout t] [--retention t] [--delay t] [--receive-wait t] [--dlq <queue> --max-receives n] [--content-dedup] [flags]
```

Create a queue. Its name (letters, digits, - and \_, up to 80) and type are fixed. `--fifo` makes a FIFO queue: messages of one group are delivered in order, and sends are deduplicated for 5 minutes by `--dedup`, or by the body's SHA-256 with `--content-dedup`.

Times are seconds or durations (30, 30s, 5m, 12h, 4d). `--dlq` names a dead-letter queue of the same type, where a message moves after `--max-receives` receives.

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

## Examples

```sh
ezgh queues create orders-dlq --retention 14d
ezgh queues create orders --visibility-timeout 1m --dlq orders-dlq --max-receives 5
ezgh queues create payments --fifo --content-dedup
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--content-dedup` | boolean |  | FIFO: deduplicate messages without `--dedup` by their body's SHA-256 |
| `--delay` | string |  | the queue's delivery delay, 0 to 15m (default 0) |
| `--dlq` | string |  | the dead-letter queue (name or ID), of the same type, with `--max-receives` |
| `--fifo` | boolean |  | a FIFO queue (can't change) |
| `--max-receives` | int |  | receives before a message moves to the dead-letter queue, 1 to 1000 |
| `--receive-wait` | string |  | the default long-poll wait of a receive, 0 to 20s (default 0) |
| `--retention` | string |  | how long a message is kept: 60s to 14d (default 4d) |
| `--tag` | string, repeatable |  | a tag, key=value (repeat) |
| `--visibility-timeout` | string |  | how long a received message stays hidden: 0 to 12h (default 30s) |

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

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