Skip to content
Command reference

Command reference

All command-line operations run through paw cli.

paw cli <COMMAND> [OPTIONS] [ARGUMENTS]

Item path syntax

Commands that manipulate items use a hierarchical path:

VAULT/TYPE/NAME
  • VAULT: The vault reference. Commands that select an existing vault accept its exact name (for example, Personal), full Vault ID, or a unique prefix of at least 7 characters (for example, mjqxgz2).
  • TYPE: One of four supported item types:
    • login
    • password
    • note
    • ssh_key
  • NAME: The title or identifier of the item (for example, github.com).

Commands that modify an unlocked vault accept the --session flag. If the PAW_SESSION environment variable is defined, Paw uses it automatically.


Vault operations

init

Initializes a new local vault. Paw prompts you to enter and confirm the master password.

paw cli init <VAULT>

unlock

Unlocks a vault and prints an active session ID. Requires the Paw agent to be running.

paw cli unlock [OPTIONS] <VAULT>
OptionAliasDescription
--lifetime <DURATION>-tMaximum session lifetime (for example, 1h, 30m). Defaults to 0 (no expiration).

lock

Locks an active vault session.

paw cli lock <VAULT>

sync

Synchronizes an unlocked vault with another device on the local network over mutual post-quantum TLS, or clones a vault.

paw cli sync [OPTIONS] [VAULT]
OptionDescription
--cloneClones a vault from another device to a new local vault.
--link <LINK>Connects directly using a Paw Sync link if mDNS discovery is unavailable.

For detailed protocol specifications and network requirements, see Sync protocol & cryptography.


Listing and inspecting items

ls

Lists vaults, categories, or items.

paw cli ls [PATH]
  • paw cli ls: Lists all local vaults.
  • paw cli ls Personal: Lists all items in the Personal vault.
  • paw cli ls Personal/login: Lists all logins in the Personal vault.

show

Displays the details of a specific item, including standard credentials, custom fields, and tags.

paw cli show [OPTIONS] <VAULT/TYPE/NAME>
OptionAliasDescription
--clip-cCopies the secret (password, private key, or selected field) to the clipboard instead of printing it.
--reveal-rReveals hidden secrets and concealed custom fields in the output.
--jsonOutputs the item (or selected field) as structured JSON.
--field <NAME>Displays or copies only the specified field.
--username-uDisplays or copies only the username.
--password-pDisplays or copies only the password or private key.
--totpGenerates and displays the current TOTP verification code.
--session <ID>Specifies the active session ID.

Modifying items

add

Adds a new item to a vault.

Running paw cli add without arguments launches a guided interactive wizard that steps through selecting the vault, item type, and item attributes.

paw cli add [OPTIONS]

You can also use item-type subcommands directly:

paw cli add login [OPTIONS] <VAULT> <NAME>
paw cli add password [OPTIONS] <VAULT> <NAME>
paw cli add note [OPTIONS] <VAULT> <NAME>
paw cli add ssh_key [OPTIONS] <VAULT> <NAME>

Common options

OptionAliasDescription
--tag <TAG>Associates a tag with the new item (may be repeated).
--session <ID>Specifies the active session ID.

Subcommand-specific options

  • add login:
    • --username <STRING>: Sets the login username.
    • --url <URL>: Sets the website address (must use HTTPS).
    • --generate-password: Generates a random password.
    • --password-stdin: Reads the password from standard input.
    • --totp-stdin: Reads a Base32 authenticator secret from standard input (requires --generate-password).
  • add password:
    • --generate-password: Generates a random password.
    • --password-stdin: Reads the password from standard input.
  • add ssh_key:
    • --input <FILE>, -i: Imports an SSH key from an OpenSSH or PEM file.
    • --agent: Automatically adds the key to the SSH agent when the vault is unlocked.

edit

Edits an existing item.

Running paw cli edit without field-specific flags launches an interactive menu to update standard fields, manage custom fields and sections, and toggle tags. When editing multiline text (such as notes or multiline custom fields), Paw opens your external editor ($VISUAL or $EDITOR).

paw cli edit [OPTIONS] <VAULT/TYPE/NAME>
OptionDescription
--field <NAME>Specifies a standard or custom field to edit or remove.
--type <TYPE>Sets the custom field UI type (string, concealed, multiline, multiline_concealed).
--tag <TAG>Toggles or targets a tag name.
--name <NAME>Renames the item title.
--removeRemoves the specified --field or --tag.
--totp-stdinReads a replacement Base32 authenticator secret from stdin (login items).
--input <FILE>Imports a replacement SSH key from a file (SSH key items).
--generate-keyGenerates a replacement SSH key (SSH key items).
--session <ID>Specifies the active session ID.

rm

Removes an item from the vault.

paw cli rm [OPTIONS] <VAULT/TYPE/NAME>
OptionDescription
--session <ID>Specifies the active session ID.

Item history

Paw saves up to 10 previous revisions of an item whenever changes are saved.

history list

Lists all recorded revisions for an item, showing the revision index, modification timestamp, and size. Index 0 is the most recent past revision.

paw cli history list <VAULT/TYPE/NAME>

(You can also run paw cli history <VAULT/TYPE/NAME> directly.)

history show

Displays the contents of a historical revision.

paw cli history show <VAULT/TYPE/NAME> <INDEX>

history restore

Restores an earlier revision as the current item value. The current version is preserved in history before replacing it.

paw cli history restore <VAULT/TYPE/NAME> <INDEX>

Attachments

Login and Secure note items support encrypted file attachments.

attachment add

Attaches a local file to an item.

paw cli attachment add <VAULT/TYPE/NAME> <FILE_PATH>

attachment list

Lists all files attached to an item, including each attachment’s unique ID, filename, and decrypted size.

paw cli attachment list <VAULT/TYPE/NAME>

attachment save

Downloads and decrypts an attached file to the specified destination path.

paw cli attachment save <VAULT/TYPE/NAME> <FILE_ID> --output <DESTINATION_PATH>

attachment remove

Permanently removes an attachment from an item.

paw cli attachment remove <VAULT/TYPE/NAME> <FILE_ID>

Password generation

pwgen

Interactively generates a password, passphrase, or PIN without requiring an unlocked vault.

paw cli pwgen

Follow the prompts to choose the password style and options. Paw prints the generated password directly to standard output.


Backup and restore

export

Exports vault credentials to a file.

paw cli export [OPTIONS] <VAULT> <DESTINATION>
OptionDescription
--encryptedExports credentials to a password-protected .cxf.age file (default). Attachments are not included.
--pawExports a complete .paw archive containing credentials, item history, and file attachments.
--plaintextExports unencrypted .cxf data. Paw requires explicit confirmation before exporting plaintext.
--session <ID>Specifies the active session ID.

restore

Restores a .paw, .cxf.age, or .cxf backup file into a new vault. It does not overwrite an existing vault.

paw cli restore [OPTIONS] <BACKUP_FILE>
OptionDescription
--name <NAME>Specifies the name for the restored vault. If omitted, Paw prompts for a name.

Agent management

agent start

Starts the background Paw agent. Leave this command running in a dedicated terminal or service manager.

paw cli agent start

agent sessions

Lists all currently active vault sessions held by the agent.

paw cli agent sessions

General options

completion

Generates shell completion scripts for Bash, Zsh, or Fish.

paw cli completion <SHELL>

Supported shells: bash, zsh, fish.

See Shell completion in the CLI guide for installation examples.

version

Prints the current version of the Paw binary.

paw cli version