LinuxCommandLibrary

ipfs

command-line interface for the InterPlanetary File System, a distributed

TLDR

Initialize IPFS repository

$ ipfs init
copy
Start IPFS daemon
$ ipfs daemon
copy
Add file to IPFS
$ ipfs add [file]
copy
Add directory recursively
$ ipfs add -r [directory]
copy
Get file by CID
$ ipfs get [CID]
copy
View file contents
$ ipfs cat [CID]
copy
Pin a file
$ ipfs pin add [CID]
copy
List pinned files
$ ipfs pin ls
copy
Show node info
$ ipfs id
copy

SYNOPSIS

ipfs command [options]

DESCRIPTION

ipfs is the command-line interface for the InterPlanetary File System, a distributed peer-to-peer file system. Files are identified by content-addressed CIDs (Content Identifiers) using cryptographic hashes. Content can be accessed through local nodes or public gateways like ipfs.io.

PARAMETERS

-r, --recursive

Add directories recursively.
-q, --quiet
Minimal output.
-w, --wrap-with-directory
Wrap files in directory.

SUBCOMMANDS

init

Initialize local repository.
daemon
Start IPFS daemon.
add file
Add file to IPFS.
get cid
Download file by CID.
cat cid
Display file contents.
pin add cid
Pin content locally.
pin ls
List pinned content.
id
Show node identity.
swarm peers
List connected peers.
files
Manage MFS (Mutable File System).

SEE ALSO

ipget(1), wget(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community