This is my personal CLI which i have been using for months. I have removed most of things and shared my CLI as a template to build your own. Now you can do whatever you want with the code. This is build in Node using Meow, Chalk, Inquirerjs, unirest.
Makesure node or iojs, npm are installed in your PC. Move to the repository folder through terminal Run following command
$ npm install . -g
Please note that first line of file adi.js
#!/usr/bin/env iojs
should be corrected to following if you are using node rather iojs
#!/usr/bin/env node
Following command display the current forecast of Hyderabad, India.(Will soon move it into a setup)
$ adi climate
If you run adi
with any words, it will display information about same
$ adi Java script
You can add as many commands as you want.
adi hello
adi cricket
adi climate
adi askme
adi **
** provide any string, will display DuckDuckGo results
Eg: adi java script
You should expect mostly good support for the CLI below.
- Mac OS:
- Terminal.app
- iTerm
- Windows:
- cmd.exe
- Powershell
- Cygwin
- Ubuntu:
- Terminal
- Config setup
- There are more commands like
live f1
,live football
,mytwitter
,hn
(Hacker News). Will push them by replacing personal API keys.