assert-dotenv-cli
loads and asserts environment settings from dotenv files prior to executing CLI commands
- See
assert-dotenv
for more information about the mechanics and reasoning behind this.
Install
$ npm install --global assert-dotenv-cli
Usage
$ assert-dotenv --help Usage $ assert-dotenv [options] <command with arguments> Options --dotenv-file <file> dotenv file to load settings --assert-file <file> assert file to test settings --help shows usage help
Simple Demo
-
~/app/.env (file contents)
FTW=For The Win!!! -
~/app/assert.env (file contents)
FTW -
Examples
$ cd ~/app# first, without using assert-dotenv-cli$ env | grep FTW## ^ nada# then, with assert-dotenv-cli$ assert-dotenv env | grep FTW# FTW=For The Win!!!# ^ tada
License
ISC © Buster Collings