---
title: "ezgh compute volumes create"
description: "Create an empty volume, or one from an image or snapshot."
---

> 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 compute volumes 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 compute volumes create <name> [--type t --size-gib n | --image alias | --snapshot s] [--iops n] [--throughput n] [--deletion-protection] [--tag k=v…] [flags]
```

Create a volume: empty (`--type` and `--size-gib`), from an image alias (`--image` linux/ubuntu:24.04; its size defaults to the image's minimum), or restored from a snapshot (`--snapshot`, by ID, UUID or name; it keeps the snapshot's type, and its size defaults to the snapshot's volume size). `ezgh compute volume-types list` shows the types, their sizes and performance; `--iops` and `--throughput` (MB/s) default to the type's baseline.

It's asynchronous: the volume is creating until its CreateVolume operation finishes.

Part of [`ezgh compute volumes`](/cli/reference/compute-volumes).

## Examples

```sh
ezgh compute volumes create data --type d0 --size-gib 20
ezgh compute volumes create root --type d0 --image linux/ubuntu:24.04
ezgh compute volumes create restored --snapshot nightly
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--architecture` | string |  | the image's architecture (default amd64) |
| `--deletion-protection` | boolean |  | refuse deleting it until this is turned off |
| `--image` | string |  | copy this image alias, such as linux/ubuntu:24.04 |
| `--iops` | int |  | provisioned IOPS (default: the type's baseline) |
| `--size-gib` | int |  | the size in GiB (required for an empty volume) |
| `--snapshot` | string |  | restore this snapshot (ID, UUID or name) |
| `--tag` | string, repeatable |  | a tag, key=value (repeat) |
| `--throughput` | int |  | provisioned throughput in MB/s (default: the type's baseline) |
| `--type` | string |  | the volume type (required, except for a restore) |
| `--wait` | boolean |  | wait until it's available, and print it then |
| `--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/compute-volumes-create/index.mdx
