Skip to content

windingtree/secure-env-cli

Repository files navigation

Secure ENV CLI

No more accidental key leaks. Use encrypted environment variables when running your scripts.

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

About

No more accidental key leaks. Use encrypted environment variables when running your scripts.

Resources

License

Stars

Watchers

Forks

Packages

No packages published