keybin
is a command-line interface tool built with Rust and CLAP for secure management of API and secret keys using the Panega Vault service.
To install keybin
, use Cargo:
$ cargo install keybin
Before using keybin
, you need to perform the initial setup to configure your Panega Vault API token.
-
Get Panega Vault API Token:
- Go to Panega Vault.
- Obtain your API token from the dashboard.
-
Create .env File:
- Create a new file named
.env
in the root directory of your project. - Open the
.env
file in a text editor.
- Create a new file named
-
Add API Token to .env:
-
Inside the
.env
file, add the following line, replacingYOUR_API_TOKEN
with your actual Panega Vault API token:PANEGA_VAULT_API_TOKEN=YOUR_API_TOKEN
-
Save and close the
.env
file.
-
Now, your keybin
tool is configured with the Panega Vault API token, and you can start using the commands described below.
To access command-specific help or general information:
$ keybin help [COMMAND]
Replace [COMMAND]
with the command you need help with.
Add a secret to the vault.
$ keybin add [NAME]
Prompts:
- Enter the name/key for this secret: [user input]
- Enter the value for this secret: [user input]
Retrieve a secret from the vault.
$ keybin get [NAME]
This command will copy the value associated with the specified secret to your clipboard.
List all secrets stored in the vault.
$ keybin list
Delete a specific secret from the vault.
$ keybin delete [NAME]
Update the information of a stored secret.
$ keybin update [NAME]
Prompts will allow modifications to the secret's details.
This tool has been published on crate marketplace here: keybin