vh vault
Reference for vh vault - create, update, delete and restore vaults, their roles, keys, sync, recovery settings, remotes, format and read grants.
vh vault manages vaults: local ones and S3/R2 ones backed by a bucket, with their role assignments, encryption keys,
sync settings and recovery settings. Aliases include vh v; vh vaults lists them. Most commands take a vault by
name or id; a name owned by another user needs --owner.
1vh vault create docs --local --desc "Team documents" --quota 50G --on-sync-conflict keep_both2vh vault create archive --s3 --api-key r2-main --bucket vaulthalla-archive --sync-strategy cache --on-sync-conflict keep_local --encrypt3vh vault update archive --sync-strategy sync --interval 15m4vh vault info archive
Replicated vaults (vh vault join, vh vault leave, vh vault replica remove) are experimental, need
sync.replicas.experimental: true and are not covered here; mirroring between linked servers is
vh mirror.
Commands
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
ls | read | List the vaults your admin role lets you view (--accessible: every vault you can reach). | ||
<vault> | new, add, mk | write | Create a new vault. | |
<vault> | remove, del, rm | destructive | Delete a vault. | |
<vault> | undelete | write | Restore a deleted vault, exactly as it was, while it is pending deletion (until vaults.retention_window ends and its purge starts). | |
| destructive | Rebuild a vault on this instance from its bucket and your recovery material, after the server, database or TPM that held it are gone (an opaque_v1 vault; design: spec 03 §6). | |||
trash | read | List deleted vaults: pending (restorable), being purged, and purged ones whose encryption key is still kept. | ||
<vault> | show, get | read | Display detailed information about a vault. | |
<vault> | set, modify, edit | write | Update properties of an existing vault. | |
r | Manage vault role assignments and permission overrides. | |||
keys, k | Manage encryption keys for vaults. | |||
| Inspect the at-rest format of vault content (legacy GCM or VHF1). | ||||
<vault> | destructive | Move an encrypting S3 or R2 vault from path-named objects (path_v0) to opaque objects (opaque_v1), whose keys, requests and metadata name no file. | ||
| What the vault's bucket supports (conditional writes, object versions). | ||||
| Attach an S3 or R2 bucket to an existing local vault, or detach it again. | ||||
<vault> | s | Manage vault synchronization settings and operations. | ||
| File recovery settings of a vault: local snapshots, local versioning and provider versioning (AWS S3, Backblaze B2) with its cost disclosure. | ||||
read-grants | Vault read grants: read-only S3 gateway and upstream credentials for a vault, handed to a backup orchestrator only as an OpenPGP message encrypted to a pinned recipient. |
vh vault list
vh vault list [options]vh vaults lists the vaults your admin role lets you view. vault list --accessible lists every vault you can reach
and how: as its owner, through a vault role assigned to you or to one of your groups, through your admin role, or as a
super admin. Each row says whether you can browse the vault's files and whether you can manage its settings, decided
by the same permission checks that apply when you open it. An account whose only access is owning a vault or holding
a vault role sees nothing in vh vaults, and those vaults here. Owning a vault opens nothing by itself: without a
vault role or an admin role that grants it, its row shows neither browse nor manage. --accessible takes no filters
or paging.
1vh vaults --s3 --limit 52vh vault list --accessible --json
| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-n | limit | Limit the number of vaults displayed. | ||
-p | page | Specify the page number when using --limit for pagination. | ||
field | Sort by this field. | |||
asc or desc | Sort direction: asc or desc. | |||
text | Only show entries matching this text. | |||
flag | Show only local vaults. | |||
flag | Show only S3-backed vaults. | |||
-j | flag | Output in JSON format. | ||
flag | Every vault you can reach (as owner, through a vault role of yours or a group's, or your admin role) with what you can do there: browse (open its files) and manage (its settings). Takes no filters or paging. |
vh vault create
A vault is --local or --s3. S3/R2 vaults name the credential (--api-key) and the bucket; with a credential that
has provider administration enabled (vh upstream) they can also create the bucket or adopt an
existing one:
1vh vault create media --s3 --api-key aws-admin --bucket-mode create --generate-bucket --region us-east-22vh vault create media --s3 --api-key b2-admin --bucket-mode create --bucket acme-media-vault3vh vault create archive --s3 --api-key b2-admin --bucket legacy-photos --bucket-mode adopt
--bucket-mode is existing (bind --bucket as named), create or adopt. With create, --region takes an AWS
region or an R2 location hint; Backblaze B2 buckets are always created in the key's own region. B2 bucket names have 6
to 63 characters, can't start with b2-, and are shared by every Backblaze account: a name someone else holds is
refused as taken. --events and --abort-multipart-days are for AWS S3 and Cloudflare R2.
Without --sync-strategy or --on-sync-conflict, a new S3/R2 vault takes vaults.s3.default_remote_sync_strategy
and vaults.s3.default_remote_conflict_policy from config.yaml.
--on-sync-conflict has different values for local and S3 vaults, listed under each group below.
| Option | Aliases | Type | Default | Required | Group | Summary |
|---|---|---|---|---|---|---|
--s3 | flag | Yes | Type of vault to create. | |||
--desc, -d | description | No | Description of the vault. | |||
-q | size or unlimited | No | Storage quota (e.g. 10G, 500M). Use 'unlimited' to remove quota. | |||
--sync-interval | interval | No | Sync interval in seconds (default 5m). | |||
-o | id or name | No | User ID or username of the vault owner (required if using name). | |||
-i | flag | No | Run in interactive mode, prompting for missing information. | |||
--conflict | overwrite or keep_both or ask | overwrite | No | Local Vault Options | Conflict resolution strategy for local vaults. | |
existing or create or adopt | existing | No | S3 Bucket Provisioning (administrative keys) | existing (bind --bucket as named), create (a new managed bucket; never takes over an existing one) or adopt (associate an existing bucket after a read-only admission check). | ||
region | No | S3 Bucket Provisioning (administrative keys) | With --bucket-mode create: AWS region or R2 location hint (wnam, enam, weur, eeur, apac, oc). Backblaze B2 buckets are always created in the key's own region. | |||
prefix | No | S3 Bucket Provisioning (administrative keys) | With --events: only keys with this prefix. | |||
n | No | S3 Bucket Provisioning (administrative keys) | With --bucket-mode create|adopt: abort incomplete multipart uploads after N days. | |||
flag | No | S3 Bucket Provisioning (administrative keys) | With --bucket-mode create: pick an available bucket name. | |||
flag | No | S3 Bucket Provisioning (administrative keys) | With --bucket-mode create|adopt: turn on event-driven sync for the bucket. | |||
flag | No | S3 Bucket Provisioning (administrative keys) | With --bucket-mode adopt: accept the admission report without being asked. | |||
--conflict | keep_local or keep_remote or keep_newest or ask | No | S3 Vault Options | Conflict resolution strategy for S3 vaults (new vaults default to vaults.s3.default_remote_conflict_policy in config.yaml). | ||
name or id | No | S3 Vault Options | Name or ID of the API key to access the S3 bucket. | |||
name | No | S3 Vault Options | Name of the S3 bucket. | |||
--storage-class | tier | No | S3 Vault Options | Provider-local S3 storage tier for new uploads; use 'none' or 'default' to clear. | ||
--strategy | cache or sync or mirror | No | S3 Vault Options | Sync strategy for S3 vaults (new vaults default to vaults.s3.default_remote_sync_strategy in config.yaml). | ||
flag | yes | No | S3 Vault Options | Enable upstream encryption for S3 vaults. This is the default. | ||
flag | No | S3 Vault Options | Disable upstream encryption for S3 vaults. | |||
flag | No | S3 Vault Options | Acknowledge the risks of enabling encryption on an upstream s3 bucket with existing files. | |||
flag | No | S3 Vault Options | Acknowledge the risks of disabling encryption on an upstream s3 bucket with existing encrypted files. |
vh vault delete
vh vault delete <vault> [options]vault delete schedules the deletion: the vault disappears at once and vault restore brings it back until
vaults.retention_window ends (default 5m); then its data is purged. --now purges right away and needs --yes (or
a typed confirmation in a terminal). For S3 vaults, --delete-upstream also deletes the bucket's objects at purge
time; the default keeps them, and keeping encrypted objects whose key was never exported needs --accept-key-loss. In
a terminal, without --yes, the command asks instead. See Deleting And Restoring Vaults.
| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-o | id or name | User ID or username of the vault owner (required if using name). | ||
remove or leave | A vault this server mirrors to a linked server: what happens to its copy there. remove: the mirror removes it (unless it keeps the vaults this server removes); leave: it keeps it, orphaned. Required for a mirrored vault; applied when the vault is purged (the mirror is read-only until then, and follows again if the vault is restored). On a deleted vault it changes the choice. | |||
flag | Purge the vault's data right away instead of after vaults.retention_window. Asks once more (--yes confirms). On a vault already pending deletion, purges it now. The encryption key is still kept for the full key retention window. | |||
flag | S3 vaults: also delete every object in the bucket when the vault is purged. | |||
flag | S3 vaults: keep the bucket's objects (the default without a terminal). | |||
flag | Don't ask: delete with the given flags (also confirms --now). | |||
flag | Delete an S3 vault whose encrypted objects stay in the bucket although its key was never exported. Without the key that data can never be decrypted again: export it first (vh vault keys export). |
vh vault restore
vh vault restore <vault> [--owner id|name]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-o | id or name | User ID or username of the vault owner (required if using name). |
vh vault recover
vh vault recover [options]Rebuilds an opaque_v1 S3 vault on this server from its bucket and your recovery kit (or a key export) after the
original server is gone. --dry-run writes nothing. See
Restore A Vault From Its Bucket.
1vh vault recover --api-key <name-or-id> --bucket <bucket> --kit <kit> [--export <keys>] [--into <name>] [--dry-run]
The offline tool vh-recovery creates and maintains the kit on your own computer:
1vh-recovery kit create --output kit.json2vh-recovery kit public-key kit.json3vh-recovery kit add-vault kit.json --status status.json4vh-recovery kit show kit.json
| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
name or id | Name or ID of the API key that reaches the bucket (required unless --from-cloud restores a vault kept in managed storage). | |||
name | The bucket holding the vault (with --api-key). | |||
--recovery-kit | path | The recovery kit (vh-recovery kit create): its seed unwraps the vault's key envelopes and its pinned attestation keys anchor them. Read on your side; - for standard input. | ||
--key-file | path | A key export (vh vault keys export, or a Vaulthalla Desktop backup): its keys, and the attestation public keys it carries as anchors. Read on your side. | ||
--name | name | The restored vault's name (default: the name in the manifest). | ||
uid | Which vault of the bucket (its uid; default: the kit's). | |||
-o | id or name | User ID or username of the vault owner (required if using name). | ||
name | The vault's name, confirming a salvage without a terminal. | |||
-j | flag | Output in JSON format. | ||
flag | Read the bucket and report what a restore would do; write nothing. | |||
flag | Restore a manifest older than the kit's checkpoint (a possible rollback). | |||
flag | Versions that can't be proven: re-encrypt what their keys decrypt under a fresh key; never store the supplied keys. | |||
flag | Instead of --kit or --export: have the keys relayed through a linked Vaulthalla Cloud account, which is not yet available (needs --vault-uid and a terminal). |
vh vault deleted
vh vault deleted [--json]Lists pending, purging and purged vaults whose key is still kept.
| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-j | flag | Output in JSON format. |
vh vault info
vh vault info <vault> [--owner id|name]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-o | id or name | User ID or username of the vault owner (required if using name). |
vh vault update
vh vault update <vault> [options]| Option | Aliases | Type | Default | Group | Summary |
|---|---|---|---|---|---|
--desc, -d | description | Description of the vault. | |||
-q | size or unlimited | Storage quota (e.g. 10G, 500M). Use 'unlimited' to remove quota. | |||
--sync-interval | interval | Sync interval in seconds (default 5m). | |||
-o | id or name | User ID or username of the vault owner (required if using name). | |||
-i | flag | Run in interactive mode, prompting for missing information. | |||
--conflict | overwrite or keep_both or ask | Local Vault Options | Conflict resolution strategy for local vaults. | ||
--conflict | keep_local or keep_remote or keep_newest or ask | S3 Vault Options | Conflict resolution strategy for S3 vaults (new vaults default to vaults.s3.default_remote_conflict_policy in config.yaml). | ||
name or id | S3 Vault Options | Name or ID of the API key to access the S3 bucket. | |||
name | S3 Vault Options | Name of the S3 bucket. | |||
--storage-class | tier | S3 Vault Options | Provider-local S3 storage tier for new uploads; use 'none' or 'default' to clear. | ||
--strategy | cache or sync or mirror | S3 Vault Options | Sync strategy for S3 vaults (new vaults default to vaults.s3.default_remote_sync_strategy in config.yaml). | ||
flag | S3 Vault Options | Enable upstream encryption for the S3 vault. | |||
flag | S3 Vault Options | Disable upstream encryption for S3 vaults. | |||
flag | S3 Vault Options | Acknowledge the risks of enabling encryption on an upstream s3 bucket with existing files. | |||
flag | S3 Vault Options | Acknowledge the risks of disabling encryption on an upstream s3 bucket with existing encrypted files. |
vh vault role
Assign a vault role to a user, a group or a linked server, and add permission overrides for a path pattern:
1vh vault role assign <vault> <role-id> --user alice2vh vault role assign <vault> <role-id> --group operators3vh vault role unassign <vault> <role-id> --user alice4vh vault role override add <vault> <role-id> --user alice --pattern "/finance/*" --deny-<permission>5vh vault role override list <vault> <role-id> --user alice
Override flags are --allow-<permission> and --deny-<permission>, named as vh permission --type vault lists them.
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
<vault> | ls | read | List all role assignments for a specific vault. | |
o | Manage permission overrides for users or groups in a specific vault role. | |||
<vault> <role_id> | write | Assign a role to a user, a group or a linked server (--peer) for a specific vault. | ||
<vault> <role_id> | remove, rm-assn | destructive | Remove a role assignment from a user, a group or a linked server (--peer: it falls back to its link's default) for a specific vault. |
vh vault role list
vh vault role list <vault> [--owner id|name]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-o | id or name | User ID or username of the vault owner (required if using name). |
vh vault role override
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
<vault> <role_id> | new, create, mk | write | Add path-scoped permission overrides (--allow-<perm> / --deny-<perm>, see vh permission vault) to the vault role assigned to a user or group. | |
<vault> <role_id> <bit_position> | set, modify, edit | write | Update an override (by ID) on the vault role assigned to a user or group. | |
<vault> <role_id> <bit_position> | del, rm | destructive | Remove a permission override (by bit position) from a user or group in a specific vault role. | |
<vault> <role_id> | ls | read | List permission overrides for a user or group in a specific vault role. |
vh vault role override add
vh vault role override add <vault> <role_id> --user id|name [--pattern <glob>] [--owner id|name] [--enable] [--disable]| Option | Aliases | Type | Default | Required | Summary |
|---|---|---|---|---|---|
-u, --group, -g | id or name | Yes | Specify the user or group the command is targeting. | ||
glob | No | Glob pattern to scope the override to specific paths (/reports/**). | |||
-o | id or name | No | User ID or username of the vault owner (required if using name). | ||
flag | No | Enable the override (default). | |||
flag | No | Disable the override. |
vh vault role override update
vh vault role override update <vault> <role_id> <bit_position> --user id|name [options]| Option | Aliases | Type | Default | Required | Summary |
|---|---|---|---|---|---|
-u, --group, -g | id or name | Yes | Specify the user or group the command is targeting. | ||
glob | No | Glob pattern to scope the override to specific paths (/reports/**). | |||
-o | id or name | No | User ID or username of the vault owner (required if using name). | ||
flag | No | Make the override an allow. | |||
flag | No | Make the override a deny. | |||
flag | No | Enable the override (default). | |||
flag | No | Disable the override. |
vh vault role override remove
vh vault role override list
vh vault role assign
| Option | Aliases | Type | Default | Required | Summary |
|---|---|---|---|---|---|
-u, --group, -g, --peer | id or name | Yes | The user or group the command is targeting, or a linked server (--peer: its number from vh peer list, node id, name or key; its role on this vault, implicit_deny for no access). | ||
-o | id or name | No | User ID or username of the vault owner (required if using name). |
vh vault role unassign
| Option | Aliases | Type | Default | Required | Summary |
|---|---|---|---|---|---|
-u, --group, -g, --peer | id or name | Yes | The user or group the command is targeting, or a linked server (--peer: its number from vh peer list, node id, name or key; its role on this vault, implicit_deny for no access). | ||
-o | id or name | No | User ID or username of the vault owner (required if using name). |
vh vault key
Aliases include vh vault keys.
1vh vault keys export <vault-or-all> --recipient <gpg-fingerprint> --output /var/lib/vaulthalla/vault-keys.json.gpg2vh vault keys rotate <vault-or-all> [--sync-now]3vh vault keys import <vault> --file <export>|--recovery-kit <kit> [--salvage]4vh vault keys recipient add <vault> --public-key <key> [--label <text>]
--output is written by the daemon, so it is an absolute path on the server. Unencrypted key exports are dangerous:
prefer --recipient.
recipient enrolls a public key from a recovery kit, so every key version of an S3 vault is wrapped to it in the
vault's bucket; import --recovery-kit restores keys with that kit after the host's vault master was lost. See
Recovery Recipients.
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
<vault> | read | Show each vault's key backup state: the current key version and its key check (a public fingerprint, never key material), the last exported version, whether a rotation is under way, and every key version the vault still needs (current, an unfinished rotation's outgoing key, retired versions recovery data references). | ||
<vault> | read | Export an encryption key for a specific vault. | ||
<vault> | destructive | Recover a vault's keys from a key export (vh vault keys export, or a Vaulthalla Desktop backup) when this host can no longer unseal them or no longer holds them: after the vault master was lost or replaced, or a database restored from an older backup. | ||
<vault> | renew | destructive | Start an encryption key rotation for a vault (or 'all'). | |
<vault> | info, show | read | Show encryption key metadata (version, creation and rotation state) for a vault. | |
recipients | Manage a vault's recovery recipients: customer-held public keys its key versions are wrapped to (design: spec 03 §5). |
vh vault key status
vh vault key export
vh vault key export <vault> [--recipient <gpg-fingerprint>] [--output <file>] [--owner id|name]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-r | gpg-fingerprint | GPG fingerprint to encrypt the exported key (if blank will not encrypt). | ||
-o | file | Output file for the exported key (if blank will print to stdout). | ||
-o | id or name | User ID or username of the vault owner (required if using name). |
vh vault key import
vh vault key import <vault> [options]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-f | path | The key export to read (on your side; - for standard input). | ||
--kit | path | Instead of --file: a recovery kit (vh-recovery kit create). Its seed unwraps the vault's key envelopes from the vault's bucket; only versions this node attested are restored. Read on your side; - for standard input. | ||
-o | id or name | User ID or username of the vault owner (required if using name). | ||
name | The vault's name, confirming the import without a terminal. | |||
-j | flag | Output in JSON format. | ||
flag | Best effort for versions that can't be proven: re-encrypt what their key decrypts under a fresh key; never store the supplied key. |
vh vault key rotate
vh vault key inspect
vh vault key inspect <vault> [--owner id|name]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-o | id or name | User ID or username of the vault owner (required if using name). |
vh vault key recipient
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
<vault> | ls | read | List the vault's recovery recipients (revoked ones included), the key versions wrapped to each and the vault's recovery state (D2): whether a recipient or a current export covers it, or it is recovery_material_missing. | |
<vault> | enroll | write | Enroll a recovery recipient on a vault: an X25519 public key from a recovery kit made on your own device (vh-recovery kit create, or Vaulthalla Desktop), or with --account-key the recovery key this server pinned for its linked account (vh cloud key status). | |
<vault> <grant_id> | remove, rm | destructive | Revoke a recovery recipient: no new envelopes are written for it. |
vh vault key recipient list
vh vault key recipient add
vh vault key recipient add <vault> [--owner id|name] [--public-key <key>] [--label <label>] [--json] [--account-key]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-o | id or name | User ID or username of the vault owner (required if using name). | ||
--key | key | The recipient's X25519 public key (base64 or 64 hex digits). | ||
label | A name you recognize the kit by. | |||
-j | flag | Output in JSON format. | ||
flag | Add the linked account's pinned recovery key instead of a public key. |
vh vault key recipient revoke
vh vault format
Shows how much of each vault is still stored in the legacy encryption format: live files and recovery blobs (snapshots, local versions, upstream backlog), as items and bytes, the background conversion's state and what its last pass did. See Encryption.
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
<vault> | read | Show the progress of the local format conversion: how many live files and recovery blobs (snapshots, local versions, upstream backlog) of each vault are still in the legacy encryption format and how many bytes they hold, the conversion's state (converted, pending, converting, blocked by a key rotation or salvage, disabled) and what its last pass did. |
vh vault format status
vh vault migrate-layout
vh vault migrate-layout <vault> [options]Moves an encrypting S3/R2 vault from path-named objects (path_v0) to opaque storage (opaque_v1): starts it (or
resumes it after a failure), shows where it stands, and after the waiting period lists and then deletes the old
path-named object versions. See
Migrating A Vault To Opaque Storage.
1vh vault migrate-layout <vault> --status [--json]2vh vault migrate-layout <vault> [--accept-unpriced]3vh vault migrate-layout <vault> --cleanup [--confirm <vault name>]
| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-o | id or name | User ID or username of the vault owner (required if using name). | ||
name | With --cleanup: the vault's name, confirming the deletion of the legacy objects the dry run lists. | |||
-j | flag | Output in JSON format. | ||
flag | Show the migration's state; change nothing. | |||
flag | After the waiting period: list the legacy objects that would be deleted (with --confirm: delete them). | |||
flag | Start even when the cost can't be priced. |
vh vault storage
Probes what the vault's bucket supports for writes that must never overwrite another writer's object (conditional
PUT honoured, rejected or ignored; object versions; GET with If-Match), records the result and deletes the few probe
objects it wrote. Every bucket is probed when a vault is created on it or moved to it; run this after the endpoint or
provider changed, or when a vault reports bucket_capability_changed. See
Providers Without Conditional Writes.
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
<vault> | write | Find out what the vault's bucket supports for writes that must never overwrite another writer's object, and record it. |
vh vault storage probe
vh vault remote
attach turns a local vault into an S3/R2 vault in place: it checks the vault and the bucket, then uploads the
vault's files in the background while it stays in use and switches it to the bucket once everything is verified;
status follows it; abort stops it before the switch and deletes what it uploaded. See
Attaching A Bucket To A Local Vault. detach does the
reverse: it fetches and verifies every file on this server, copies the recovery envelopes into the database and then
makes the vault local, leaving the bucket as it is; abort stops a detach before the switch too. See
Detaching A Bucket From A Vault. access limits what an
S3/R2 vault may do with its bucket (read-only: no uploads, deletes or manifest publish; none: no request at all); see
Remote Access.
1vh vault remote attach <vault> --api-key <key> --bucket <name> [--storage-tier <tier>] [--accept-unpriced]2vh vault remote status <vault-or-all>3vh vault remote access <vault> --set full|read-only|none [--reason <text>]4vh vault remote detach <vault> --confirm <vault name>
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
<vault> | destructive | Turn a local vault into an S3 or R2 vault in place: the vault keeps its ID, keys, permissions, shares and files, and its content is uploaded to the bucket you name as encrypted objects under opaque names. | ||
<vault> | destructive | Turn an S3 or R2 vault into a local vault in place: the vault keeps its ID, keys, permissions, shares and files, and from then on its content lives only on this host. | ||
<vault> | write | Set what an S3 or R2 vault may still do with its bucket. | ||
<vault> | read | Show where attaching a remote to a vault stands: the state (preparing, uploading, catching_up, verifying, cutover, done, failed or aborted), the bucket and how its manifest is published, the progress (files and bytes sent, the rate over the last minute and the time left when known), the cost estimate and what was actually sent, the last error, and after the switch the result of the vault's first sync pass. | ||
<vault> | destructive | Abort attaching a remote to a vault, or detaching it, before the vault has switched. |
vh vault remote attach
vh vault remote attach <vault> --api-key name|id --bucket <name> [--owner id|name] [--storage-tier <tier>] [--json] [--accept-unpriced]| Option | Aliases | Type | Default | Required | Summary |
|---|---|---|---|---|---|
name or id | Yes | Name or ID of the API key that reaches the bucket. | |||
name | Yes | The empty bucket the vault's content goes to. | |||
-o | id or name | No | User ID or username of the vault owner (required if using name). | ||
--storage-class | tier | No | Provider-local S3 storage tier for new uploads; use 'none' or 'default' to clear. | ||
-j | flag | No | Output in JSON format. | ||
flag | No | Start even when the cost can't be priced. |
vh vault remote detach
vh vault remote access
vh vault remote status
vh vault remote abort
vh vault sync
vh vault sync <vault>vh vault sync <vault> runs a sync pass now; the subcommands show and change the vault's sync policy and feed it
inventory or event data. S3/R2 sync policy fields include strategy, conflict policy, interval, request budgets, and
maximum remote-index age. Resolving conflicts is vh sync resolve. See Sync and
Request Budgets.
1vh vault sync <vault>2vh vault sync set <vault> --interval 15m3vh vault sync dry-run <vault>4vh vault sync inventory <vault> --file inventory.csv5vh vault sync events <vault> --file s3-events.json6vh vault sync reconcile <vault> --allow-list-scan
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
<vault> | show, get | read | Display the current synchronization settings for a specific vault. | |
<vault> | dryrun, plan | read | Estimate S3 request and byte pressure for the next sync plan without executing file changes using the local remote index. | |
<vault> | write | Refresh the remote S3 object index using an explicit ListObjectsV2 reconciliation pass. | ||
<vault> | import-inventory, inventory-import | write | Import a local S3 Inventory CSV into the remote object index without downloading object bodies. | |
<vault> | ingest-events, event | write | Feed saved S3 Event Notifications JSON (or an SQS message dump) through the event pipeline: stored in the durable inbox, applied to the remote object index, then synced by a pass scoped to the affected keys. | |
<vault> | update, modify, edit | write | Set or update synchronization settings for a specific vault. |
vh vault sync info
vh vault sync info <vault> [--owner id|name]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-o | id or name | User ID or username of the vault owner (required if using name). |
vh vault sync dry-run
vh vault sync dry-run <vault> [--owner id|name] [--refresh-index] [--refresh-pricing] [--no-pricing]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-o | id or name | User ID or username of the vault owner (required if using name). | ||
--refresh-remote-index | flag | Refresh the remote index manifest before planning. Requires sync trigger permission and may issue S3 HEAD/GET requests. | ||
flag | Refresh cached storage-rate profile and estimate data before pricing the dry-run. | |||
flag | Skip storage-rate price estimates for this dry-run. |
vh vault sync reconcile
vh vault sync reconcile <vault> [--owner id|name] [--allow-list-scan]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-o | id or name | User ID or username of the vault owner (required if using name). | ||
flag | Allow a full S3 ListObjectsV2 scan when no LIST budget is configured. |
vh vault sync inventory
vh vault sync inventory <vault> --file <path> [--owner id|name] [--schema <columns>] [--has-header]| Option | Aliases | Type | Default | Required | Summary |
|---|---|---|---|---|---|
path | Yes | Path to a local S3 Inventory CSV file. | |||
-o | id or name | No | User ID or username of the vault owner (required if using name). | ||
columns | No | Comma-separated CSV columns when the inventory file has no header. | |||
--header | flag | No | Treat the first inventory CSV row as a header row. |
vh vault sync events
vh vault sync set
vh vault sync set <vault> [options]| Option | Aliases | Type | Default | Group | Summary |
|---|---|---|---|---|---|
-o | id or name | User ID or username of the vault owner (required if using name). | |||
--sync-interval | interval | Sync interval in seconds (default 5m). | |||
--conflict | overwrite or keep_both or ask | Local Vault Options | Conflict resolution strategy for local vaults. | ||
--conflict | keep_local or keep_remote or keep_newest or ask | S3 Vault Options | Conflict resolution strategy for S3 vaults (new vaults default to vaults.s3.default_remote_conflict_policy in config.yaml). | ||
--strategy | cache or sync or mirror | S3 Vault Options | Sync strategy for S3 vaults (new vaults default to vaults.s3.default_remote_sync_strategy in config.yaml). | ||
--budget-preset | conservative or balanced or bulk or unlimited | S3 Vault Options | Apply an S3 budget preset. Individual budget flags override preset fields. | ||
--remote-index-age | duration | S3 Vault Options | Maximum age for trusting the local S3 remote index when manifest refresh fails; use 'unlimited' to clear. | ||
count | S3 Vault Options | Maximum LIST requests per S3 sync run; use 'unlimited' to clear. | |||
count | S3 Vault Options | Maximum HEAD requests per S3 sync run; use 'unlimited' to clear. | |||
count | S3 Vault Options | Maximum GET requests per S3 sync run; use 'unlimited' to clear. | |||
count | S3 Vault Options | Maximum PUT requests per S3 sync run; use 'unlimited' to clear. | |||
count | S3 Vault Options | Maximum COPY requests per S3 sync run; use 'unlimited' to clear. | |||
count | S3 Vault Options | Maximum DELETE requests per S3 sync run; use 'unlimited' to clear. | |||
bytes | S3 Vault Options | Maximum downloaded bytes per S3 sync run; use 'unlimited' to clear. |
vh vault recovery
Earlier versions of files come from three places: local snapshots you take, local versions kept automatically when
local versioning is on, and the provider's own object versions (an AWS S3 bucket with versioning enabled, or a
Backblaze B2 bucket, which always keeps versions). These commands set where they come from; finding and restoring
them is vh recovery. Undeleting a whole vault is vh vault restore. See
File Recovery.
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
<vault> | info, show | read | A vault's recovery mode, local versioning, snapshot and version storage, the upstream backlog and the bucket's versioning state. | |
<vault> | update | write | Change a vault's recovery settings. | |
<vault> | write | Suspend versioning on the vault's bucket (AWS S3). | ||
<vault> | estimate | read | Show the cost disclosure for turning on provider versioning (read-only: at most one admin call, no object requests). |
vh vault recovery status
| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-o | id or name | User ID or username of the vault owner (required if using a name). | ||
flag | Read the bucket's versioning, lifecycle rules and object lock again (AWS: one admin round trip; Backblaze B2 also reads its lifecycle rules through the native API). | |||
flag | Print the result as JSON (the ws shapes). |
vh vault recovery set
vh vault recovery set <vault> [options]| Option | Aliases | Type | Default | Group | Summary |
|---|---|---|---|---|---|
-o | id or name | User ID or username of the vault owner (required if using a name). | |||
flag | Don't ask: confirm the action (for scripts). | ||||
flag | Print the result as JSON (the ws shapes). | ||||
on or off | Local versioning | Keep the prior generation of every changed file. | |||
n | Local versioning | Keep at most N versions per file. | |||
n | Local versioning | Drop versions older than N days. | |||
size | Local versioning | Storage quota for local versions. | |||
30d or 90d or 365d or indefinite | Provider versioning | How long provider versioning keeps old versions. | |||
flag | Provider versioning | Accept recurring charges that can't be estimated. | |||
flag | Provider versioning | Accept that a shorter retention deletes history sooner. | |||
flag | Provider versioning | Adopt the vault's own unmanaged bucket in the same step. | |||
off or local-snapshots or provider-versioning | Recovery mode | Vault recovery mode. | |||
size | Recovery mode | Snapshot storage quota (0 = none). | |||
amount | Recovery mode | Notify when the projected monthly versioning cost exceeds this amount (catalog currency; 'none' clears it). |
--mode provider-versioning always fetches and prints the cost disclosure first (provider, bucket, region, storage
class, current data, observed or illustrative write traffic, the estimated monthly additional storage, growth over
12 months, retention, confidence and catalog freshness, what is not included, and the consequences, including that
AWS can't return a bucket to unversioned, only suspend it). In a terminal you then type ENABLE VERSIONING, and when
the cost can't be estimated you accept that separately (ACCEPT UNPRICED). Without a terminal it needs --yes, plus
--accept-unpriced when unpriced. A shorter retention deletes history sooner and is asked separately (SHORTEN, or
--accept-retention-shortening), and so is adopting the vault's unmanaged bucket (ADOPT, or --adopt-bucket).
--retention takes 30d, 90d, 365d, indefinite or any number of days from 1 to 36500; there is no default.
Changing the mode never suspends a versioned AWS bucket; suspend does (type SUSPEND, or --yes), and it deletes
nothing. On Backblaze B2 (always versioned, no suspend), --mode off or --mode local-snapshots makes the bucket keep
only the latest version, and --retention is B2's lifecycle rule; whenever that deletes history that exists now it
needs --accept-retention-shortening (and, in the web console, a step-up). See
Provider Versioning On Backblaze B2.
Local versioning flags you leave out keep their stored values; --keep-last 0, --max-age-days 0 and
--version-quota 0 remove the limit, and --cost-alert none clears the alert.
vh vault recovery suspend
vh vault recovery disclosure
vh vault recovery disclosure <vault> [--owner id|name] [--retention 30d|90d|365d|indefinite] [--json]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-o | id or name | User ID or username of the vault owner (required if using a name). | ||
30d or 90d or 365d or indefinite | How long provider versioning keeps old versions. | |||
flag | Print the result as JSON (the ws shapes). |
vh vault read-grant
A read grant is a read-only S3 gateway credential plus a read-only upstream key (Backblaze B2) for one vault, returned
only as an OpenPGP message encrypted to pinned recipients. Pinning a recipient is for super admins (step-up of family
secrets; agents refused); issuing needs vault.sync.action.read_grants on the vault. See
Vault Read Grants.
1vh vault read-grant recipient add --fingerprint <fingerprint> --key-file <file|-> | --keyserver <https-url> [--label <text>]2vh vault read-grant issue <vault> --recipient <fingerprint> [--recipient <fingerprint>] [--gateway-only] [--json]3vh vault read-grant show <grant> [--ciphertext]4vh vault read-grant revoke <grant>
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
<vault> | create | write | Issue a read grant for a vault: a new S3 gateway credential that can only read this vault, and (for a vault with an upstream bucket whose objects are stored readable) a new read-only provider key restricted to that bucket (Backblaze B2: listBuckets, listFiles, readFiles), minted with the API key the vault already uses. | |
ls | read | List read grants: of one vault, or of every vault where you hold vault.sync.action.read_grants. | ||
<grant> | info | read | Show one read grant. | |
<grant> | remove, rm | destructive | Revoke a read grant: deletes its S3 gateway credential and its upstream key (Backblaze B2 b2_delete_key). | |
recipients | The OpenPGP public keys read grants may be encrypted to, pinned by fingerprint. |
vh vault read-grant issue
vh vault read-grant issue <vault> [--owner id|name] [--recipient <fingerprint>] [--json] [--gateway-only]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-o | id or name | User ID or username of the vault owner (required if using name). | ||
fingerprint | A pinned recipient's fingerprint (vh vault read-grant recipient list); give it twice to encrypt to two recipients. | |||
-j | flag | Output in JSON format. | ||
flag | Issue the S3 gateway half alone (a local vault, or one that encrypts its objects upstream). |
vh vault read-grant list
vh vault read-grant show
vh vault read-grant show <grant> [--json] [--ciphertext]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-j | flag | Output in JSON format. | ||
flag | Print the armored OpenPGP message. |
vh vault read-grant revoke
vh vault read-grant revoke <grant> [--json]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-j | flag | Output in JSON format. |
vh vault read-grant recipient
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
ls | read | List the pinned read-grant recipients (OpenPGP public keys, by fingerprint). | ||
pin | write | Pin a read-grant recipient: an OpenPGP public key, by its full 40-hex fingerprint. | ||
<fingerprint> | rm, unpin | destructive | Unpin a read-grant recipient: no new grant is encrypted to it. |
vh vault read-grant recipient list
vh vault read-grant recipient add
vh vault read-grant recipient add [--fingerprint <fingerprint>] [--key-file <path>] [--keyserver <url>] [--label <label>] [--json]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
fingerprint | The key's full 40-hex fingerprint. | |||
path | The armored public key (- for standard input). | |||
url | Fetch the key from this keyserver by its fingerprint (https). | |||
label | A name you recognize the key by. | |||
-j | flag | Output in JSON format. |
vh vault read-grant recipient remove
vh vault read-grant recipient remove <fingerprint> [--json]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-j | flag | Output in JSON format. |
