Building a command line application using Node.js - https://pusher.com/tutorials/node-command-line-app
Clone the project repository by running the command below if you use SSH
$ git clone [email protected]:ammezie/weatherCLI.git
If you use https, use this instead
$ git clone https://github.com/ammezie/weatherCLI.git
After cloning, run:
$ npm install
Create an account on APIXU to obtain your API key, and add it inside src/commands.js
:
// src/commands.js
const APIXU_KEY = "<YOUR APIXU KEY>";
Finally, run the command below to see the application usage menu:
$ node src/index.js --help
- Commander - The complete solution for Node.js command-line interfaces