PasswdVault is a flexible, quick and secure CLI password manager that lets you save and retrieve your passwords locally
First of all you'll need to install Go
$ git clone https://github.com/MattRighetti/passwdvault.git
$ cd passwdvault
$ make installTo initialize the basic files that passwdvault needs you just need to run
$ passwdvault initwhere you would like to initialize your passwdvault database.
This command will create a file named .passwdvaultconfig in your $HOME directory and another folder called .passwdvaultdatabase in your current working directory.
When you want to save your first password you just need to run the create command with its flags -i and -p to respectively indicate the password identifier and its password, here's an example:
$ passwdvault create -i githubpass -p secretWhen you need a password that you stored the get command is all you're going to need, i.e. to get back my githubpass saved before I'll just need to run
$ passwdvault get githubpassWhat about deleting a password that I don't need anymore? The delete command does just that, to delete my githubpass
$ passwdvault delete githubpassLet's say that you forgot how a certain identifier was named, the list command will print out all the identifiers that you store in the database
$ passwdvault listThere may be some cases where you have a ton of passwords and you don't want to list all the password identifiers, but you just want to search for some that has a certain sub-string in it.
search is meant just for that, let's say that I have these passwords stored:
- githubpass
- server1pass
- awspass
- vs-code-accountpass
- some-random-pass
if I run
$ passwdvault search awsit will print out my awspass identifier
I'm not good at choosing secure and strong passwords, this is why I always try to use some password generator that will do it for me, in this case the generate command will do just that. Run
$ passwdvault generateto get a strong password back
Let's say that I moved my database folder from $HOME to $HOME/matt, if you run any command without changing the .passwdvaultconfig file you will get an error that tells you that the database cannot be found. If you want to specify the new path to the database you'll need to edit the database.path attribute in the .passwdvaultconfig file.
The config command has been created to ease that process, run
$ passwdvault config database.path $HOME/mattand the tool will automatically update that value for you.
initcreategetdeletelistsearchconfigversiongenerate
PasswdVault is powered by
- Please use Github issue tracker for filing bugs or feature requests.