ipfs/js-ipfsd-ctl

Option to spawn daemons using the globally installed binary

Closed this issue · 6 comments

It would be sweet to be able to use the ipfs bin install in the host, so that we can select any IPFS version, even those who weren't released yet, to be tested with js-ipfs-api tests, as an example :)

indeed. right now i'm copying it in and it's annoying.

Isn't this already possible with IPFS_EXEC=/path/to/other/ipfs/bin ?

If not, let's definitely get this in. If yes, is IPFS_EXEC not the solution needed here?

@haadcode yes, definitely possible today with IPFS_EXEC, see here:

this.exec = process.env.IPFS_EXEC || ipfsDefaultPath

  • Needs documentation

If you need want to use an existing ipfs installation you can set $IPFS_EXEC=/path/to/ipfs to ensure it uses that.

This is in the current readme

✔️
😁