Skip to content
Vaulthalla LogoVaulthalla

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

vh vault
CommandArgumentsAliasesEffectSummary
lsreadList the vaults your admin role lets you view (--accessible: every vault you can reach).
<vault>new, add, mkwriteCreate a new vault.
<vault>remove, del, rmdestructiveDelete a vault.
<vault>undeletewriteRestore a deleted vault, exactly as it was, while it is pending deletion (until vaults.retention_window ends and its purge starts).
destructiveRebuild 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).
trashreadList deleted vaults: pending (restorable), being purged, and purged ones whose encryption key is still kept.
<vault>show, getreadDisplay detailed information about a vault.
<vault>set, modify, editwriteUpdate properties of an existing vault.
rManage vault role assignments and permission overrides.
keys, kManage encryption keys for vaults.
Inspect the at-rest format of vault content (legacy GCM or VHF1).
<vault>destructiveMove 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>sManage 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-grantsVault 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
vh vault list
OptionAliasesTypeDefaultSummary
-nlimitLimit the number of vaults displayed.
-ppageSpecify the page number when using --limit for pagination.
fieldSort by this field.
asc or descSort direction: asc or desc.
textOnly show entries matching this text.
flagShow only local vaults.
flagShow only S3-backed vaults.
-jflagOutput in JSON format.
flagEvery 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

vh vault create <vault> --local | --s3 [options]

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.

vh vault create
OptionAliasesTypeDefaultRequiredGroupSummary
--s3flagYesType of vault to create.
--desc, -ddescriptionNoDescription of the vault.
-qsize or unlimitedNoStorage quota (e.g. 10G, 500M). Use 'unlimited' to remove quota.
--sync-intervalintervalNoSync interval in seconds (default 5m).
-oid or nameNoUser ID or username of the vault owner (required if using name).
-iflagNoRun in interactive mode, prompting for missing information.
--conflictoverwrite or keep_both or askoverwriteNoLocal Vault OptionsConflict resolution strategy for local vaults.
existing or create or adoptexistingNoS3 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).
regionNoS3 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.
prefixNoS3 Bucket Provisioning (administrative keys)With --events: only keys with this prefix.
nNoS3 Bucket Provisioning (administrative keys)With --bucket-mode create|adopt: abort incomplete multipart uploads after N days.
flagNoS3 Bucket Provisioning (administrative keys)With --bucket-mode create: pick an available bucket name.
flagNoS3 Bucket Provisioning (administrative keys)With --bucket-mode create|adopt: turn on event-driven sync for the bucket.
flagNoS3 Bucket Provisioning (administrative keys)With --bucket-mode adopt: accept the admission report without being asked.
--conflictkeep_local or keep_remote or keep_newest or askNoS3 Vault OptionsConflict resolution strategy for S3 vaults (new vaults default to vaults.s3.default_remote_conflict_policy in config.yaml).
name or idNoS3 Vault OptionsName or ID of the API key to access the S3 bucket.
nameNoS3 Vault OptionsName of the S3 bucket.
--storage-classtierNoS3 Vault OptionsProvider-local S3 storage tier for new uploads; use 'none' or 'default' to clear.
--strategycache or sync or mirrorNoS3 Vault OptionsSync strategy for S3 vaults (new vaults default to vaults.s3.default_remote_sync_strategy in config.yaml).
flagyesNoS3 Vault OptionsEnable upstream encryption for S3 vaults. This is the default.
flagNoS3 Vault OptionsDisable upstream encryption for S3 vaults.
flagNoS3 Vault OptionsAcknowledge the risks of enabling encryption on an upstream s3 bucket with existing files.
flagNoS3 Vault OptionsAcknowledge 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.

vh vault delete
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using name).
remove or leaveA 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.
flagPurge 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.
flagS3 vaults: also delete every object in the bucket when the vault is purged.
flagS3 vaults: keep the bucket's objects (the default without a terminal).
flagDon't ask: delete with the given flags (also confirms --now).
flagDelete 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]
vh vault restore
OptionAliasesTypeDefaultSummary
-oid or nameUser 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
vh vault recover
OptionAliasesTypeDefaultSummary
name or idName or ID of the API key that reaches the bucket (required unless --from-cloud restores a vault kept in managed storage).
nameThe bucket holding the vault (with --api-key).
--recovery-kitpathThe 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-filepathA 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.
--namenameThe restored vault's name (default: the name in the manifest).
uidWhich vault of the bucket (its uid; default: the kit's).
-oid or nameUser ID or username of the vault owner (required if using name).
nameThe vault's name, confirming a salvage without a terminal.
-jflagOutput in JSON format.
flagRead the bucket and report what a restore would do; write nothing.
flagRestore a manifest older than the kit's checkpoint (a possible rollback).
flagVersions that can't be proven: re-encrypt what their keys decrypt under a fresh key; never store the supplied keys.
flagInstead 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.

vh vault deleted
OptionAliasesTypeDefaultSummary
-jflagOutput in JSON format.

vh vault info

vh vault info <vault> [--owner id|name]
vh vault info
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using name).

