# CLI: Storage & Assets

> Create, grow, connect to, and delete network storage volumes, and list, import, upload, and download Assets from the meshive CLI.

Source: https://docs.meshive.ai/sdk-cli/cli/storage-assets/

Network storage and Asset Hub commands in the `meshive` CLI. See [CLI Overview & Options](/sdk-cli/cli/) for global flags and write confirmation rules.

## `meshive storages`

Lists the storages (volumes) in a workspace.

```bash
meshive storages <workspace>
```

Columns: **NAME** (display label), **ID** (volume name — the value you pass to `storage`), **TYPE**, **STATUS**, **SIZE**, **USED**, **PRICE/HR**, **PODS** (linked pods), **CREATED**.

### Filters

Filtering is client-side.

| Flag | Description |
| --- | --- |
| `--type` | `nfs`, `hostPath`, `ephemeral`, or `emptyDir` (case-insensitive). |
| `--status` | Filter by status (repeatable or comma-separated). Same values as pod statuses. |
| `--name` | Substring match on the display name. |

## `meshive storage`

Shows a single storage: size, usage, free space, price, the pods it is mounted in, whether it is encrypted, and a maintenance notice when its host machine is under maintenance. Storage on a machine with an open maintenance window isn't billed.

```bash
meshive storage <workspace> <storage>
```

## `meshive assets`

Lists the assets in a workspace — datasets, models, adapters, checkpoints, outputs, configs and plain files — one page at a time.

```bash
meshive assets <workspace>
meshive assets <workspace> --type dataset          # dataset, model, adapter, checkpoint, output, config, file
meshive assets <workspace> --status frozen         # active, source_missing, frozen, deleted, purged, merged
meshive assets <workspace> --page 2 --page-size 50 # 1-100 per page (default 20)
meshive assets <workspace> --name imagenet         # substring match within the page (client-side)
```

By default deleted, purged and merged assets are hidden; pass `--status` to see one of those states. `--type`, `--status` and paging are applied by the API. When there are more pages, a hint line shows the page count.

Columns: **NAME**, **ID** (`asset_…` — the value you pass to `asset`), **TYPE**, **STATUS**, **SIZE** and **FILES** (`-` for a linked source that was never measured), **STORAGE** (`managed`, `s3` for your own bucket, or `external` for a linked Hugging Face / CivitAI source), **UPDATED**.

## `meshive asset`

Shows a single asset: type, status and reason, storage location, its current size and file count, who created it, whether it is in use and by what. A failed import shows its reason.

```bash
meshive asset <id>
```

It lists the asset's files (**FILE**, **SIZE**, **STATUS** — the first 50; `-o json` has them all), its upload state while it isn't ready, and where it came from.

## `meshive asset-import`

Links a Hugging Face repo, a CivitAI model or a direct file URL as an asset, so tasks and pods can use it with `--input-asset`. It needs a read & write key.

```bash
meshive asset-import <workspace> Qwen/Qwen3-0.6B
meshive asset-import <workspace> https://civitai.com/models/4384 --type checkpoint
meshive asset-import <workspace> meta-llama/Llama-3.1-8B --hf-token <id> --path '*.safetensors' --path '*.json'
meshive civitai-keys <workspace>          # key IDs for --civitai-key; hf-tokens lists Hugging Face token IDs
```

Nothing is copied: the asset is ready at once and has no storage charge, and pods and tasks download it from the source when they start — so the command doesn't ask for confirmation. `--revision` pins a Hugging Face branch, tag or commit; `--path` links only matching files. A private or gated source needs a token or key saved in the console; when one is missing, the error says what to do.

## `meshive asset-download`

Saves an asset's files, keeping their paths inside the asset. A read key is enough.

```bash
meshive asset-download <id>                       # into ./<id>
meshive asset-download <id> -d models/sdxl        # into a directory of your choice
meshive asset-download <id> --path 'config/*'     # only matching files (fnmatch, repeatable)
```

