Skip to content

item command

Manage items in Proton Pass vaults.

Synopsis

pass-cli item <SUBCOMMAND>

Description

The item command provides operations for managing items within vaults. Items are the fundamental units of data storage in Proton Pass, including logins, notes, credit cards, and aliases.

Using default settings

You can configure a default vault and output format using the settings command. When defaults are set, many item commands no longer require --share-id, --vault-name, or --output parameters, making your workflow more efficient.

Subcommands

list

List items in vaults.

pass-cli item list [OPTIONS] [VAULT_NAME]

Options:

  • VAULT_NAME - Name of the vault to list items from (positional argument)
  • --share-id SHARE_ID - Share ID of the vault to list items from
  • --vault-name VAULT_NAME - Name of the vault to list items from (alternative to positional argument)
  • --filter-type TYPE - Filter items by type: note, login, alias, credit-card, identity, ssh-key, wifi, custom
  • --filter-state STATE - Filter items by state: active or trashed
  • --sort-by SORT_BY - Sort items: alphabetic-asc, alphabetic-desc, created-asc, created-desc
  • --output FORMAT - Output format: human or json. Uses default format from settings if not specified.

Mutually exclusive options:

  • --share-id, --vault-name, and positional VAULT_NAME are mutually exclusive. You can provide one, or none if a default vault is configured.
  • --vault-name and positional VAULT_NAME are mutually exclusive; use whichever is more convenient for your script.

Using default settings:

If you have set a default vault using settings set default-vault, you can omit all vault identification parameters. Similarly, if you've set a default output format, you can omit --output.

Examples:

# List items using default vault and format (requires settings configured)
pass-cli item list

# List items in a specific vault by name (positional)
pass-cli item list "Personal Vault"

# List items in a specific vault by name (using --vault-name flag)
pass-cli item list --vault-name "Personal Vault"

# List items in a specific vault by share ID
pass-cli item list --share-id "abc123def"

# List items in JSON format
pass-cli item list --output json

# Using default vault but override format
pass-cli item list --output human

# List items showing which folder each one belongs to
pass-cli item list --vault-name "Personal Vault" --output json | jq '.items[] | {title, folder_id}'

JSON output has two top level keys: items, and folders, which lists every folder in the vault with its folder_id, folder_name and parent_id. In human format, an item inside a folder shows the folder name after its title, and the folder tree is printed after the item list.

create

Create new items in a vault.

pass-cli item create <ITEM_TYPE> [OPTIONS]

Custom fields in templates

Every item template (login, note, credit-card, wifi, identity and custom) accepts an extra_fields array to create custom fields together with the item. --get-template outputs it as an empty array. Each entry has these keys:

  • kind - Field type: text, hidden or totp
  • title - Field name shown in Proton Pass
  • value - Field value (optional, defaults to an empty string)

Values of totp fields must be a valid otpauth://totp/... URI or a base32 secret, otherwise the item is not created. Empty values are accepted for every type, so you can create a field and fill it in later. In identity and custom templates, extra_fields are created outside of any section.

Example login template:

{
  "title": "Self-hosted service",
  "username": "admin",
  "email": null,
  "password": "s3cr3t-p4ssw0rd",
  "totp_uri": null,
  "urls": ["https://service.example.com"],
  "extra_fields": [
    { "kind": "hidden", "title": "Recovery key", "value": "" },
    { "kind": "text", "title": "Account ID", "value": "12345" },
    { "kind": "totp", "title": "Admin 2FA", "value": "otpauth://totp/Service:admin?secret=JBSWY3DPEHPK3PXP&issuer=Service" }
  ]
}
# Create a login with an empty hidden field to fill in later
echo '{"title":"Self-hosted service","username":"admin","password":"s3cr3t","urls":[],"extra_fields":[{"kind":"hidden","title":"Recovery key","value":""}]}' | \
  pass-cli item create login --vault-name "Personal" --from-template -

# Create a note with a hidden field
echo '{"title":"Server notes","note":"Rack 4","extra_fields":[{"kind":"hidden","title":"BMC password","value":"hunter2"}]}' | \
  pass-cli item create note --vault-name "Personal" --from-template -

create login

Create a new login item.

pass-cli item create login [OPTIONS]

Options:

  • --share-id SHARE_ID - Share ID of the vault to create the item in
  • --vault-name VAULT_NAME - Name of the vault to create the item in
  • --title TITLE - Title of the login item (required unless using template)
  • --username USERNAME - Username for the login (optional)
  • --email EMAIL - Email for the login (optional)
  • --password PASSWORD - Password for the login (optional)
  • --generate-password[=SETTINGS] - Generate a random password (optional)
  • --generate-passphrase[=WORD_COUNT] - Generate a passphrase (optional)
  • --url URL - Associated URLs (can be used multiple times)
  • --get-template - Output a JSON template structure
  • --from-template FILE - Create from template file or - for stdin
  • --folder-id FOLDER_ID - ID of the folder to create the item in. Omit to create it at the vault root

