Secure ENV CLI
CLI for running scripts using encrypted environment variables
Usage
yarn add @windingtree/secure-env-cli
yarn link
ENV encryption
npx senv --encrypt ./path/to/raw/env/file
You will be prompted for a password. An encrypted file will be saved on the same path with .senv
extension.
Decryption of encrypted file
senv --decrypt ./path/to/encrypted/file.senv
You will be prompted for a password. A decrypted file will be saved on the same path with .env
extension.
Command execution
senv ./path/to/encrypted/file.senv "./path/to/command/or/script --param1 --param2"
Development environment
Setup
yarn install
Build
yarn build
Tests
yarn test
yarn test:coverage