vh vault update

vh vault update <vault> [options]
vh vault update
OptionAliasesTypeDefaultGroupSummary
--desc, -ddescriptionDescription of the vault.
-qsize or unlimitedStorage quota (e.g. 10G, 500M). Use 'unlimited' to remove quota.
--sync-intervalintervalSync interval in seconds (default 5m).
-oid or nameUser ID or username of the vault owner (required if using name).
-iflagRun in interactive mode, prompting for missing information.
--conflictoverwrite or keep_both or askLocal Vault OptionsConflict resolution strategy for local vaults.
--conflictkeep_local or keep_remote or keep_newest or askS3 Vault OptionsConflict resolution strategy for S3 vaults (new vaults default to vaults.s3.default_remote_conflict_policy in config.yaml).
name or idS3 Vault OptionsName or ID of the API key to access the S3 bucket.
nameS3 Vault OptionsName of the S3 bucket.
--storage-classtierS3 Vault OptionsProvider-local S3 storage tier for new uploads; use 'none' or 'default' to clear.
--strategycache or sync or mirrorS3 Vault OptionsSync strategy for S3 vaults (new vaults default to vaults.s3.default_remote_sync_strategy in config.yaml).
flagS3 Vault OptionsEnable upstream encryption for the S3 vault.
flagS3 Vault OptionsDisable upstream encryption for S3 vaults.
flagS3 Vault OptionsAcknowledge the risks of enabling encryption on an upstream s3 bucket with existing files.
flagS3 Vault OptionsAcknowledge 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.

vh vault role
CommandArgumentsAliasesEffectSummary
<vault>lsreadList all role assignments for a specific vault.
oManage permission overrides for users or groups in a specific vault role.
<vault> <role_id>writeAssign a role to a user, a group or a linked server (--peer) for a specific vault.
<vault> <role_id>remove, rm-assndestructiveRemove 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]
vh vault role list
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using name).

vh vault role override

