@crissxross/create-node-cli
v1.0.0
Published
CLI to create Node.js CLIs (ESM version), based on create-node-cli by Ahmad Awais
Downloads
3
Maintainers
Readme
create-node-cli
CLI to create Node.js CLI apps. This is an ESM version, based on create-node-cli from Node CLI Automation course by Ahmad Awais.
- Quickly scaffold a Node.js CLI
- Template & custom code generation
- Automatic argument parsing, help text, and welcome message
- History to maintain the last input data like the author
name
,email
, andURL
Install
# Recommended
npx @crissxross/create-node-cli
# OR an alternative global install
npm install -g @crissxross/create-node-cli
Usage
- Run the CLI using
npx @crissxross/create-node-cli
# OR for global install
create-node-cli
# OR alias for global install
ncli
Then answer the following questions to generate a Node.js CLI.
CLI name?
CLI command?
CLI description?
CLI version?
CLI license?
CLI author name?
CLI author email?
CLI author URL?
BASIC USAGE
create-node-cli <command> [option]
COMMANDS
help Print help info
OPTIONS
-c, --clear Clear the console Default: true
-d, --debug Print debug info Default: false
-v, --version Print CLI version Default: false