npmupdater-cli
The command line version of the npmupdater module.
install
Install the normal way:
npm install -g npmupdater-cli
using
You'll need to be logged in to npm from the command line. (Do this by running the command
npm login
.)
update one module
To update a single module, run npmupdater MODULE
, e.g. for my-sweet-module
, run the following:
npmupdater my-sweet-module
update all modules
To update all modules owned by your logged in user:
npmupdater --all
github rate limits
Because the updater checks with Github, and Github rate-limits to 60 requests per hour for unauthenticated requests, you might find it handy to use authentication to remove the rate limit.
The npmupdater uses the github module, which uses one of the following three auth objects:
// basic login type: "basic" username: username password: password// oauth2 type: "oauth" token: token// oauth2 key/secret type: "oauth" key: "clientID" secret: "clientSecret"
To use one of these, pass in a JSON filename as one of the parameters when you use npmupdater. E.g., either one of these will work:
npmupdater --all file.jsonnpmupdater my-module file.jsonnpmupdater file.json my-module
(Remember that if the path to the JSON file has spaces, it needs to be escaped or quoted.)
The JSON object needs to be one of the above three objects.