0.2.1 • Published 9 years ago
@temando/npm-register v0.2.1
NPM Register
Simple CLI tool for getting a token into npm for auth.
Install
$ npm install -g @temando/npm-registerUsage
$ npm-register --help
Usage: npm-register [options] [token]
Options:
-h, --help output usage information
-V, --version output the version number
-r, --registry <registry> npm registry the token should work with (default: https://registry.npmjs.org)
-s, --scope <scope> scope the token should work against
$ npm-unregister --help
Usage: npm-unregister [options]
Options:
-h, --help output usage information
-V, --version output the version number
-r, --registry <registry> npm registry to remove registered tokens
-s, --scope <scope> scope to removeExamples
# With defaults
$ npm-register ${NPM_TOKEN}
# With private scope
$ npm-register ${NPM_TOKEN} -s @hackmeinc
# With scope, and non standard registry
$ npm-register ${NPM_TOKEN} -s @hackmeinc -r https://npm.hackme.inc