Encrypt and manage your secrets from the terminal.
Prerequisite: Node.js v18+
$ npm i -g @fusionfroze/vaultTo initialize the vault, run -
$ vault initYou will set a master password here for the vault.
(Important: Do not forget this password. You will need this password to make new entries, retrieve them, remove them, change the password itself or reset the entire vault.)
To add a new entry, run -
$ vault addYou will need to enter the vault's master password to proceed. After that the following input interface will open -
$ vault add
✔ Enter vault's master password: ******
✔ Identifier of the new password/secret: new_password
✔ Password/Secret: ************
Your password has been added to the vault
Each entry has an Identifier that uniquely identifies it. Here, provide a unique identifier and the password/secret to be saved to add it to the vault.
To retrieve a password/secret, run -
$ vault copy <identifier>The stored password/secret will be copied directly to your clipboard. Example usage:
$ vault copy new_passwordTo list all the identifiers of respective entries stored in the vault, run -
$ vault lsThis command will not need the master password.
To remove a specific entry from the vault, run -
$ vault remove <identifier>You will be asked for confirmation once. Once executed, this action cannot be undone.
Example usage:
$ vault remove new_passwordTo change the master password of the vault, run -
$ vault passwdTo reset the vault, run -
$ vault resetYou will be asked for confirmation before the vault is reset.
(Important: This will delete everything in the vault. Make sure you are not deleting anything important before running this command.)
After resetting the vault, run vault init to set it up again.