CLI for interacting with keepass-xc. The word ngen means owner in Mapudungún.
Copy config-example.yml
to config.yml
. Modify the db
line to point to your
file.
db: '/path/to/file.kdbx'
Assumming that you have your Keepassxc DB in ~/keepass/example.kdbx
, do
the following:
$ ngen --help $ ngen list $ ngen copy --key Some/Secret $ ngen copy -k Some/Secret $ ngen search --term Secret $ ngen search -t Secret
Also, default DB, defined in config.yaml
can be overwritten as follows:
$ ngen list -d ~/keepass/example.kdbx $ ngen list --db ~/keepass/example.kdbx $ ngen copy -d ~/keepass/example.kdbx -k Some/Secret $ ngen copy --db ~/keepass/example.kdbx --key Some/Secret $ ngen search -d ~/keepass/example.kdbx Secret $ ngen search --db ~/keepass/example.kdbx Secret
The above will do the following:
- Print help
- List the secrets in the DB defined
- Copy the secret located in
Some/Secret
using the short format - Same above, but using long format
- Search for a term
Search feature:
- Is not case sensitive. Searching for 'Secret' will return the same as searching for 'secret'
- Includes substrings. Searching for 'Secre' will include
- Ensure dependencies are installed.
- Read keepass-xc DB from config.
- Include wheel installer.
- Read DB definition from config file.