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/NAMEVAULT: 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:loginpasswordnotessh_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>| Option | Alias | Description |
|---|---|---|
--lifetime <DURATION> | -t | Maximum 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]| Option | Description |
|---|---|
--clone | Clones 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 thePersonalvault.paw cli ls Personal/login: Lists all logins in thePersonalvault.
show
Displays the details of a specific item, including standard credentials, custom fields, and tags.
paw cli show [OPTIONS] <VAULT/TYPE/NAME>| Option | Alias | Description |
|---|---|---|
--clip | -c | Copies the secret (password, private key, or selected field) to the clipboard instead of printing it. |
--reveal | -r | Reveals hidden secrets and concealed custom fields in the output. |
--json | Outputs the item (or selected field) as structured JSON. | |
--field <NAME> | Displays or copies only the specified field. | |
--username | -u | Displays or copies only the username. |
--password | -p | Displays or copies only the password or private key. |
--totp | Generates 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
| Option | Alias | Description |
|---|---|---|
--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>| Option | Description |
|---|---|
--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. |
--remove | Removes the specified --field or --tag. |
--totp-stdin | Reads a replacement Base32 authenticator secret from stdin (login items). |
--input <FILE> | Imports a replacement SSH key from a file (SSH key items). |
--generate-key | Generates 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>| Option | Description |
|---|---|
--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 pwgenFollow 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>| Option | Description |
|---|---|
--encrypted | Exports credentials to a password-protected .cxf.age file (default). Attachments are not included. |
--paw | Exports a complete .paw archive containing credentials, item history, and file attachments. |
--plaintext | Exports 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>| Option | Description |
|---|---|
--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 startagent sessions
Lists all currently active vault sessions held by the agent.
paw cli agent sessionsGeneral 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