otp-cli is a command line tool for speeding up interaction with OTP banking, designed to be installed per-user, and invoked per-shell. otp-bank works on any POSIX-compliant shell (sh, dash, ksh, zsh, bash), tested on macOS but you should be able to use it on windows/ linux if POSIX-compliant shell, "curl" and "grep" are installed.
To install or update otp-cli, you should run the [install script][2]. To do that, you may either download and run the script manually, or use the following cURL or Wget command:
curl -o- https://raw.githubusercontent.com/AndreyNikolayev/otp-cli/master/install.sh | bashwget -qO- https://raw.githubusercontent.com/AndreyNikolayev/otp-cli/master/install.sh | bashRunning either of the above commands downloads a script and runs it. The script clones the nvm repository to ~/.otp-bank, and attempts to add the source lines from the snippet below to the correct profile file (~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc).
alias otp="sh $HOME/.otp-cli/otp.sh"Use next command for the first setup or the update of the configuration
otp initAfter that you will be prompted to provide all the login details for the application. Try any of the next operations in order to check whether cli is configured correctly. Otherwise, retry the init command
otp balanceotp 2021/3In the example above taxes will be calculated for the 3rd quarter of the 2021 year along with the income and tax for the all 3 quarters together.
If you are not longer interested in using the program, use next command to wipe out all stored information
rm -rf ~/.otp-cli