Licence
MIT
Version
5.1.0-25
Deps
5
Size
69 kB
Vulns
0
Weekly
205
@fgv/ks
Command-line tool for creating, managing, and exporting ts-extras keystores.
Features
- Create a keystore at
~/.fgv-ksby default - Change the keystore password
- Add, list, read, and remove secrets without putting them on the command line
- Export secrets through a template rendered to a POSIX shell snippet
- Prompt interactively for missing secrets and optionally persist them
- Copy rendered output to the clipboard
Usage
ks --helpSelf-contained help topics
ks help
ks help commands
ks help password
ks help templateInitialize a keystore
ks initPut a secret from stdin or a file
printf '%s' "$XAI_API_KEY" | ks put xai --stdin
ks put xai --file ./xai.txtExport secrets into shell variables
eval "$(ks export --template-file ./keystore.template.sh)"Start a shell session with the keystore password
eval "$(ks session --var FGV_KS_PASSWORD)"Copy rendered output to the clipboard
ks export --template-string 'export XAI_API_KEY={{xai}}' --clipboard