ncli-archetype

3.1.3 • Public • Published

ncli-archetype

stable npm version Build Status Coveralls

About

Project archetype for Command Line tools using Node.js

It provides only one simple command, that is: echo, that echoes back it s only one parameter:

    ncli-archetype echo -t Hi

Installation

Run the install command:

npm install -g ncli-archetype

Check if ncli-archetype is properly installed:

$ ncli-archetype --help

Get Help

To learn more about the tool visit the homepage.

Generate new CLI tool from this archetype

This project can be used to generate a new CLI project too, using the kickoff utility.

In order to generate a new CLI project, do the following:

  1. Install the kickoff utility, if you have not installed yet:
    npm install -g kickoff
  1. Create a new CLI project:
    kickoff -s tombenke/ncli-archetype -d new-cli-app
  1. Finish the configuration of the new project, test and build it:
    cd new-cli-app
    sh ./.kickoff.sh
    npm install
    npm run test
    npm run build
  1. Check if it works properly:
    node dist/app.js echo --text Hi

You should see something like this:

    info: echo.execute => Hi
  1. Now the project is ready, so you can extend it, according to your needs.

References

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.1.30latest

Version History

VersionDownloads (Last 7 Days)Published
3.1.30
3.1.20

Package Sidebar

Install

npm i ncli-archetype

Weekly Downloads

0

Version

3.1.3

License

MIT

Unpacked Size

1.81 MB

Total Files

71

Last publish

Collaborators

  • tombenke