Skip to content

Proton Pass

chezmoi includes support for Proton Pass using the Proton Pass CLI.

Log in to Proton Pass using

pass-cli login

The output of pass-cli item view pass://$SHARE_ID/$ITEM_ID/$FIELD is available as the protonPass template function, for example:

{{ protonPass "pass://$SHARE_ID/$ITEM_ID/$FIELD" }}

The output of pass-cli item view --output=json pass://$SHARE_ID/$ITEM_ID is available as protonPassJSON and returns the structured data the item holds. For example:

{{ (protonPassJSON "pass://$SHARE_ID/$ITEM_ID").item.content.content.key.password }}