EverythingStays / stay-cli

CLI for installing and publishing packages to IPFS easily
http://everythingstays.com/
MIT License
19 stars 1 forks source link

everythingstays-cli

CLI for installing and publishing packages to IPFS easily

Requirements

NOTE: This is the minimum requirements that has been tested, it might work on lower versions. If it does/does not, please let us know.

Installation

npm install -g stay-cli

Now stay is in your PATH

Commands

stay init

Installs shell-scripts in your repository and package.json to run on npm install and npm publish

stay deinit

Removes the shell-scripts

stay install

Install dependencies from the esDependencies key in the package.json

stay add module@version

Adds a module to your package.json

stay connect multiaddr

Adds a node that will pin your published module when running npm publish.

If you have ipfs daemon running on a instance, you can run ipfs id to get a list of addresses that the daemon is listening to.

Use a public address like this: stay connect /ip4/10.13.0.5/tcp/4001/ipfs/QmPimdxPFy5K1VdCVfe8JsUd6DpdmKQDTdYCmCfReMQ7YY

How to publish packages?

How to install packages?