ipfs

ipfs

TLDR

Add a file from local to the filesystem, pin it and print the relative hash

$ ipfs add [filename]
copy

Add a directory and its files recursively from local to the filesystem and print the relative hash

$ ipfs add -r [directory]
copy

Save a remote file and give it a name but not pin it

$ ipfs get [hash] -o [filename]
copy

Pin a remote file locally

$ ipfs pin add [hash]
copy

Display pinned files

$ ipfs pin ls
copy

Unpin a file from the local storage

$ ipfs pin rm [hash]
copy

Remove unpinned files from local storage

$ ipfs repo gc
copy

Copied to clipboard
Coindodo