Skip to content
A command line executable to add a file to IPFS from a URL instead of a file path
Branch: master
Clone or download
Latest commit ed815ea Jan 30, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore imported code from ipfs-api PR ipfs/js-ipfs-http-client#512 Jan 29, 2017
README.md documenting an alternative Jan 30, 2017
index.js imported code from ipfs-api PR ipfs/js-ipfs-http-client#512 Jan 29, 2017
package.json

README.md

ipfs-add-from-url

A command line executable to add a file to IPFS from a URL instead of a file path

Dependency

Make sure IPFS is installed and the daemon running

ipfs daemon

Install

Globally

npm install -g ipfs-add-from-url
# Use anywhere
ipfs-add-from-url https://inventaire.io/public/icon/120.png

In a project

npm install ipfs-add-from-url --save
# Use directly from npm scripts
ipfs-add-from-url https://inventaire.io/public/icon/120.png
# Or using the relative path from the command line
./node_modules/.bin/ipfs-add-from-url https://inventaire.io/public/icon/120.png

Alternative

As suggested by ftnd33, you can do pretty much the same with

wget -q -O - http://url.tld | ipfs add -q
You can’t perform that action at this time.