Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.18 KB

README.md

File metadata and controls

58 lines (42 loc) · 1.18 KB

This is a slidedeck built with reveal-md. You can view it as markdown or through reveal-md.

Install reveal-md

npm install -g reveal-md

Start Slide Deck

reveal-md Building-A-Node-CLI.md --theme moon

Some of the example commands

Setup

# change directory to the subdirectory wehre we built our example tool
cd thingifier
# install dependencies
npm install
# "globally" install the thingifier CLI
npm link

Supplying Command Line Arguments

thingifier --sean cool --ethan smart --aaron 2

Setting environment variables

export THINGIFIER_FOO=foo; export THINGIFIER_BAR__BAZ=1;

Overriding Environment-based Values with Command Line Arguments

# This assumes you have already run `export THINGIFIER_BAR__BAZ=1`
thingifier --sean cool --ethan smart --aaron 2 --bar.baz=2

npm run scripts

npm test

This will run the tape CLI at ./node_modules/.bin/tape.

npm run example

Take a look at all of the environment variables npm adds for you.