Mutually exclusive options:

  • --share-id and --vault-name are mutually exclusive. You can provide one, or neither if a default vault is configured.

Examples:

# Create using default vault (if configured)
pass-cli item create login \
  --title "GitHub Account" \
  --username "myuser" \
  --password "mypassword" \
  --url "https://github.com"

# Create a basic login item using share ID
pass-cli item create login \
  --share-id "abc123def" \
  --title "GitHub Account" \
  --username "myuser" \
  --password "mypassword" \
  --url "https://github.com"

# Create a basic login item using vault name
pass-cli item create login \
  --vault-name "Personal" \
  --title "GitHub Account" \
  --username "myuser" \
  --password "mypassword" \
  --url "https://github.com"

# Create login with generated password
pass-cli item create login \
  --share-id "abc123def" \
  --title "New Account" \
  --username "myuser" \
  --generate-password \
  --url "https://example.com"

# Create login with custom password generation
pass-cli item create login \
  --vault-name "Work" \
  --title "Secure Account" \
  --username "myuser" \
  --generate-password="20,uppercase,symbols" \
  --url "https://example.com"

# Get login template structure
pass-cli item create login --get-template > template.json

# Create from template file using share ID
pass-cli item create login --from-template template.json --share-id "abc123def"

# Create from template file using vault name
pass-cli item create login --from-template template.json --vault-name "Personal"

# Create from stdin template
echo '{"title":"Test Login","username":"user","password":"pass","urls":["https://test.com"]}' | \
  pass-cli item create login --share-id "abc123def" --from-template -

# Create a login inside a folder
pass-cli item create login \
  --vault-name "Personal" \
  --title "Bank Login" \
  --username "myuser" \
  --generate-password \
  --folder-id "folder_id_here"

create note

Create a new secure note item.

pass-cli item create note [OPTIONS]

Options:

  • --share-id SHARE_ID - Share ID of the vault to create the item in
  • --vault-name VAULT_NAME - Name of the vault to create the item in
  • --title TITLE - Title of the note item (required unless using template)
  • --note NOTE - Note content (optional)
  • --get-template - Output a JSON template structure
  • --from-template FILE - Create from template file or - for stdin
  • --folder-id FOLDER_ID - ID of the folder to create the item in. Omit to create it at the vault root

Mutually exclusive options:

  • --share-id and --vault-name are mutually exclusive. You can provide one, or neither if a default vault is configured.

Examples:

# Create a note at the vault root
pass-cli item create note \
  --vault-name "Personal" \
  --title "Recovery Codes" \
  --note "Stored offline until needed"

# Create a note inside a folder
pass-cli item create note \
  --share-id "abc123def" \
  --title "Router Admin Notes" \
  --note "Changed on 2026-01-10" \
  --folder-id "folder_id_here"

create credit-card

Create a new credit card item.

pass-cli item create credit-card [OPTIONS]

Options:

  • --share-id SHARE_ID - Share ID of the vault to create the item in
  • --vault-name VAULT_NAME - Name of the vault to create the item in
  • --title TITLE - Title of the credit card item (required unless using template)
  • --cardholder-name NAME - Name printed on the card (optional)
  • --number NUMBER - Card number (optional)
  • --cvv CVV - Verification number (optional)
  • --expiration-date DATE - Expiration date in format YYYY-MM (optional)
  • --pin PIN - Card PIN (optional)
  • --note NOTE - Note content (optional)
  • --get-template - Output a JSON template structure
  • --from-template FILE - Create from template file or - for stdin
  • --folder-id FOLDER_ID - ID of the folder to create the item in. Omit to create it at the vault root

Mutually exclusive options:

  • --share-id and --vault-name are mutually exclusive. You can provide one, or neither if a default vault is configured.

Examples:

# Create a credit card at the vault root
pass-cli item create credit-card \
  --vault-name "Personal" \
  --title "Main Card" \
  --cardholder-name "Jane Doe" \
  --expiration-date "2027-12"

# Create a credit card inside a folder
pass-cli item create credit-card \
  --share-id "abc123def" \
  --title "Travel Card" \
  --cardholder-name "Jane Doe" \
  --folder-id "folder_id_here"

create identity

Create a new identity item. Identities are built from a JSON template.

pass-cli item create identity [OPTIONS]

Options:

  • --share-id SHARE_ID - Share ID of the vault to create the item in
  • --vault-name VAULT_NAME - Name of the vault to create the item in
  • --get-template - Output a JSON template structure
  • --from-template FILE - Create from template file or - for stdin (required unless using --get-template)
  • --folder-id FOLDER_ID - ID of the folder to create the item in. Omit to create it at the vault root

Mutually exclusive options:

  • --share-id and --vault-name are mutually exclusive. You can provide one, or neither if a default vault is configured.

Examples:

# Get the identity template structure
pass-cli item create identity --get-template > identity.json

# Create an identity at the vault root
pass-cli item create identity --vault-name "Personal" --from-template identity.json

