ipfs-add

command module
v0.0.0-...-42a4098 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2019 License: MIT Imports: 6 Imported by: 0

README

ipfs-add GoDoc Build Status Go Report Card Coverage Status

Tool to add a file or directory to IPFS. It acts like ipfs add command, but you don't need IPFS node running on your local machine. By default it uses Infura nodes (https://ipfs.infura.io:5001) to add file or directory to IPFS, all directories are added recursively.

Usage

USAGE:
  ./ipfs-add [options] <path>...

ARGUMENTS

  <path>... - The path to a file to be added to ipfs.

OPTIONS

  -H	Include files that are hidden. Only takes effect on directory add.
  -node string
    	The url of IPFS node to use. (default "https://ipfs.infura.io:5001")
  -v	Print program version.
Example

Adding current directory to IPFS:

> ipfs-add .
added QmctKt7CJDnmxdj7hRYXyqsLFMeEvpJt5qV6qdMprtcyop folder/1375 - Astronaut Vandalism - alt.txt
added QmXR6qCcJxy3P7TsqxodBgqMbSZCZBqdSNEmzHPzdfagub folder/1375 - Astronaut Vandalism - transcript.txt
added QmNTh4Er9bxYq6ULd4reHPkoPiPwVbXN8YqJHrnfkQy7RH folder/1375 - Astronaut Vandalism.png
added QmdGnC6rtZ7K7ERKnHuZCZcztbv9ZhBvsobHdgCowmX59F folder

You can now refer to the added directories or files in a gateway, like so:

You can also use any other IPFS gateway instead of https://ipfs.infura.io/ like:

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL