Back to Chezmoi

Proton Pass

assets/chezmoi.io/docs/user-guide/password-managers/proton-pass.md

2.70.2712 B
Original Source

Proton Pass

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

Log in to Proton Pass using

shell
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:

text
{{ 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:

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