# Create an identity inside a folder
pass-cli item create identity \
  --share-id "abc123def" \
  --from-template identity.json \
  --folder-id "folder_id_here"

create wifi

Create a new WiFi item.

pass-cli item create wifi [OPTIONS]

Options:

  • --share-id SHARE_ID - Share ID of the vault to create the item in
  • --vault-name VAULT_NAME - Name of the vault to create the item in
  • --title TITLE - Title of the WiFi item (required unless using template)
  • --ssid SSID - Network SSID (name) (required unless using template)
  • --password PASSWORD - Network password, leave empty for open networks (optional)
  • --security TYPE - Security type: wpa, wpa2, wpa3, wep, open, none (optional)
  • --note NOTE - Note content (optional)
  • --get-template - Output a JSON template structure
  • --from-template FILE - Create from template file or - for stdin
  • --folder-id FOLDER_ID - ID of the folder to create the item in. Omit to create it at the vault root

Mutually exclusive options:

  • --share-id and --vault-name are mutually exclusive. You can provide one, or neither if a default vault is configured.

Examples:

# Create a WiFi item at the vault root
pass-cli item create wifi \
  --vault-name "Home" \
  --title "Home Network" \
  --ssid "home-5g" \
  --security wpa3

# Create a WiFi item inside a folder
pass-cli item create wifi \
  --share-id "abc123def" \
  --title "Office Guest" \
  --ssid "office-guest" \
  --security wpa2 \
  --folder-id "folder_id_here"

create custom

Create a new custom item. Custom items are built from a JSON template with sections and fields.

pass-cli item create custom [OPTIONS]

Options:

  • --share-id SHARE_ID - Share ID of the vault to create the item in
  • --vault-name VAULT_NAME - Name of the vault to create the item in
  • --get-template - Output a JSON template structure
  • --from-template FILE - Create from template file or - for stdin (required unless using --get-template)
  • --folder-id FOLDER_ID - ID of the folder to create the item in. Omit to create it at the vault root

Mutually exclusive options:

  • --share-id and --vault-name are mutually exclusive. You can provide one, or neither if a default vault is configured.

Examples:

# Get the custom template structure
pass-cli item create custom --get-template > custom.json

# Create a custom item at the vault root
pass-cli item create custom --vault-name "Work" --from-template custom.json

# Create a custom item inside a folder
pass-cli item create custom \
  --share-id "abc123def" \
  --from-template custom.json \
  --folder-id "folder_id_here"

create ssh-key

Create or import SSH key items. SSH keys can be either generated from scratch or imported from existing private key files.

pass-cli item create ssh-key <SUBCOMMAND>

Subcommands:

  • generate - Generate a new SSH key pair
  • import - Import an existing SSH key from a private key file
create ssh-key generate

Generate a new SSH key pair and store it in Proton Pass.

pass-cli item create ssh-key generate [OPTIONS]

Options:

  • --share-id SHARE_ID - Share ID of the vault to create the SSH key in
  • --vault-name VAULT_NAME - Name of the vault to create the SSH key in
  • --title TITLE - Title of the SSH key item (required)
  • --key-type TYPE - Type of SSH key to generate: ed25519 (default), rsa2048, or rsa4096
  • --comment COMMENT - Comment for the SSH key (optional)
  • --password - Enable passphrase protection for the SSH key (optional)
  • --folder-id FOLDER_ID - ID of the folder to create the item in. Omit to create it at the vault root

Mutually exclusive options:

  • --share-id and --vault-name are mutually exclusive. You can provide one, or neither if a default vault is configured.

Passphrase protection:

When generating new SSH keys with --password, you'll be prompted to enter and confirm a passphrase. The passphrase can also be provided via environment variables:

  • PROTON_PASS_SSH_KEY_PASSWORD - Passphrase as plain text
  • PROTON_PASS_SSH_KEY_PASSWORD_FILE - Path to file containing the passphrase

Passphrase recommendation for generated keys

Since generated SSH keys are already encrypted and securely stored within your Proton Pass vault, adding a passphrase is optional. However, if you plan to export the key for use outside Proton Pass, adding a passphrase provides an additional layer of security.

Examples:

# Generate using default vault (if configured)
pass-cli item create ssh-key generate \
  --title "GitHub Deploy Key"

# Generate an Ed25519 key (recommended)
pass-cli item create ssh-key generate \
  --share-id "abc123def" \
  --title "GitHub Deploy Key"

# Generate an Ed25519 key using vault name
pass-cli item create ssh-key generate \
  --vault-name "Development Keys" \
  --title "GitHub Deploy Key"

# Generate an RSA 4096 key with comment
pass-cli item create ssh-key generate \
  --share-id "abc123def" \
  --title "Production Server" \
  --key-type rsa4096 \
  --comment "prod-server-deploy"

# Generate a passphrase-protected key
pass-cli item create ssh-key generate \
  --share-id "abc123def" \
  --title "Secure Key" \
  --password

