@atao60/dummy-cli-starter-kit v0.0.3
A Dummy CLI Starter Kit
A CLI to bootstrap new projects. It offers the choice between three templates:
- Javascript
- Typescript
- dummy-startup-kit
The two first ones are embedded: they can be installed only with the the stater kit.
The last one is a standalone boilerplate. It can also be installed with git clone.
None of them are production ready. They are just proof of concept of CLI npm package to create new projects.
usage
You can install it as a global command:
# Using npm:
npm install --global dummy-cli-starter-kit
# Using yarn:
yarn global add dummy-cli-starter-kit
# Afterwards you will be able to consume it:
dummy-cli-starter-kitOr as project specific dependencies:
mkdir -pv myprojectfolder && cd myprojectfolder
# Using npm:
npm install dummy-cli-starter-kit --save-dev
# Using yarn:
yarn add dummy-cli-starter-kit --dev
# Afterwards the command will be in
./node_modules/.bin/create-flex-plugin
# Or via npx using npm:
npx dummy-cli-starter-kit
# And via yarn:
yarn dummy-cli-starter-kitIn fact npx supports executing CLIs even when they are not installed yet. Simply run npx create-flex-plugin and it will download it into a cache if it can't find a locally- or globally-installed version.
Lastly, ie since npm version 6.1, npm init and yarn supports a way for you to bootstrap projects using CLIs that are named create-*. As an example, for our create-flex-plugin, really all we have to call is:
# Using Node.js
npm init flex-plugin
# Using Yarn:
yarn create flex-pluginCredits
- How to build a CLI with Node.js, Dominik Kundel, 2019-03-19