Ylva manual page


ylva – command line password manager




Ylva is a command line password manager program for Unix like operating systems.


-i, –init <path>

Initialize new database

-E, –encrypt

Encrypt current database

-D, –decrypt <path>

Decrypt database

-c, –copy <id>

Duplicate an entry

-a, –add

Add new entry

-p, –show-db-path

Show current database path

-u, –use-db <path>

Switch using another database

-r, –remove <id>

Remove entry pointed by id

-f, –find <search>

Search for entries

-F, –regex <search>

Search for entries with regular expressions

-e, –edit <id>

Edit entry pointed by id

-f, –find <search>

Search database

-l, –list-entry <id>

List entry pointed by id

-t, –show-latest <count>

Show latest entries

-A, –list-all

Show database statuses

-v, –version

Show program version

-g, –gen-password <length>

Generate password

-q, –quick <search>

This is the same as running –show-passwords -f

-h, –help

Show short help and exit



Automatically encrypt after exit


Show passwords in listings


–force only works with –init option


Create a new database:   ylva –init “/path/to/file.db”

Open and decrypt database:   ylva –decrypt “/path/to/existing/file.db”

Close and encrypt database:   ylva –encrypt

Ylva knows what database is currently active and encrypts it. Encrypting will ask you to type a master passphrase which is used for encryption.

Add an entry to an open database:   ylva –add

If you want to export all entries to a file:   ylva –show-passwords -A > file.txt

To show latest 10 entries:   ylva –show-latest 10


Ylva supports colored output. To use colors, set an environment variable YLVA_COLOR with one of the following value: BLUE, RED, GREEN, YELLOW, MAGENTA, CYAN or WHITE.


Ylva does not have a concept of “change the master password”. When you encrypt an open database using –encrypt you can type a master password. This password is then required to decrypt the database. You can change the master password everytime when you encrypt the database, if you want to.




Written by Niko Rosvall.


Copyright (C) 2019-2020

Released under MIT license.