DEV Community

Drozerah
Drozerah

Posted on

CLI Starter says Hello World!

To the community,

Hi there! This short message to let you know cli-starter boilerplate is born this sunny day!

This material comes with the minimum settings and files that are required to start the creation of a new CLI utility with a Node.js and NPM environment...

Give it a try!

Structure

├───bin/
│   └───cli.js
├───.gitignore
├───licence
├───package-lock.json
├───package.json
└───README.md
Enter fullscreen mode Exit fullscreen mode

Install

$ git clone https://github.com/Drozerah/cli-starter.git
Enter fullscreen mode Exit fullscreen mode

Then install globally:

$ npm install -g
Enter fullscreen mode Exit fullscreen mode

Once you are done with this step, you need to:

$ npm link
Enter fullscreen mode Exit fullscreen mode

This command will register your CLI project locally so you are now able to run the command below anywhere into the terminal:

$ cli-starter
Enter fullscreen mode Exit fullscreen mode

This command will prompt a message into the terminal meaning that everything is fine with the installation of cli-starter:

cli starter

That's it!

Next step?

Fork it & Be creative!

Thanks for reading!

See you next time!

Drozerah

Top comments (0)