@iarth/spider
1.0.0 • Public • Published Your First CLI Program
First steps
#1 ADD bin to package.json
{
"name": "cli-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"bin": {
"cli-test": "index.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"clinei": "^0.0.2"
}
}
#2 ADD !/usr/bin/env node to index.js on top
#!/usr/bin/env node
//...
#3 publish to npm
Warn this is a publish public
package
npm publish --access public
#4 Install
#5 Run with clinei
Arth Friend, Enjoy with clinei 😊
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads