CLI for installing and publishing packages to IPFS easily
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.
npm install -g stay-cli
Now stay
is in your PATH
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
stay init
in your repositorynpm publish
stay init
in your repositorydependencies
from package.json
to esDependencies
in the same file, replacing the version with the hash from npm publish
in the dependency publishstay install