File size: 2,069 Bytes
76d9c4f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
---
title: vessl volume
version: EN
---
### Overview
Run `vessl volume --help` to view the list of commands, or `vessl volume [COMMAND] --help` to view individual command instructions.
<Note>In most cases, you will not interact with volume files directly.</Note>
## Commands
### Copy a volume file 
You can copy a volume file either from local to remote, remote to local, or remote to remote. 
```
vessl volume copy [OPTIONS]
```
| Option | Description |
| ------------------- | -------------------------------------------------------------------------------------------- |
| `--source-id` | Source volume file id. If not specified, source is assumed to be local. |
| `--source-path` | If `--source-id` is empty, local source path. Otherwise, remote source path. |
| `--dest-id` | Destination volume file id. If not specified, destination is assumed to be local. |
| `--dest-path` | If `--dest-id` is empty, local destination path. Otherwise, remote destination path. |
| `-r`, `--recursive` | Required both `--source-id` and `--dest-id` are specified, and `--source-id` is a directory. |
### Delete the volume file
```
vessl volume delete [OPTIONS] ID
```
| Argument | Description |
| -------- | -------------- |
| `ID` | Volume file ID |
| Option | Description |
| ------------------- | -------------------------------------- |
| `-r`, `--recursive` | Required if volume file is a directory |
### List volume files
```
vessl volume list [OPTIONS] ID
```
| Argument | Description |
| -------- | -------------- |
| `ID` | Volume file ID |
| Option | Description |
| ------------------- | ------------------------------------------ |
| `-p`, `--path` | Path within volume file (defaults to root) |
| `-r`, `--recursive` | Required if path is a directory |
|