Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maxlath/ipfs-add-from-url

A command line executable to add a file to IPFS from a URL instead of a file path
https://github.com/maxlath/ipfs-add-from-url

cli ipfs

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# ipfs-add-from-url
A command line executable to add a file to [IPFS](http://ipfs.io) from a URL instead of a file path

## Dependency
Make sure IPFS is [installed](https://ipfs.io/docs/install/) and the daemon running
```sh
ipfs daemon
```

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

**In a project**
```sh
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](https://www.reddit.com/r/ipfs/comments/5quy34/ipfsaddfromurl_a_command_line_executable_to_add_a/dd2xo4s/), you can do pretty much the same with
```sh
wget -q -O - http://url.tld | ipfs add -q
```