Installation

Dependencies

You need to install GPG if you don't have it already and need to generate at least a key using:

gpg --gen-key

This will allow cpm to encrypt and decrypt your password database. Don't fear from specifying a passphrase for your key: you'll only have to enter it once after login (thanks to gpg-agent), and this way an attacker can't get access to your passwords, even if they steal both your private key & your cpm database.

Build from source

You can install cpm using:

go install vmiklos.hu/go/cpm@latest

If $(go env GOPATH)/bin is not in your PATH yet, you may want to add it, so typing cpm will invoke the installed executable.

Optional shell completion

Optionally, you can install shell completion for cpm, example for bash:

cpm completion bash > ~/.local/share/bash-completion/completions/cpm

You can test if it works in a new shell using:

cpm <tab><tab>