Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1.05 KB

File metadata and controls

55 lines (36 loc) · 1.05 KB

argparse-app

Build the password management CLI tool by using Python's built-in package: argparse.

Setup virtual environment

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.

How to use skcli?

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