view command
View an item's details.
pass-cli item view [OPTIONS] [URI]
Options:
--share-id SHARE_ID- Share ID of the vault containing the item--vault-name VAULT_NAME- Name of the vault containing the item--item-id ITEM_ID- ID of the item to update--item-title ITEM_TITLE- Title of the item to updateURI- Secret reference in as specified in here--output FORMAT- Output format:human(default) orjson
Mutually exclusive options:
--share-idand--vault-nameare mutually exclusive. You must provide exactly one.--item-idand--item-titleare mutually exclusive. You must provide exactly one.--share-id/--vault-nameand--item-id/--item-titleparameters andURIare mutually exclusive. You must provide either both parameters or a single secret reference.
Examples:
# View item by IDs
pass-cli item view --share-id "abc123def" --item-id "item456"
# View item by vault name and item title
pass-cli item view --vault-name "MyVault" --item-title "MyItem"
# View item using Pass URI
pass-cli item view "pass://abc123def/item456"
# 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