oclip-example
This is a basic sample CLI built with oclip. This is a template repository so click "Use this template" above to start a new CLI with this as a base.
Development
To run the CLI in development, run npx ts-node src/cli COMMAND
.
Release/Production
TypeScript will automatically build js output files and place them in ./lib
. This is the directory used when releasing a CLI.
Ensure that the CLI builds correctly by packing locally first:
$ npm pack
$ tar -xvzf oclif-example-*.tgx
$ ./package/bin/run serve
The ./bin/run
script will be automatically symlinked when users install your CLI.
To cut a release to npm just use npm publish
.