CLI command

skarbiec migrate-v2

Migrate the configured vault and grants to the canonical v2 envelope after first making a private snapshot.

Invocation#

Shell
skarbiec migrate-v2 [--snapshot <path>]

Purpose#

Migrate the configured vault and grants to the canonical v2 envelope after first making a private snapshot.

Required inputs and options#

  • No positional input. --snapshot selects a new backup path; otherwise a timestamped path beside the vault is chosen.

Output and state effects#

  • Creates a mode-0600 snapshot, migrates the live vault, and prints snapshot plus item, revision, and grant counts.

Refusals#

  • Refuses to overwrite an existing snapshot and aborts when the source vault or migration cannot be read safely.