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 box at a mount path |
detach | Detach a data volume from a box |
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 box at a mount path| Argument / option | Description |
|---|---|
<DATA> | Data volume name |
<BOX_NAME> | Box to attach to |
--path <PATH> | Mount path inside the box (must be absolute and outside reserved roots) |
--read-only | Mount as read-only |
-p, --project <PROJECT> | Target project. |
-j, --json | Print the JSON response. |
detach
Detach a data volume from a box| Argument / option | Description |
|---|---|
<DATA> | Data volume name |
<BOX_NAME> | Box 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 box |
create | Create a snapshot of box’s root filesystem |
restore | Restore box to a previous snapshot (destructive) |
list
List snapshots for a box| Argument / option | Description |
|---|---|
<BOX_NAME> | Box ref. |
-p, --project <PROJECT> | Target project. |
-j, --json | Print the JSON response. |
create
Create a snapshot of box’s root filesystem| Argument / option | Description |
|---|---|
<BOX_NAME> | 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 box to a previous snapshot (destructive)| Argument / option | Description |
|---|---|
<BOX_NAME> | 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 |
install | Install a base into the selected environment on demand |
update | Rebuild and install a base into the selected environment |
save | Save a box’s filesystem as a new base |
import | Import a tar.gz file as a base |
delete | Delete a base alias or exact version |
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. |
--script-sha256 <SCRIPT_SHA256> | Provenance hash recorded on the built base version |
--builder <BUILDER> | Provenance builder recorded on the built base version |
-j, --json | Print the JSON response. |
install
Install a base into the selected environment on demand| Argument / option | Description |
|---|---|
<NAME> | Name. |
update
Rebuild and install a base into the selected environment| Argument / option | Description |
|---|---|
<NAME> | Name. |
save
Save a box’s filesystem as a new base| Argument / option | Description |
|---|---|
<BASE> | Base name. |
<BOX_NAME> | Box ref. |
-p, --project <PROJECT> | Target project. |
--script <SCRIPT> | Provenance script recorded on the saved base version |
--script-sha256 <SCRIPT_SHA256> | Provenance hash recorded on the saved base version |
--parent-alias <PARENT_ALIAS> | Provenance parent alias recorded on the saved base version |
--parent-version <PARENT_VERSION> | Provenance parent version recorded on the saved base version |
--builder <BUILDER> | Provenance builder recorded on the saved base version |
-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 |
--script-sha256 <SCRIPT_SHA256> | Provenance hash recorded on the imported base version |
--parent-alias <PARENT_ALIAS> | Provenance parent alias recorded on the imported base version |
--parent-version <PARENT_VERSION> | Provenance parent version recorded on the imported base version |
--builder <BUILDER> | Provenance builder recorded on the imported base version |
-j, --json | Print the JSON response. |
delete
Delete a base alias or exact version| Subcommand | Description |
|---|---|
alias | Delete a base alias and all versions it owns |
version | Delete one immutable base version |
alias
Delete a base alias and all versions it owns| Argument / option | Description |
|---|---|
<ALIAS> | Base alias to delete with all versions it owns |
version
Delete one immutable base version| Argument / option | Description |
|---|---|
<VERSION> | Exact immutable base version to delete |
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 |
|---|---|
<BOX_NAME> | 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 |
|---|---|
<BOX_NAME> | Box ref. |
<PATH> | Root filesystem path; /home, /box/bin, /box/all, and /box/proj are rejected |
--against <AGAINST> | Snapshot to compare against (default: most recent) |
-p, --project <PROJECT> | Target project. |
-j, --json | Print the JSON response. |