node-cred-cli
v1.0.2
Published
after cd in root:
Downloads
1
Readme
after cd in root:
- npm init -y
- npm i commander chalk (commander for cli, chalk for cli UI [optional])
- add index.js in root
- for linux: chmod +x index.js, for windows: skip step 4
- add bin { "cliName":"pathToIndex.js"}
- npm link (makes our cli globally accessible)
- cliName --name YourName
- to publish: npm login
- npm publish, the cli is now available globally
- to test by installation, firstly do: npm unlink -g cliName
- then do npm i -g cliName
- try testing, if it works, you can safely uninstall using npm uninstall cliName
- after making changes, you can repeat all from step 8, but make sure to change version from package.json
