(hook-command-storage-list)= # `storage-list` ## Summary List storage attached to the unit. ## Usage ``` storage-list [options] []``` ### Options | Flag | Default | Usage | | --- | --- | --- | | `--format` | smart | Specify output format (json|smart|yaml) | | `-o`, `--output` | | Specify an output file | ## Examples 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. Further details: storage-list list storages instances that are attached to the unit. The storage instance identifiers returned from storage-list may be passed through to the storage-get command using the -s option.