This project is deprecated, use the official yopass-cli.
Command line interface for yopass.
Node.js - Install Node.js and the npm package manager.
Install yopass-cli using npm.
npm install -g yopass-cli
If you are managing your own yopass instance, you need to set the yopass API and UI URLs as environment variables. If they have the same hostname, exporting the API URL will be enough. yopass-cli uses https://yopass.se by default.
export YOPASS_API_URL="https://api.foo.net"
export YOPASS_UI_URL="https://ui.foo.net"
Encrypt your secret using encrypt
command. You can specify the secret message as an argument or pass the value from stdin.
yopass-cli encrypt secret
cat foo.txt | yopass-cli encrypt
Decrypt your message using decrypt
command.
yopass-cli decrypt d20ab41e-d8e2-4db4-a920-5d82d8c53f8c xQjsGdelnIv53AE0
For further information about commands and options use --help or -h option.
yopass-cli -h
yopass-cli encrypt secret [options]
Options:
--version Show version number [boolean]
--help Show help [boolean]
--expiration, -e Specify expiration time
[choices: "h", "d", "w"] [default: "h"]
--preserve-clipboard, -p Preserve clipboard [boolean] [default: false]
--one-time, -o Specify one-time download [boolean] [default: true]
cat bar.txt | yopass-cli encrypt -e=w Encrypt content of bar.txt, set expiration time to one week, copy one-click link to clipboard
yopass-cli encrypt 'foo bar' -p Encrypt given message and preserve clipboard
yopass-cli decrypt uniqueIdentifier decryptionKey
This project is licensed under the MIT License - see the LICENSE file for details