./pm [flags] read or write data
sync: set PM_SYNC_REMOTE_URL env var
flags:
-d --data data to encrypt
-df --data-file data to encrypt from file
-l --label label data / find by label
-dl --delete-label delete label and its data
-gp --generate-password [N] put random data
-c --copy [label] win32: copy to clipboard, posix: pipe with clip tools
-k --key key
-kf --key-file key file path
-i --input encrypted file path
-o --output decrypted file path
-b --binary binary mode
-b64enc --base64-encode [str] base64 encode string to stdout, optional key
-b64dec --base64-decode [str] base64 decode string to stdout, optional key
-v --version display version
-h --help display help
sh build_console.sh
echo "secret_key" > key.txt
./pm -kf key.txt -gp -c password_name | xclip
./pm -kf key.txt -c pass | xclip
When searching for passwords by label you can also provide a Glob pattern
./pm -kf key.txt -c '?ass*' | xclip
./pm -kf key.txt -i binary -o binary.enc -b
./pm -kf key.txt -i binary.enc -o binary.dec -b
./pm -kf key.txt
./pm -b64enc "string" [-kf key.txt]
Wildcard | Description | Example | Matches | Does not match |
---|---|---|---|---|
* |
matches any number of any characters including none | Law* |
Law , Laws , or Lawyer |
GrokLaw , La , or aw |
? |
matches any single character | ?at |
Cat , cat , Bat or bat |
at |
[abc] |
matches one character given in the bracket | [CB]at |
Cat or Bat |
cat , bat or CBat |
Stolen and adapted from Wikipedia. Please note that the [a-z]
syntax mentioned in the original Wikipedia article is NOT supported right now.