4 releases
0.1.3 | Nov 16, 2023 |
---|---|
0.1.2 | Nov 14, 2023 |
0.1.1 | Nov 14, 2023 |
0.1.0 | Nov 14, 2023 |
#2081 in Command line utilities
30KB
570 lines
keybin
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.
Installation
To install keybin
, use Cargo:
$ cargo install keybin
Initial Setup
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.
Usage
Getting Help
To access command-specific help or general information:
$ keybin help [COMMAND]
Replace [COMMAND]
with the command you need help with.
Adding a Secret
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]
Getting a Secret
Retrieve a secret from the vault.
$ keybin get [NAME]
This command will copy the value associated with the specified secret to your clipboard.
Listing All Secrets
List all secrets stored in the vault.
$ keybin list
Deleting a Secret
Delete a specific secret from the vault.
$ keybin delete [NAME]
Updating a Secret
Update the information of a stored secret.
$ keybin update [NAME]
Prompts will allow modifications to the secret's details.
Crate Publish
This tool has been published on crate marketplace here: keybin
Dependencies
~29–44MB
~744K SLoC