@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

npm install -g cli-test

#5 Run with clinei

cli-test help

Arth Friend, Enjoy with clinei 😊

Readme

Keywords

none

Package Sidebar

Install

npm i @iarth/spider

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

9.74 kB

Total Files

5

Last publish

Collaborators

  • iarth