ipfs-commands

command module
v0.0.0-...-2b538bf Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2015 License: MIT Imports: 7 Imported by: 0

README

ipfs-commands

Generate IPFS commands + api reference markdown, so we can add it to the website easily. See go-ipfs/Issue#785

Usage:

    go get -v github.com/dborzov/ipfs-commands
    cd $GOPATH/src/github.com/dborzov/ipfs-commands
    ipfs-commands

et voila, we get the parsed template file from TEMPLATE.md in Stdout, like this:


IPFS command line tool commands
`ipfs pin``: Pin (and unpin) objects to local storage
`ipfs repo``: Manipulate the IPFS repo

'ipfs repo' is a plumbing command used to manipulate the repo.

`ipfs add``: Add an object to ipfs.

Adds contents of to ipfs. Use -r to add directories. Note that directories are added recursively, to form the ipfs MerkleDAG. A smarter partial add with a staging area (like git) remains to be implemented.

`ipfs dht``: Issue commands directly through the DHT
`ipfs diag``: Generates diagnostic reports
`ipfs name``: IPFS namespace (IPNS) tool

IPNS is a PKI namespace, where names are the hashes of public keys, and the private key enables publishing new (signed) values. In both publish and resolve, the default value of is your own identity public key.

`ipfs object``: Interact with ipfs objects

'ipfs object' is a plumbing command used to manipulate DAG objects directly.

`ipfs swarm``: swarm inspection tool

ipfs swarm is a tool to manipulate the network swarm. The swarm is the component that opens, listens for, and maintains connections to other ipfs peers in the internet.

`ipfs cat``: Show IPFS object data

Retrieves the object named by and outputs the data it contains.

`ipfs config``: get and set IPFS config values

ipfs config controls configuration variables. It works like 'git config'. The configuration values are stored in a config file inside your IPFS repository.

`ipfs log``: Interact with the daemon log output

'ipfs log' contains utility commands to affect or read the logging output of a running daemon.

`ipfs ping``: send echo request packets to IPFS hosts

ipfs ping is a tool to test sending data to other nodes. It finds nodes via the routing system, send pings, wait for pongs, and print out round- trip latency information.

Retrieves the object named by and displays the link hashes it contains, with the following format:

Note: list all refs recursively with -r.

`ipfs version``: Shows ipfs version information

Returns the current version of ipfs and exits.

`ipfs block``: Manipulate raw IPFS blocks

'ipfs block' is a plumbing command used to manipulate raw ipfs blocks. Reads from stdin or writes to stdout, and is a base58 encoded multihash.

`ipfs bootstrap``: Show or edit the list of bootstrap peers

Running 'ipfs bootstrap' with no arguments will run 'ipfs bootstrap list'.

SECURITY WARNING:

The bootstrap command manipulates the "bootstrap list", which contains the addresses of bootstrap nodes. These are the trusted peers from which to learn about other peers in the network. Only edit this list if you understand the risks of adding or removing nodes from this list.

`ipfs get``: Download IPFS objects

Retrieves the object named by and stores the data to disk.

By default, the output will be stored at ./, but an alternate path can be specified with '--output=' or '-o='.

To output a TAR archive instead of unpacked files, use '--archive' or '-a'.

To compress the output with GZIP compression, use '--compress' or '-C'. You may also specify the level of compression by specifying '-l=<1-9>'.

`ipfs id``: Show IPFS Node ID info

Prints out information about the specified peer, if no peer is specified, prints out local peers info.

ipfs id supports the format option for output with the following keys: : the peers id : agent version : protocol version : public key

`ipfs mount``: Mounts IPFS to the filesystem (read-only)

Mount ipfs at a read-only mountpoint on the OS (default: /ipfs and /ipns). All ipfs objects will be accessible under that directory. Note that the root will not be listable, as it is virtual. Access known paths directly.

You may have to create /ipfs and /ipfs before using 'ipfs mount':

sudo mkdir /ipfs /ipns sudo chown whoami /ipfs /ipns ipfs daemon & ipfs mount

`ipfs commands``: List all available commands.

Lists all available commands (and subcommands) and exits.

Retrieves the object named by and displays the links it contains, with the following format:

`ipfs update``: Downloads and installs updates for IPFS

ipfs update is a utility command used to check for updates and apply them.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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