Skip to main content

KeeCLI is a cli to the password manager KeePass

Project description

GitHub release (with filter) GitHub Workflow Status (with event)

KeeCLI

KeeCLI is a command line interface to interact with KeePass databases. It takes a lot of inspiration from pass, so if you used it in the past you will find a lot of similarities with KeeCLI.

Installation

Using pip:

pip install keecli

From source:

git clone https://github.com/leoperard/keecli
cd keecli
pip install poetry # if not already present
poetry install

Configuration

KeeCLI expects 2 environment variables for the database file and the password associated.

export KEECLI_DB="/path/to/my/db.kdbx"
export KEECLI_PASSWORD="higly-secured-password"

Note that KeeCLI does not store your password. It only read it from the environment variable to open the database.

Commands

Get an entry

Get all the details of an entry in json format. If multiple entries are found, the result will be a list of entries. You can reduce the scope of the search by specifying a group. All names are fuzzy matched. By default, the password will be displayed with * characters, you can use the --password option to print it in plain text.

keecli get --help
Usage: keecli get [OPTIONS] NAME

  Get details for an entry.

Options:
  -g, --group TEXT            The group where to look for the entry.
  --password / --no-password  Show the password in plain text (default:
                              false).
  --help                      Show this message and exit.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

keecli-0.2.2.tar.gz (15.5 kB view hashes)

Uploaded Source

Built Distribution

keecli-0.2.2-py3-none-any.whl (16.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page