# Generate with passphrase from environment variable
PROTON_PASS_SSH_KEY_PASSWORD="my-passphrase" \
  pass-cli item create ssh-key generate \
  --share-id "abc123def" \
  --title "Automated Key" \
  --password

# Generate a key inside a folder
pass-cli item create ssh-key generate \
  --vault-name "Development Keys" \
  --title "Staging Deploy Key" \
  --folder-id "folder_id_here"
create ssh-key import

Import an existing SSH private key from a file into Proton Pass.

pass-cli item create ssh-key import [OPTIONS]

Options:

  • --from-private-key PATH - Path to the private key file (required)
  • --share-id SHARE_ID - Share ID of the vault to create the SSH key in
  • --vault-name VAULT_NAME - Name of the vault to create the SSH key in
  • --title TITLE - Title of the SSH key item (required)
  • --password - Prompt for the passphrase if the private key is encrypted (optional)
  • --folder-id FOLDER_ID - ID of the folder to create the item in. Omit to create it at the vault root

Mutually exclusive options:

  • --share-id and --vault-name are mutually exclusive. You can provide one, or neither if a default vault is configured.

Handling passphrase-protected SSH keys:

If you're importing an existing SSH key that's protected with a passphrase, you have several options:

  1. Store the key with its passphrase protection intact:
  2. Use the --password flag when importing
  3. The passphrase will be prompted interactively or read from environment variables
  4. The key will be stored in Pass with its passphrase, and you'll need to provide it when using the key

  5. Remove the passphrase before importing (recommended):

  6. Create an unencrypted copy of your key: ssh-keygen -p -f /path/to/key -N ""
  7. Import the unencrypted key into Proton Pass
  8. Since the key will be encrypted within your vault, an additional passphrase is unnecessary
  9. Delete the unencrypted copy after importing

  10. Store the passphrase in the same item:

  11. Import the passphrase-protected key
  12. After import, use pass-cli item update to add the passphrase as a custom hidden field
  13. The CLI will automatically try to use this field when loading the key into an SSH agent

Passphrase environment variables:

Similar to key generation, you can provide passphrases via:

  • PROTON_PASS_SSH_KEY_PASSWORD - Passphrase as plain text
  • PROTON_PASS_SSH_KEY_PASSWORD_FILE - Path to file containing the passphrase

Examples:

# Import an unencrypted SSH key
pass-cli item create ssh-key import \
  --from-private-key ~/.ssh/id_ed25519 \
  --share-id "abc123def" \
  --title "My SSH Key"

# Import using vault name
pass-cli item create ssh-key import \
  --from-private-key ~/.ssh/id_rsa \
  --vault-name "Personal Keys" \
  --title "Old RSA Key"

# Import a passphrase-protected key (will prompt for passphrase)
pass-cli item create ssh-key import \
  --from-private-key ~/.ssh/id_ed25519 \
  --share-id "abc123def" \
  --title "Protected Key" \
  --password

# Import with passphrase from environment variable
PROTON_PASS_SSH_KEY_PASSWORD="my-key-passphrase" \
  pass-cli item create ssh-key import \
  --from-private-key ~/.ssh/id_ed25519 \
  --share-id "abc123def" \
  --title "Automated Import" \
  --password

# Import with passphrase from file
PROTON_PASS_SSH_KEY_PASSWORD_FILE="/secure/passphrase.txt" \
  pass-cli item create ssh-key import \
  --from-private-key ~/.ssh/id_ed25519 \
  --share-id "abc123def" \
  --title "Key with File Passphrase" \
  --password

# Import a key into a folder
pass-cli item create ssh-key import \
  --from-private-key ~/.ssh/id_ed25519 \
  --vault-name "Personal Keys" \
  --title "Laptop Key" \
  --folder-id "folder_id_here"

Workflow for removing passphrase from existing key:

# Step 1: Create a copy of your key without passphrase
cp ~/.ssh/id_ed25519 /tmp/id_ed25519_temp
ssh-keygen -p -f /tmp/id_ed25519_temp -N ""
# (You'll be prompted for the current passphrase)

# Step 2: Import the unencrypted copy
pass-cli item create ssh-key import \
  --from-private-key /tmp/id_ed25519_temp \
  --share-id "abc123def" \
  --title "My SSH Key"

# Step 3: Securely delete the temporary unencrypted copy
shred -u /tmp/id_ed25519_temp  # Linux
# or
rm -P /tmp/id_ed25519_temp  # macOS

Using imported SSH keys

Once imported, your SSH keys can be loaded into any SSH agent using the ssh-agent load command or by starting Proton Pass CLI's built-in SSH agent with ssh-agent start.

view (aliases: get, show)

View an item's details.

pass-cli item view [OPTIONS] [URI]
pass-cli item get [OPTIONS] [URI]
pass-cli item show [OPTIONS] [URI]

Description:

The view command displays details about a specific item. For convenience, this command is also available under the aliases get and read, which are commonly used in other password managers.

