A template repository for CLI tools based on Typescript and CommanderJs. Features
yarn start command with ts-nodepkg for Windows, Mac OS and linuxExample repo: https://github.com/lukasbach/json-extract-path
npm_token to allow NPM releasesv0.0.0 to automatically publish new releases.Install globally via
npm install -g {TOOLNAME}
or directly use via
npx {TOOLNAME}
You can also download a prebuilt binary and run that.
Usage:
Usage: npx {TOOLNAME} [options]
Options:
-V, --version output the version number
-s, --small small pizza size
-p, --pizza-type <type> flavour of pizza
-h, --help display help for command
yarn to install dependenciesyarn start to run the CLI script for debuggingyarn test to run testsyarn prettier:check to verify that your code is prettyyarn prettier:write to make your code prettyDon't manually publish the package to NPM! You can just tag
a commit with a new release tag (remember to bump the version
in package.json) and push the changes, a Github Action
will deploy the new version to NPM.