Build the password management CLI tool by using Python's built-in package: argparse
.
Create a virtual environment,
$ python -m venv .venv
The activate this virtual environment,
$ source .venv/bin/activate
Clone this repo and enter in the directory argparse-app
,
$ cd argparse-app
Install this CLI tool editabily,
$ pip install -e .
This would install the safekey
package with sk
command.
First, make sure you have the CLI tool installed correctly, using --help
to validate the installation.
$ skcli --help
usage: skcli [-h] {add,get,update,remove,list} ...
SafeKey CLI Tool
options:
-h, --help show this help message and exit
subcommands:
{add,get,update,remove,list}
add Add a new credential
get Retrieve a password
update Update a password
remove Remove a password
list List all passwords of applications