Options:

  • --share-id SHARE_ID - Share ID of the vault containing the item (optional if default vault is set and not using URI)
  • --vault-name VAULT_NAME - Name of the vault containing the item (optional if default vault is set and not using URI)
  • --item-id ITEM_ID - ID of the item
  • --item-title ITEM_TITLE - Title of the item
  • URI - Pass URI in format pass://SHARE_ID/ITEM_ID[/FIELD][?totp=code|uri]
  • --field FIELD - Specific field to view
  • --output FORMAT - Output format: human or json. Uses default format from settings if not specified.

Mutually exclusive options:

  • --share-id and --vault-name are mutually exclusive. You can provide one, or neither if a default vault is configured and not using URI.
  • --item-id and --item-title are mutually exclusive. You must provide exactly one.
  • --share-id/--vault-name and --item-id/--item-title parameters and URI are mutually exclusive. You must provide either both parameters or a single secret reference.

Examples:

# View item using default vault (if configured)
pass-cli item view --item-id "item456"

# View item by IDs
pass-cli item view --share-id "abc123def" --item-id "item456"

# View item by names
pass-cli item view --vault-name "MyVault" --item-title "MyItem"

# View item using Pass URI
pass-cli item view "pass://abc123def/item456"

# View item using Pass URI with names
pass-cli item view "pass://MyVault/MyItem"

# View specific field using URI
pass-cli item view "pass://abc123def/item456/password"

# View specific field using options
pass-cli item view --share-id "abc123def" --item-id "item456" --field "username"

# View item in JSON format
pass-cli item view --share-id "abc123def" --item-id "item456" --output json

# View a TOTP field (prints the current code by default)
pass-cli item view "pass://abc123def/item456/totp"

# View a TOTP field and get the raw otpauth:// URI
pass-cli item view "pass://abc123def/item456/totp?totp=uri"

# Using the 'get' alias
pass-cli item get --share-id "abc123def" --item-id "item456"

# Using the 'show' alias
pass-cli item show --vault-name "MyVault" --item-title "MyItem"

move

Move an item to another vault, into a folder of its current vault, or to the vault root.

pass-cli item move [--from-share-id SHARE_ID | --from-vault-name VAULT_NAME] (--item-id ITEM_ID | --item-title ITEM_TITLE) (--to-share-id SHARE_ID | --to-vault-name VAULT_NAME | --to-folder-id FOLDER_ID | --to-share-root)

Description:

The move command relocates a single item. Three destination modes are supported:

  • Another vault, with --to-share-id or --to-vault-name
  • A folder inside the current vault, with --to-folder-id
  • The root of the current vault, outside any folder, with --to-share-root

The source vault comes from --from-share-id or --from-vault-name, or from the default vault configured with settings when neither is given.

Options:

  • --from-share-id SHARE_ID - Share ID of the source vault (optional if a default vault is set)
  • --from-vault-name VAULT_NAME - Name of the source vault (optional if a default vault is set)
  • --item-id ITEM_ID - ID of the item to move
  • --item-title ITEM_TITLE - Title of the item to move, looked up in the source vault
  • --to-share-id SHARE_ID - Share ID of the destination vault
  • --to-vault-name VAULT_NAME - Name of the destination vault
  • --to-folder-id FOLDER_ID - ID of the destination folder, which must belong to the source vault
  • --to-share-root - Move the item to the root of the source vault, outside any folder

Mutually exclusive options:

  • --from-share-id and --from-vault-name are mutually exclusive. You can provide one, or neither if a default vault is configured.
  • --item-id and --item-title are mutually exclusive. You must provide exactly one.
  • Exactly one destination is required. Omitting all of them fails with Please provide a destination: --to-share-id, --to-vault-name, --to-folder-id or --to-share-root.
  • --to-share-id and --to-vault-name are mutually exclusive.
  • --to-folder-id and --to-share-root are mutually exclusive. Providing both fails with Please provide either --to-folder-id or --to-share-root, not both.

Moves inside a vault and moves across vaults:

Folder and root moves keep the item in its current vault. The CLI re-encrypts the item key with the destination folder key, or with the vault key when the destination is the vault root, so the item stays readable for everyone who already has access to that vault.

Cross-vault moves create the item in the destination vault and remove it from the source vault. Item IDs are scoped to a vault, so the moved item gets a new ID. The command prints that new ID, which is the value to use in later commands against the destination vault.

Combining --to-folder-id or --to-share-root with --to-share-id or --to-vault-name is accepted only when the named vault is the source vault. Naming a different vault fails with Moving an item to a folder or share root in a different vault is not supported. To place an item in a folder of another vault, move it to that vault first, then run a second move with --to-folder-id.

If the folder ID does not exist in the source vault, the command fails while looking the folder up. Folder IDs are returned by folder create and listed by folder list.

Output:

The command prints one item ID on success: the existing ID for folder and root moves, the new ID for cross-vault moves.

Examples:

# Move an item into a folder of the default vault
pass-cli item move \
  --item-title "GitHub Account" \
  --to-folder-id "folder_id_here"

