| Crates.io | secrets-cli |
| lib.rs | secrets-cli |
| version | 0.6.0 |
| created_at | 2024-07-19 10:28:37.065475+00 |
| updated_at | 2024-12-26 21:29:30.602005+00 |
| description | A CLI for managing secrets |
| homepage | https://github.com/mpiorowski/secrets-cli |
| repository | https://github.com/mpiorowski/secrets-cli |
| max_upload_size | |
| id | 1308518 |
| size | 19,670 |
A simple tool that let's You easly manage, copy and use secrets/envs in Your terminal.
cargo install secrets-cli
Please make sure that ~/.cargo/bin is in your PATH.
First create a ~/secrets/var file with the following content:
API_KEY=123456
SECRET=abcdef
Then by running the following command:
sec copy
You will copy the content of the ~/secrets/var file into the clipboard:
API_KEY=123 \
SECRET=abc \
Then create next file ~/secrets/file_name with the following:
API_KEY=456
SECRET=def
And by running the following command:
sec show file_name
This will show the content of the file ~/secrets/file_name in your terminal as:
API_KEY=456 \
SECRET=def \
Special command for those using fish shell:
sec fish file_name
This will show the content of the file ~/secrets/file_name in your terminal as:
set -Ux API_KEY 456; \
set -Ux SECRET def; \
Set up a secrets folder and a clipboard command. Default value is ~/secrets and xclip respectively.
sec set [path_to_your_secrets_folder] [clipboard_command]
sec copy [file_name]
file_name - selected secrets to copy. If not provided, the var file will be used.sec show [file_name]
file_name - selected secrets to show. If not provided, the var file will be used.sec fish [file_name]
file_name - selected secrets to show. If not provided, the var file will be used.sec config
Print the current configuration.