# dflow volumes:expand

> Grow a volume. A volume never shrinks.

Web page: /docs/cli/data/volumes-expand/

```bash
dflow volumes:expand NAME --size-gi N
```

## Flags

`NAME` is a volume name in the current environment, or a volume id. `--size-gi` is required, larger than the current size, and at most 10. The storage class must allow expansion. `--wait` defaults to true. `--wait-timeout` defaults to `20m` and must be from 1s to 30m.

## What you see

The command succeeds when the claim reports the new capacity. The volume's `size_gi` changes only then, so a failed or stuck expand leaves it alone.

## When it fails

A size that is not larger than the current size, or above 10, exits 1. An unknown volume exits 3. A storage class that cannot expand makes the operation fail with `operation_failed` and the size stays.
