Packages
For CLI's, Libraries, Plugins, etc, you would publish these to NPM so othere devs can install it. The NPM CLI makes this easy. Let's take our CLI that we created and publish it.
First thing is to make sure you have a unique package name in the name field of package.json. NPM will let you know when you try to publish. Next, create a NPM account. Once you've done that, you need to login to NPM from your terminal with
npm login
We're now ready to publish. Just run:
npm publish
And that's it. Your CLI can now be installed with npm install [name].