# Move an item into a folder, naming the source vault explicitly
pass-cli item move \
  --from-vault-name "Personal" \
  --item-title "GitHub Account" \
  --to-folder-id "folder_id_here"

# Same move using IDs
pass-cli item move \
  --from-share-id "abc123def" \
  --item-id "item456" \
  --to-folder-id "folder_id_here"

# Move an item out of a folder, back to the vault root
pass-cli item move \
  --from-share-id "abc123def" \
  --item-id "item456" \
  --to-share-root

# Move an item to another vault by name
pass-cli item move \
  --from-vault-name "Personal" \
  --item-title "GitHub Account" \
  --to-vault-name "Shared Accounts"

# Move an item to another vault by share ID and capture the new item ID
NEW_ITEM_ID=$(pass-cli item move \
  --from-share-id "abc123def" \
  --item-id "item456" \
  --to-share-id "ghi789jkl")

# Across vaults and then into a folder, in two steps
ITEM_IN_SHARED=$(pass-cli item move \
  --from-share-id "abc123def" \
  --item-id "item456" \
  --to-share-id "ghi789jkl")
pass-cli item move \
  --from-share-id "ghi789jkl" \
  --item-id "$ITEM_IN_SHARED" \
  --to-folder-id "shared_folder_id"

# Naming the source vault again is allowed when the destination is its root
pass-cli item move \
  --from-vault-name "Personal" \
  --item-title "GitHub Account" \
  --to-vault-name "Personal" \
  --to-share-root

Find a folder ID and move an item into it:

FOLDER_ID=$(pass-cli folder list --vault-name "Personal" --output json \
  | jq -r '.[] | select(.content.name == "Banking") | .id')

pass-cli item move \
  --from-vault-name "Personal" \
  --item-title "GitHub Account" \
  --to-folder-id "$FOLDER_ID"

# Confirm the resulting folder assignment
pass-cli item list --vault-name "Personal" --output json \
  | jq '.items[] | select(.id == "item456") | {title, folder_id}'

Agent sessions

item move requires PROTON_PASS_AGENT_REASON when the session belongs to an agent. A folder or root move is recorded as a single item update against the source vault. A cross-vault move is recorded as a delete in the source vault plus a create in the destination vault. See agent.

update

Update an item's fields.

pass-cli item update (--share-id SHARE_ID | --vault-name VAULT_NAME) (--item-id ITEM_ID | --item-title ITEM_TITLE) --field FIELD_NAME=FIELD_VALUE [--field FIELD_NAME=FIELD_VALUE]... [--field-type TYPE]

Description:

The update command allows you to modify fields of an existing item. You can update standard fields (like title, username, password, email, url) or create/update custom fields. Multiple fields can be updated in a single command.

Options:

  • --share-id SHARE_ID - Share ID of the vault containing the item (optional if default vault is set)
  • --vault-name VAULT_NAME - Name of the vault containing the item (optional if default vault is set)
  • --item-id ITEM_ID - ID of the item to update
  • --item-title ITEM_TITLE - Title of the item to update
  • --field FIELD_NAME=FIELD_VALUE - Field to update in format field_name=field_value. Can be specified multiple times to update multiple fields.
  • --field-type TYPE - Type of the custom fields that --field creates when the item has no field with that name: text (default), hidden or totp. It applies to every new field created by the command. Existing fields keep their current type. totp values must be a valid otpauth://totp/... URI or a base32 secret.

Mutually exclusive options:

  • --share-id and --vault-name are mutually exclusive. You can provide one, or neither if a default vault is configured.
  • --item-id and --item-title are mutually exclusive. You must provide exactly one.
  • At least one --field option is required.

Field names:

Standard fields for login items include: title, username, password, email, url, note. You can also create or update custom fields with any name.

For items with named sections (custom items, SSH key items, Wi-Fi items, and identity items with custom sections), use the qualified form SectionName.fieldname to target a field in a specific section. This is required when multiple sections share a field with the same name. An unqualified name still works and updates the first matching field found across all sections.

Identity extra detail fields (extra personal, address, contact, and work details) are referenced by their plain field name without a section prefix.

Types of fields

Item update does not allow to change time or TOTP fields. Please use a different Proton Pass client to update those fields. New TOTP fields can be created with --field-type totp

Examples:

Update a single field

# Update password using default vault (if configured)
pass-cli item update \
  --item-id "item456" \
  --field "password=newpassword123"

# Update password by Share ID and Item ID
pass-cli item update \
  --share-id "abc123def" \
  --item-id "item456" \
  --field "password=newpassword123"

# Update password by vault name and item title
pass-cli item update \
  --vault-name "Personal" \
  --item-title "GitHub Account" \
  --field "password=newpassword123"

Update multiple fields

# Update multiple fields at once
pass-cli item update \
  --share-id "abc123def" \
  --item-id "item456" \
  --field "username=newusername" \
  --field "password=newpassword" \
  --field "email=newemail@example.com"

Update title

# Rename an item
pass-cli item update \
  --vault-name "Work" \
  --item-title "Old Title" \
  --field "title=New Title"

