<a id="hook-command-storage-list"></a>

# `storage-list`

## Summary

Lists storage attached to the unit.

## Usage

```text
storage-list [options] [<storage-name>]
```

### Options

| Flag             | Default   | Usage                                   |
|------------------|-----------|-----------------------------------------|
| `--format`       | smart     | Specify output format (json|smart|yaml) |
| `-o`, `--output` |           | Specify an output file                  |

## Examples

```none
storage-list pgdata
```

## Details

`storage-list` will list the names of all storage instances
attached to the unit. These names can be passed to `storage-get`
via the `-s` flag to query the storage attributes.

A storage name may be specified, in which case only storage
instances for that named storage will be returned.
