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 with 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 with protonPassJSON which returns the structured
data the item holds. For example:
{{ (protonPassJSON "pass://$SHARE_ID/$ITEM_ID").item.content.content.key.password }}
The contents of attachments are available using the
protonPassAttachment template function, for example:
{{ protonPassAttachment "$SHARE_ID" "$ITEM_ID" "$ATTACHMENT_ID" }}