Create or update custom fields

# Create/update custom fields
pass-cli item update \
  --share-id "abc123def" \
  --item-id "item456" \
  --field "api_key=sk_live_abc123" \
  --field "environment=production" \
  --field "notes=Updated on 2024-01-15"

Create hidden or TOTP custom fields

New custom fields are created as visible text fields unless you pass --field-type:

# Create an empty hidden field to fill in later
pass-cli item update \
  --vault-name "Personal" \
  --item-title "Self-hosted service" \
  --field "Recovery key=" \
  --field-type hidden

# Create a TOTP field
pass-cli item update \
  --vault-name "Personal" \
  --item-title "Self-hosted service" \
  --field "Admin 2FA=otpauth://totp/Service:admin?secret=JBSWY3DPEHPK3PXP&issuer=Service" \
  --field-type totp

Update a field in a specific section

When a custom item, SSH key item, or Wi-Fi item has multiple sections with fields of the same name, use the qualified SectionName.fieldname syntax to target the exact section:

# Update the password in the "Production" section only
pass-cli item update \
  --share-id "abc123def" \
  --item-id "item456" \
  --field "Production.password=new_prod_password"

# Update fields in two different sections at once
pass-cli item update \
  --share-id "abc123def" \
  --item-id "item456" \
  --field "Staging.password=new_staging_password" \
  --field "Production.password=new_prod_password"

Update URL

# Update URL field with a single vlaue
pass-cli item update \
  --share-id "abc123def" \
  --item-id "item456" \
  --field "urls=https://newurl.com"

# Update URL field with multiple values
pass-cli item update \
  --share-id "abc123def" \
  --item-id "item456" \
  --field "urls=https://newurl.com, https://secondnewurl.com"

Field value format:

Field values are specified using the field_name=field_value format:

  • Simple values: --field "password=mypassword"
  • Values with spaces: --field "title=My Account Title"
  • Values with special characters: --field "urls=https://example.com/path?query=value"
  • Values with equals signs: The first = separates the field name from the value

Output:

The command provides feedback on each field update:

Updated field: password
Updated field: username
Created new custom field: api_key
Item updated successfully: 2 field(s) updated, 1 custom field(s) created

delete

Delete an item.

pass-cli item delete --share-id SHARE_ID --item-id ITEM_ID

Options:

  • --share-id SHARE_ID - Share ID of the vault containing the item (required)
  • --item-id ITEM_ID - ID of the item to delete (required)

Examples:

# Delete an item
pass-cli item delete --share-id "abc123def" --item-id "item456"

Permanent deletion!

This permanently deletes the item. This action cannot be undone.

share

Share an item with another user.

pass-cli item share --share-id SHARE_ID --item-id ITEM_ID EMAIL [--role ROLE]

Options:

  • --share-id SHARE_ID - Share ID of the vault containing the item (required)
  • --item-id ITEM_ID - ID of the item to share (required)
  • EMAIL - Email address of the user to share with (required)
  • --role ROLE - Role to assign: viewer, editor, or manager (default: viewer)

Examples:

# Share item with viewer access
pass-cli item share --share-id "abc123def" --item-id "item456" colleague@company.com

# Share item with editor access  
pass-cli item share --share-id "abc123def" --item-id "item456" colleague@company.com --role editor

attachment

Manage item attachments.

pass-cli item attachment <ATTACHMENT_SUBCOMMAND>

attachment download

Download an attachment from an item.

pass-cli item attachment download [OPTIONS]

Examples:

# Download attachment (exact options depend on implementation)
pass-cli item attachment download --share-id "abc123def" --item-id "item456" --attachment-id "att789"

alias

Manage email aliases.

pass-cli item alias <ALIAS_SUBCOMMAND>

alias create

Create a new email alias.

pass-cli item alias create [OPTIONS]

Options:

  • --share-id SHARE_ID - Share ID of the vault where the alias will be created
  • --vault-name VAULT_NAME - Name of the vault where the alias will be created
  • --prefix PREFIX - Prefix of the alias. The resulting email will be [prefix].[suffix] (required)
  • --output FORMAT - Output format: human or json. Uses default format from settings if not specified.

Mutually exclusive options:

  • --share-id and --vault-name are mutually exclusive. You can provide one, or neither if a default vault is configured.

Examples:

# Create alias using default vault (if configured)
pass-cli item alias create --prefix "shopping"

# Create alias using share ID
pass-cli item alias create --share-id "abc123def" --prefix "newsletter"

# Create alias using vault name
pass-cli item alias create --vault-name "Personal" --prefix "work-signup"

# Create alias with JSON output
pass-cli item alias create --vault-name "Personal" --prefix "temp" --output json

Login template format

When using --get-template or --from-template, the JSON structure is:

{
  "title": "Item Title",
  "username": "optional_username",
  "email": "optional_email@example.com",
  "password": "optional_password",
  "urls": ["https://example.com", "https://app.example.com"]
}

totp

