uplinks:: IPFS
tags:: #lang/en #type/cli

IPFS CLI

Start

ipfs daemon

Peers

ipfs swarm peers # list all connected peers
ipfs swarm addrs # list known addresses

Networking

ipfs stats bw # show bandwidth usage

Storage

Show pinned files

ipfs pin ls [<ipfs-path>] # List objects pinned to local storage.
ipfs pin ls # list all pinned files

Indirect pins are those that are pinned as a result of being child blocks of recursive pins.

Show all stored files

ipfs refs local

Perform Garbage Collection

Remove files that have not been pinned

ipfs repo gc