vh vault role override
CommandArgumentsAliasesEffectSummary
<vault> <role_id>new, create, mkwriteAdd 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, editwriteUpdate an override (by ID) on the vault role assigned to a user or group.
<vault> <role_id> <bit_position>del, rmdestructiveRemove a permission override (by bit position) from a user or group in a specific vault role.
<vault> <role_id>lsreadList 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]
vh vault role override add
OptionAliasesTypeDefaultRequiredSummary
-u, --group, -gid or nameYesSpecify the user or group the command is targeting.
globNoGlob pattern to scope the override to specific paths (/reports/**).
-oid or nameNoUser ID or username of the vault owner (required if using name).
flagNoEnable the override (default).
flagNoDisable the override.

vh vault role override update

vh vault role override update <vault> <role_id> <bit_position> --user id|name [options]
vh vault role override update
OptionAliasesTypeDefaultRequiredSummary
-u, --group, -gid or nameYesSpecify the user or group the command is targeting.
globNoGlob pattern to scope the override to specific paths (/reports/**).
-oid or nameNoUser ID or username of the vault owner (required if using name).
flagNoMake the override an allow.
flagNoMake the override a deny.
flagNoEnable the override (default).
flagNoDisable the override.

vh vault role override remove

vh vault role override remove <vault> <role_id> <bit_position> --user id|name [--owner id|name]
vh vault role override remove
OptionAliasesTypeDefaultRequiredSummary
-u, --group, -gid or nameYesSpecify the user or group whose override to remove.
-oid or nameNoUser ID or username of the vault owner (required if using name).

vh vault role override list

vh vault role override list <vault> <role_id> --user id|name [--owner id|name]
vh vault role override list
OptionAliasesTypeDefaultRequiredSummary
-u, --group, -gid or nameYesSpecify the user or group the command is targeting.
-oid or nameNoUser ID or username of the vault owner (required if using name).

vh vault role assign

vh vault role assign <vault> <role_id> --user id|name [--owner id|name]
vh vault role assign
OptionAliasesTypeDefaultRequiredSummary
-u, --group, -g, --peerid or nameYesThe 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).
-oid or nameNoUser ID or username of the vault owner (required if using name).

vh vault role unassign

vh vault role unassign <vault> <role_id> --user id|name [--owner id|name]
vh vault role unassign
OptionAliasesTypeDefaultRequiredSummary
-u, --group, -g, --peerid or nameYesThe 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).
-oid or nameNoUser 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.

vh vault key
CommandArgumentsAliasesEffectSummary
<vault>readShow 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>readExport an encryption key for a specific vault.
<vault>destructiveRecover 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>renewdestructiveStart an encryption key rotation for a vault (or 'all').
<vault>info, showreadShow encryption key metadata (version, creation and rotation state) for a vault.
recipientsManage 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 status <vault> [--owner id|name] [--json]
vh vault key status
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using name).
-jflagOutput in JSON format.

vh vault key export

vh vault key export <vault> [--recipient <gpg-fingerprint>] [--output <file>] [--owner id|name]
vh vault key export
OptionAliasesTypeDefaultSummary
-rgpg-fingerprintGPG fingerprint to encrypt the exported key (if blank will not encrypt).
-ofileOutput file for the exported key (if blank will print to stdout).
-oid or nameUser ID or username of the vault owner (required if using name).

vh vault key import

vh vault key import <vault> [options]
vh vault key import
OptionAliasesTypeDefaultSummary
-fpathThe key export to read (on your side; - for standard input).
--kitpathInstead 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.
-oid or nameUser ID or username of the vault owner (required if using name).
nameThe vault's name, confirming the import without a terminal.
-jflagOutput in JSON format.
flagBest 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 rotate <vault> [--owner id|name] [--now]
vh vault key rotate
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using name).
--sync-now, --syncflagImmediately synchronize the vault after key rotation.

vh vault key inspect

vh vault key inspect <vault> [--owner id|name]
vh vault key inspect
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using name).

vh vault key recipient

vh vault key recipient
CommandArgumentsAliasesEffectSummary
<vault>lsreadList 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>enrollwriteEnroll 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, rmdestructiveRevoke a recovery recipient: no new envelopes are written for it.

vh vault key recipient list

vh vault key recipient list <vault> [--owner id|name] [--json]
vh vault key recipient list
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using name).
-jflagOutput in JSON format.

vh vault key recipient add

vh vault key recipient add <vault> [--owner id|name] [--public-key <key>] [--label <label>] [--json] [--account-key]
vh vault key recipient add
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using name).
--keykeyThe recipient's X25519 public key (base64 or 64 hex digits).
labelA name you recognize the kit by.
-jflagOutput in JSON format.
flagAdd the linked account's pinned recovery key instead of a public key.

vh vault key recipient revoke

vh vault key recipient revoke <vault> <grant_id> [--owner id|name] [--json]
vh vault key recipient revoke
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using name).
-jflagOutput in JSON format.

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.

vh vault format
CommandArgumentsAliasesEffectSummary
<vault>readShow 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 format status <vault> [--owner id|name] [--json]
vh vault format status
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using name).
-jflagOutput in JSON format.

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>]
vh vault migrate-layout
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using name).
nameWith --cleanup: the vault's name, confirming the deletion of the legacy objects the dry run lists.
-jflagOutput in JSON format.
flagShow the migration's state; change nothing.
flagAfter the waiting period: list the legacy objects that would be deleted (with --confirm: delete them).
flagStart 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.

vh vault storage
CommandArgumentsAliasesEffectSummary
<vault>writeFind 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 storage probe <vault> [--owner id|name] [--json]
vh vault storage probe
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using name).
-jflagOutput in JSON format.

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>
vh vault remote
CommandArgumentsAliasesEffectSummary
<vault>destructiveTurn 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>destructiveTurn 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>writeSet what an S3 or R2 vault may still do with its bucket.
<vault>readShow 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>destructiveAbort 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]
vh vault remote attach
OptionAliasesTypeDefaultRequiredSummary
name or idYesName or ID of the API key that reaches the bucket.
nameYesThe empty bucket the vault's content goes to.
-oid or nameNoUser ID or username of the vault owner (required if using name).
--storage-classtierNoProvider-local S3 storage tier for new uploads; use 'none' or 'default' to clear.
-jflagNoOutput in JSON format.
flagNoStart even when the cost can't be priced.

vh vault remote detach

vh vault remote detach <vault> --confirm <name> [--owner id|name] [--json]
vh vault remote detach
OptionAliasesTypeDefaultRequiredSummary
nameYesThe vault's name, confirming that it stops using its bucket.
-oid or nameNoUser ID or username of the vault owner (required if using name).
-jflagNoOutput in JSON format.

vh vault remote access

vh vault remote access <vault> --set <mode> [--owner id|name] [--reason <text>] [--json]
vh vault remote access
OptionAliasesTypeDefaultRequiredSummary
modeYesfull, read-only or none.
-oid or nameNoUser ID or username of the vault owner (required if using name).
textNoWhy (shown in the status and the audit trail).
-jflagNoOutput in JSON format.

vh vault remote status

vh vault remote status <vault> [--owner id|name] [--json]
vh vault remote status
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using name).
-jflagOutput in JSON format.

vh vault remote abort

vh vault remote abort <vault> --confirm <name> [--owner id|name] [--json]
vh vault remote abort
OptionAliasesTypeDefaultRequiredSummary
nameYesThe vault's name, confirming the abort.
-oid or nameNoUser ID or username of the vault owner (required if using name).
-jflagNoOutput in JSON format.

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
vh vault sync
CommandArgumentsAliasesEffectSummary
<vault>show, getreadDisplay the current synchronization settings for a specific vault.
<vault>dryrun, planreadEstimate S3 request and byte pressure for the next sync plan without executing file changes using the local remote index.
<vault>writeRefresh the remote S3 object index using an explicit ListObjectsV2 reconciliation pass.
<vault>import-inventory, inventory-importwriteImport a local S3 Inventory CSV into the remote object index without downloading object bodies.
<vault>ingest-events, eventwriteFeed 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, editwriteSet or update synchronization settings for a specific vault.

vh vault sync info

vh vault sync info <vault> [--owner id|name]
vh vault sync info
OptionAliasesTypeDefaultSummary
-oid or nameUser 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]
vh vault sync dry-run
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using name).
--refresh-remote-indexflagRefresh the remote index manifest before planning. Requires sync trigger permission and may issue S3 HEAD/GET requests.
flagRefresh cached storage-rate profile and estimate data before pricing the dry-run.
flagSkip storage-rate price estimates for this dry-run.

vh vault sync reconcile

vh vault sync reconcile <vault> [--owner id|name] [--allow-list-scan]
vh vault sync reconcile
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using name).
flagAllow 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]
vh vault sync inventory
OptionAliasesTypeDefaultRequiredSummary
pathYesPath to a local S3 Inventory CSV file.
-oid or nameNoUser ID or username of the vault owner (required if using name).
columnsNoComma-separated CSV columns when the inventory file has no header.
--headerflagNoTreat the first inventory CSV row as a header row.

vh vault sync events

vh vault sync events <vault> --file <path> [--owner id|name]
vh vault sync events
OptionAliasesTypeDefaultRequiredSummary
pathYesPath to an S3 Event Notifications JSON file.
-oid or nameNoUser ID or username of the vault owner (required if using name).

vh vault sync set

vh vault sync set <vault> [options]
vh vault sync set
OptionAliasesTypeDefaultGroupSummary
-oid or nameUser ID or username of the vault owner (required if using name).
--sync-intervalintervalSync interval in seconds (default 5m).
--conflictoverwrite or keep_both or askLocal Vault OptionsConflict resolution strategy for local vaults.
--conflictkeep_local or keep_remote or keep_newest or askS3 Vault OptionsConflict resolution strategy for S3 vaults (new vaults default to vaults.s3.default_remote_conflict_policy in config.yaml).
--strategycache or sync or mirrorS3 Vault OptionsSync strategy for S3 vaults (new vaults default to vaults.s3.default_remote_sync_strategy in config.yaml).
--budget-presetconservative or balanced or bulk or unlimitedS3 Vault OptionsApply an S3 budget preset. Individual budget flags override preset fields.
--remote-index-agedurationS3 Vault OptionsMaximum age for trusting the local S3 remote index when manifest refresh fails; use 'unlimited' to clear.
countS3 Vault OptionsMaximum LIST requests per S3 sync run; use 'unlimited' to clear.
countS3 Vault OptionsMaximum HEAD requests per S3 sync run; use 'unlimited' to clear.
countS3 Vault OptionsMaximum GET requests per S3 sync run; use 'unlimited' to clear.
countS3 Vault OptionsMaximum PUT requests per S3 sync run; use 'unlimited' to clear.
countS3 Vault OptionsMaximum COPY requests per S3 sync run; use 'unlimited' to clear.
countS3 Vault OptionsMaximum DELETE requests per S3 sync run; use 'unlimited' to clear.
bytesS3 Vault OptionsMaximum 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.

vh vault recovery
CommandArgumentsAliasesEffectSummary
<vault>info, showreadA vault's recovery mode, local versioning, snapshot and version storage, the upstream backlog and the bucket's versioning state.
<vault>updatewriteChange a vault's recovery settings.
<vault>writeSuspend versioning on the vault's bucket (AWS S3).
<vault>estimatereadShow the cost disclosure for turning on provider versioning (read-only: at most one admin call, no object requests).

vh vault recovery status

vh vault recovery status <vault> [--owner id|name] [--refresh] [--json]
vh vault recovery status
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using a name).
flagRead 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).
flagPrint the result as JSON (the ws shapes).

vh vault recovery set

vh vault recovery set <vault> [options]
vh vault recovery set
OptionAliasesTypeDefaultGroupSummary
-oid or nameUser ID or username of the vault owner (required if using a name).
flagDon't ask: confirm the action (for scripts).
flagPrint the result as JSON (the ws shapes).
on or offLocal versioningKeep the prior generation of every changed file.
nLocal versioningKeep at most N versions per file.
nLocal versioningDrop versions older than N days.
sizeLocal versioningStorage quota for local versions.
30d or 90d or 365d or indefiniteProvider versioningHow long provider versioning keeps old versions.
flagProvider versioningAccept recurring charges that can't be estimated.
flagProvider versioningAccept that a shorter retention deletes history sooner.
flagProvider versioningAdopt the vault's own unmanaged bucket in the same step.
off or local-snapshots or provider-versioningRecovery modeVault recovery mode.
sizeRecovery modeSnapshot storage quota (0 = none).
amountRecovery modeNotify 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 suspend <vault> [--owner id|name] [--yes]
vh vault recovery suspend
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using a name).
flagDon't ask: confirm the action (for scripts).

vh vault recovery disclosure

vh vault recovery disclosure <vault> [--owner id|name] [--retention 30d|90d|365d|indefinite] [--json]
vh vault recovery disclosure
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using a name).
30d or 90d or 365d or indefiniteHow long provider versioning keeps old versions.
flagPrint 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>
vh vault read-grant
CommandArgumentsAliasesEffectSummary
<vault>createwriteIssue 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.
lsreadList read grants: of one vault, or of every vault where you hold vault.sync.action.read_grants.
<grant>inforeadShow one read grant.
<grant>remove, rmdestructiveRevoke a read grant: deletes its S3 gateway credential and its upstream key (Backblaze B2 b2_delete_key).
recipientsThe 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]
vh vault read-grant issue
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using name).
fingerprintA pinned recipient's fingerprint (vh vault read-grant recipient list); give it twice to encrypt to two recipients.
-jflagOutput in JSON format.
flagIssue the S3 gateway half alone (a local vault, or one that encrypts its objects upstream).

vh vault read-grant list

vh vault read-grant list [--owner id|name] [--vault <vault>] [--json] [--all]
vh vault read-grant list
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using name).
vaultOnly this vault's grants (name or ID).
-jflagOutput in JSON format.
flagInclude revoked grants.

vh vault read-grant show

vh vault read-grant show <grant> [--json] [--ciphertext]
vh vault read-grant show
OptionAliasesTypeDefaultSummary
-jflagOutput in JSON format.
flagPrint the armored OpenPGP message.

vh vault read-grant revoke

vh vault read-grant revoke <grant> [--json]
vh vault read-grant revoke
OptionAliasesTypeDefaultSummary
-jflagOutput in JSON format.

vh vault read-grant recipient

vh vault read-grant recipient
CommandArgumentsAliasesEffectSummary
lsreadList the pinned read-grant recipients (OpenPGP public keys, by fingerprint).
pinwritePin a read-grant recipient: an OpenPGP public key, by its full 40-hex fingerprint.
<fingerprint>rm, unpindestructiveUnpin a read-grant recipient: no new grant is encrypted to it.

vh vault read-grant recipient list

vh vault read-grant recipient list [--json] [--all]
vh vault read-grant recipient list
OptionAliasesTypeDefaultSummary
-jflagOutput in JSON format.
flagInclude removed recipients.

vh vault read-grant recipient add

vh vault read-grant recipient add [--fingerprint <fingerprint>] [--key-file <path>] [--keyserver <url>] [--label <label>] [--json]
vh vault read-grant recipient add
OptionAliasesTypeDefaultSummary
fingerprintThe key's full 40-hex fingerprint.
pathThe armored public key (- for standard input).
urlFetch the key from this keyserver by its fingerprint (https).
labelA name you recognize the key by.
-jflagOutput in JSON format.

vh vault read-grant recipient remove

vh vault read-grant recipient remove <fingerprint> [--json]
vh vault read-grant recipient remove
OptionAliasesTypeDefaultSummary
-jflagOutput in JSON format.