Generate TOTP codes for the fields of an item. If you have an item that has TOTP fields associated to it, you can get the values of the TOTPs by using item totp.

TOTP via secret references

You can also retrieve a TOTP code (or its underlying otpauth:// URI) directly through a secret reference by appending ?totp=code or ?totp=uri to any pass:// URI that points to a TOTP field. This works with item view, run, and inject. See Secret references: TOTP fields for details.

Options:

  • --share-id SHARE_ID: Share ID of the vault containing the item (optional if default vault is set and not using URI)
  • --vault-name VAULT_NAME: Name of the vault containing the item (optional if default vault is set and not using URI)
  • --item-id ITEM_ID: ID of the item
  • --item-title ITEM_TITLE: Title of the item
  • URI: Pass URI in format pass://SHARE_ID/ITEM_ID[/FIELD]
  • --field FIELD: Specific field to view
  • --output FORMAT: Output format: human or json. Uses default format from settings if not specified.

Mutually exclusive options:

  • --share-id and --vault-name are mutually exclusive. You can provide one, or neither if a default vault is configured and not using URI.
  • --item-id and --item-title are mutually exclusive. You must provide exactly one.
  • --share-id/--vault-name and --item-id/--item-title parameters and URI are mutually exclusive. You must provide either both parameters or a single secret reference.

Examples:

# Generate TOTP using default vault and format (if configured)
pass-cli item totp --item-title "WithTOTPs"

# Generate all TOTPs on a given item (Readable format)
pass-cli item totp "pass://TOTP export/WithTOTPs"
# TOTP 1: 343325
# TOTP 2: 068223
# totp: 639378

# Generate all TOTPs on a given item (JSON format)
pass-cli item totp "pass://TOTP export/WithTOTPs" --output=json
# {
#   "TOTP 2": "622653",
#   "TOTP 1": "119533",
#   "totp": "152470",
# }

# Generate the TOTP for a given item and field
pass-cli item totp "pass://TOTP export/WithTOTPs/TOTP 1"
# TOTP 1: 343325

# Generate the TOTP for a given item and field and get only the value
pass-cli item totp "pass://TOTP export/WithTOTPs/TOTP 1" --output=json | jq -r '."TOTP 1"'
# 474540

Password generation

Random passwords

Use --generate-password with optional settings:

  • Format: "length,uppercase,symbols"
  • Example: --generate-password="16,true,true" (16 chars, with uppercase and symbols)
  • Default: --generate-password (uses default settings)

Passphrases

Use --generate-passphrase with optional word count:

  • Format: "word_count"
  • Example: --generate-passphrase="5" (5-word passphrase)
  • Default: --generate-passphrase (uses default word count)

Examples

Complete item workflow

# Create a vault first
pass-cli vault create --name "Web Accounts"
SHARE_ID="new_vault_share_id"  # Get this from vault list

# Create a login item
pass-cli item create login \
  --share-id "$SHARE_ID" \
  --title "GitHub Account" \
  --username "developer123" \
  --generate-password \
  --url "https://github.com" \
  --url "https://github.com/login"

# List items to find the new item
pass-cli item list --share-id "$SHARE_ID"

# View the created item
ITEM_ID="new_item_id"  # Get this from item list
pass-cli item view --share-id "$SHARE_ID" --item-id "$ITEM_ID"

# Get just the password
pass-cli item view "pass://$SHARE_ID/$ITEM_ID/password"

Organize items in folders

# Create a folder and capture its ID
FOLDER_ID=$(pass-cli folder create --vault-name "Web Accounts" --name "Work")

# Create items directly inside the folder
pass-cli item create login \
  --vault-name "Web Accounts" \
  --title "Jira" \
  --username "developer123" \
  --generate-password \
  --folder-id "$FOLDER_ID"

pass-cli item create note \
  --vault-name "Web Accounts" \
  --title "Onboarding notes" \
  --note "VPN setup walkthrough" \
  --folder-id "$FOLDER_ID"

# Check where each item ended up
pass-cli item list --vault-name "Web Accounts"

Best practices

Item organization

  • Use descriptive titles that make items easy to find
  • Include relevant URLs for login items
  • Group related items in the same vault
  • Use --folder-id when creating items that belong together, and get the ID from pass-cli folder list
  • Relocate existing items with pass-cli item move --to-folder-id, and take them out of a folder with --to-share-root

Security

  • Use generated passwords when possible
  • Regularly update passwords for important accounts
  • Be cautious when sharing individual items

Templates

  • Use templates for consistent item creation
  • Validate template JSON before using them

Troubleshooting

Creation issues

  • Verify you have edit permissions for the target vault
  • Check that required fields are provided
  • Ensure JSON templates are valid

Access issues

  • Confirm you have access to the vault containing the item
  • Verify share IDs and item IDs are correct
  • Check that items haven't been deleted
  • vault - Manage vaults that contain items
  • folder - Manage the folders that group items inside a vault
  • password - Generate and analyze passwords
  • share - Manage item and vault shares