A CLI tool for checking your Presto card balance.
I wrote about this tool on my blog: https://blog.cedricblondeau.com/2017/12/23/check-your-presto-card-balance-in-a-terminal-using-presto-card-cli/
yarn global add presto-card-cli
Requires NodeJS 8+.
The tool requires the user to set up credentials before accessing the balance.
# Set credentials
presto-card set-credentials
? Enter a Presto account username: <username>
? Enter the password for this Presto account: <password>
# Print balance for a given user, username is a required argument
presto-card balance <username>
This tool uses node-keytar to store credentials. On macOS the passwords are managed by the Keychain, on Linux they are managed by the Secret Service API/libsecret, and on Windows they are managed by Credential Vault.
This tool uses presto-card-js as a back end.
This may happen when using an old version of NodeJS. This tool requires NodeJS 8+.
This may happen if presto-card-cli
has been installed with a different version of NodeJS than the current one. Re-installing may help.
Not at this time. But you can set up an alias. For example: alias pb='presto-card balance supercat'
Not at this time.
GNU Affero General Public License v3.0