1.0.0 • Published 3 years ago

@crissxross/create-node-cli v1.0.0

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

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, and URL

Install

# Recommended
npx @crissxross/create-node-cli

# OR an alternative global install
npm install -g @crissxross/create-node-cli

Usage

  1. 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