Existing files are overwritten. One request covers at most 500 files, so split a larger asset with `--path`. Linked assets (fetched from Hugging Face or CivitAI when a pod starts) can't be downloaded. Accounts that have never paid have a daily download limit.

## `meshive asset-storage`

Shows how much managed asset storage a workspace uses, the price per GiB-month, the estimated monthly cost, and the asset credit status: `normal`, `grace` (with the time until uploads are blocked), or `blocked` (with the deadline after which managed assets are deleted unless credit is added). Also shows whether the workspace's billing account has credit to start pods and tasks. Assets in your own S3 bucket are not billed and are not counted.

```bash
meshive asset-storage <workspace>
```

`-o name` prints just the estimated monthly cost.

## `meshive storage-create`, `storage-delete`

```bash
meshive storage-create <workspace> <name> --size <GiB> [--encrypted] [--usage-warning [<percent>]] [--max-price <USD>] [--estimate] [-y]
meshive storage-delete <workspace> <storage> [-y]
```

`storage-create` creates **network** (`nfs`) storage, which any pod in the workspace can attach. `--size` must be at least 10 GiB, as in the console. `--encrypted` turns on at-rest encryption. `--usage-warning` emails you when the volume is more than 90% full, like the console's usage warning; give a whole percentage from 1 to 100 for another threshold, e.g. `--usage-warning 80`. Local storage can't be created on its own — create it together with a pod with [`pod-create --local-volume`](/sdk-cli/cli/pod-create-update/#meshive-pod-create). `--type` defaults to `nfs`, and `hostPath` is refused. `--disk` and `--region` are deprecated and ignored — storage is always NVMe — and print a warning; they will be removed in 2.0.

Storage is billed hourly by capacity for as long as it exists, mounted or not — except while its host machine has an open maintenance window. Deleting a volume still linked to a pod fails with `Storage In Use`; remove its pod attachment or delete the pod first. Stopping a pod alone does not necessarily remove the attachment. Find the volume ID with `meshive storages`.

## `meshive storage-update`

```bash
meshive storage-update <workspace> <storage> [--name <label>] [--size <GiB>] [--usage-warning [<percent>] | --no-usage-warning] [--estimate] [-y]
```

Renames a volume, grows it or changes its usage warning — only what you pass changes. A name another volume in the workspace already uses is refused, as in the console. It prints the new size and hourly price next to the current ones and asks for confirmation. `--size` can only grow a volume (at least 10 GiB); a smaller size is refused with the current size. Growing is billed at the new size from then on. `--usage-warning` turns the usage warning on, as in `storage-create`, and `--no-usage-warning` turns it off. A rename or a usage warning change applies at once; growing runs in the background and prints a transaction.

## `meshive storage-connect`

```bash
meshive storage-connect <workspace> <storage> [--no-wait] [--wait-timeout <s>]
```

Opens a volume for SSH and SFTP, like the console's **Connect**, and prints a one-time SSH command and password — the same kind of login as [`meshive ssh`](/sdk-cli/cli/pod-access/#meshive-ssh) gives for a pod. It doesn't run ssh for you, and it needs a read & write key. The command waits until the volume is ready (up to `--wait-timeout`, default 300 seconds); `--no-wait` prints the current status instead, with the login only if it is ready already. [Encrypted storage](/storage/encryption/) is unlocked for this and locks again automatically after a while; the output says when. The password expires after a few minutes, and the browser-terminal link in the output contains it, so don't paste either anywhere shared.

## `meshive asset-upload`

Upload a local file or folder as a new Asset (CLI **1.9 or later**, Read & write key):

```bash
meshive asset-upload WORKSPACE ./training-data --name training-data --type dataset
```

Files keep their relative paths. Large files upload in parts; symbolic links and empty files are skipped. `--name` defaults to the file or folder name. `--type` accepts `dataset`, `model`, `adapter`, `checkpoint`, `config` or `file`.

The upload starts immediately and prints the ready Asset ID, file count and size. Use the ID as a Pod or Task input. Managed storage is billed as usual.

[Assets and inputs →](/assets/ingest/)
