Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

key generate

Generate a standard key directory for backup encryption:

  • ppk.pub
  • ppk.key
  • ppk.pwd
  • manifest.json

Command Format:

ppk key generate [--key-home <DIR>] [--force] [--prompt-for-passphrase] [--apply]

Description

  • --key-home <DIR>: standard key directory.
  • --force: overwrite existing key files.
  • --prompt-for-passphrase: enter the private-key passphrase in the terminal.
  • --apply: actually write key files.

Usage Sample

ppk key generate --key-home ~/.peppykeep/keys/project-a
PPKPKPSW='your-passphrase' ppk key generate --key-home ~/.peppykeep/keys/project-a --apply
ppk key generate --key-home ~/.peppykeep/keys/project-a --prompt-for-passphrase --apply

notice

  • Without --apply, only print files and paths that would be created.
  • Without --prompt-for-passphrase, provide the private-key passphrase via PPKPKPSW.
  • Backup nodes store the public key only; restore nodes store the private key.