data
Manage persistent data volumes, snapshots, and backups| Subcommand | Description |
|---|---|
list | List data volumes |
create | Create a new data volume |
delete | Delete a data volume |
attach | Attach a data volume to a fork at a mount path |
detach | Detach a data volume from a fork |
snapshot | Manage data volume snapshots |
backup | Manage remote backups for a data volume |
restore | Restore a data volume from a backup or query restore status |
list
List data volumes| Argument / option | Description |
|---|---|
-a, --all | Include all projects. |
-q, --quiet | Print names only. |
-p, --project <PROJECT> | Target project. |
-j, --json | Print the JSON response. |
create
Create a new data volume| Argument / option | Description |
|---|---|
<NAME> | Name for the new data volume |
--from <FROM_DATA> | Source data volume to clone from (requires —from-snapshot) |
--from-snapshot <FROM_SNAPSHOT> | Source snapshot name (requires —from) |
-p, --project <PROJECT> | Target project. |
-j, --json | Print the JSON response. |
delete
Delete a data volume| Argument / option | Description |
|---|---|
<NAME> | Name. |
-p, --project <PROJECT> | Target project. |
attach
Attach a data volume to a fork at a mount path| Argument / option | Description |
|---|---|
<DATA> | Data volume name |
<FORK> | Fork to attach to |
--path <PATH> | Mount path inside the fork (must be absolute) |
--read-only | Mount as read-only |
-p, --project <PROJECT> | Target project. |
-j, --json | Print the JSON response. |
detach
Detach a data volume from a fork| Argument / option | Description |
|---|---|
<DATA> | Data volume name |
<FORK> | Fork to detach from |
-p, --project <PROJECT> | Target project. |
-j, --json | Print the JSON response. |
snapshot
Manage data volume snapshots| Subcommand | Description |
|---|---|
list | List snapshots of a data volume |
create | Create a snapshot of a data volume |
restore | Restore a data volume to a snapshot |
list
List snapshots of a data volume| Argument / option | Description |
|---|---|
<DATA> | Data volume name. |
-p, --project <PROJECT> | Target project. |
-j, --json | Print the JSON response. |
create
Create a snapshot of a data volume| Argument / option | Description |
|---|---|
<DATA> | Data volume to snapshot |
<NAME> | Snapshot name (auto-generated if omitted) |
--name <NAME_FLAG> | Snapshot name (flag form, overrides positional) |
-m, --message <MESSAGE> | Description for this snapshot |
-p, --project <PROJECT> | Target project. |
-j, --json | Print the JSON response. |
restore
Restore a data volume to a snapshot| Argument / option | Description |
|---|---|
<DATA> | Data volume name. |
<SNAPSHOT> | Snapshot name. |
-p, --project <PROJECT> | Target project. |
backup
Manage remote backups for a data volume| Subcommand | Description |
|---|---|
create | Create a backup and upload it to configured remote storage |
list | List backups for a data volume |
show | Show one backup |
wait | Wait for a backup to reach a terminal state |
create
Create a backup and upload it to configured remote storage| Argument / option | Description |
|---|---|
<DATA> | Data volume to back up |
<NAME> | Backup name (auto-generated if omitted) |
--name <NAME_FLAG> | Backup name (flag form, overrides positional) |
-m, --message <MESSAGE> | Description for this backup |
--no-wait | Return without waiting for completion |
-p, --project <PROJECT> | Target project. |
-j, --json | Print the JSON response. |
list
List backups for a data volume| Argument / option | Description |
|---|---|
<DATA> | Data volume name. |
-p, --project <PROJECT> | Target project. |
-j, --json | Print the JSON response. |
show
Show one backup| Argument / option | Description |
|---|---|
<DATA> | Data volume name. |
<BACKUP> | Backup name. |
-p, --project <PROJECT> | Target project. |
-j, --json | Print the JSON response. |
wait
Wait for a backup to reach a terminal state| Argument / option | Description |
|---|---|
<DATA> | Data volume name. |
<BACKUP> | Backup name. |
--timeout <TIMEOUT> | Defaults to 900. |
-p, --project <PROJECT> | Target project. |
-j, --json | Print the JSON response. |
restore
Restore a data volume from a backup or query restore status| Argument / option | Description |
|---|---|
<FIRST> | Use one of: restore <data> <backup> restore status <data> <operation-id> (requires 3 positional args) |
<SECOND> | Backup name, or operation id when the first argument is status. |
<THIRD> | Operation id, when checking restore status. |
--no-wait | Return without waiting for completion (only for restore start) |
--timeout <TIMEOUT> | Defaults to 900. |
-p, --project <PROJECT> | Target project. |
-j, --json | Print the JSON response. |
snapshot
Capture and restore box root-filesystem checkpoints| Subcommand | Description |
|---|---|
list | List snapshots for a fork |
create | Create a snapshot of fork’s root filesystem |
restore | Restore fork to a previous snapshot (destructive) |
list
List snapshots for a fork| Argument / option | Description |
|---|---|
<FORK> | Box ref. |
-p, --project <PROJECT> | Target project. |
-j, --json | Print the JSON response. |
create
Create a snapshot of fork’s root filesystem| Argument / option | Description |
|---|---|
<FORK> | Box ref. |
<NAME> | Snapshot name (auto-generated if omitted) |
--name <NAME_FLAG> | Snapshot name (flag form, overrides positional) |
-m, --message <MESSAGE> | Description for this snapshot |
-p, --project <PROJECT> | Target project. |
-j, --json | Print the JSON response. |
restore
Restore fork to a previous snapshot (destructive)| Argument / option | Description |
|---|---|
<FORK> | Box ref. |
<SNAPSHOT> | Snapshot name. |
-p, --project <PROJECT> | Target project. |
base
Manage base image templates| Subcommand | Description |
|---|---|
list | List available base images |
show | Show base versions and provenance |
build | Build a base from Dockerfile in current directory |
save | Save a fork’s filesystem as a new base |
import | Import a tar.gz file as a base |
list
List available base images| Argument / option | Description |
|---|---|
-j, --json | Print the JSON response. |
show
Show base versions and provenance| Argument / option | Description |
|---|---|
<NAME> | Name. |
--tag <TAG> | Base version tag. |
-j, --json | Print the JSON response. |
build
Build a base from Dockerfile in current directory| Argument / option | Description |
|---|---|
<NAME> | Name. |
-j, --json | Print the JSON response. |
save
Save a fork’s filesystem as a new base| Argument / option | Description |
|---|---|
<BASE> | Base name. |
<FORK> | Box ref. |
-p, --project <PROJECT> | Target project. |
-j, --json | Print the JSON response. |
import
Import a tar.gz file as a base| Argument / option | Description |
|---|---|
<NAME> | Name for the new base |
--file <FILE> | Path to tar.gz file containing root filesystem |
-p, --parent <PARENT> | Parent base to layer on top of |
-j, --json | Print the JSON response. |
diff
Show filesystem changes in a box since a snapshot| Subcommand | Description |
|---|---|
status | Show summary of changed files |
file | Show diff for a specific file |
status
Show summary of changed files| Argument / option | Description |
|---|---|
<FORK> | Box ref. |
--against <AGAINST> | Snapshot to compare against (default: most recent) |
-p, --project <PROJECT> | Target project. |
-j, --json | Print the JSON response. |
file
Show diff for a specific file| Argument / option | Description |
|---|---|
<FORK> | Box ref. |
<PATH> | File path within the fork |
--against <AGAINST> | Snapshot to compare against (default: most recent) |
-p, --project <PROJECT> | Target project. |
-j, --json | Print the JSON response. |