0.8.2 • Published 5 months ago

iim v0.8.2

Weekly downloads
3
License
Apache-2.0 OR MIT
Repository
github
Last release
5 months ago

iim

https://youtu.be/C7A3-ycCRWU

codecov CI

IPFS install manager

About

Example - Use the latest version of Kubo

$ iim use kubo
✔ selected kubo version 0.24.0
✔ installed kubo 0.24.0
✔ installed binary at /Users/alan/.iim/dists/kubo@0.24.0/ipfs
✔ initialized IPFS at /Users/alan/.iim/kubo@0.24.0
✔ configured IPFS
✔ symlinked /Users/alan/.iim/dists/kubo@0.24.0/ipfs -> /Users/alan/.iim/dists/current
✔ symlinked /Users/alan/.iim/dists/kubo@0.24.0/ipfs -> /usr/local/bin/ipfs
🚀 IPFS is ready to use

$ ipfs version
kubo version: 0.24.0

Example - Use Kubo at version 0.23.0

$ iim use kubo 0.23
✔ selected kubo version 0.23.0
✔ installed kubo 0.23.0
✔ installed binary at /Users/alan/.iim/dists/kubo@0.23.0/ipfs
✔ initialized IPFS at /Users/alan/.iim/kubo@0.23.0
✔ configured IPFS
✔ symlinked /Users/alan/.iim/dists/kubo@0.23.0/ipfs -> /Users/alan/.iim/dists/current
✔ symlinked /Users/alan/.iim/dists/kubo@0.23.0/ipfs -> /usr/local/bin/ipfs
🚀 IPFS is ready to use

$ ipfs version
kubo version: 0.24.0

How does it work?

A new repo is created and used for each implementation/version combination at ~/.iim/kubo@0.24.0, for example.

Adds a symlink at /usr/local/bin/ipfs that points to a script that runs IPFS with IPFS_PATH set to ~/.iim/kubo@0.24.0.

IPFS is installed to ~/.iim/dists/kubo@0.24.0/node_modules/ipfs or ~/.iim/dists/go-ipfs@0.4.18/node_modules/go-ipfs-dep for example.

Common issues

Failed to symlink

Looks like this:

$ iim use kubo
✔ selected kubo version 0.4.18
✔ installed kubo 0.4.18
✔ installed binary at /home/dave/.iim/dists/kubo@0.4.18/ipfs
✔ initialized IPFS at /home/dave/.iim/kubo@0.4.18
✔ symlinked /home/dave/.iim/dists/kubo@0.4.18/ipfs -> /home/dave/.iim/dists/current
✖ failed to symlink /home/dave/.iim/dists/kubo@0.4.18/ipfs -> /usr/local/bin/ipfs
💥 failed to link binary at /usr/local/bin/ipfs, try running sudo iim link

Don't worry! Mostly everything worked fine - you just don't have permission to write to /usr/local/bin! Just run sudo iim link and it'll try again to create that symlink.

Feel free to dive in! Open an issue or submit PRs.

Install

$ npm i iim

Note: Windows not yet supported!

API Docs

License

MIT © Alan Shaw

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

0.8.2

5 months ago

0.8.1

5 months ago

0.8.0

5 months ago

0.7.0

4 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago