Skip to content

Latest commit

 

History

History
168 lines (102 loc) · 3.86 KB

ipfs.md

File metadata and controls

168 lines (102 loc) · 3.86 KB

lakshmikanths-MacBook-Pro-3:go-ipfs lakshmikanth$ ./ipfs init initializing IPFS node at /Users/lakshmikanth/.ipfs generating 2048-bit RSA keypair...done peer identity: QmaZ7aN2x9D4rGxmLZWXpsdivQRJV5UKYUW7heYPYL9cDS to get started, enter:

ipfs cat /ipfs/QmS4ustL54uo8FzR9455qaxZwuMiUhyvMcX9Ba8nUH4uVv/readme

lakshmikanths-MacBook-Pro-3:go-ipfs lakshmikanth$ ./ipfs cat /ipfs/QmS4ustL54uo8FzR9455qaxZwuMiUhyvMcX9Ba8nUH4uVv/readme Hello and Welcome to IPFS!

██╗██████╗ ███████╗███████╗ ██║██╔══██╗██╔════╝██╔════╝ ██║██████╔╝█████╗ ███████╗ ██║██╔═══╝ ██╔══╝ ╚════██║ ██║██║ ██║ ███████║ ╚═╝╚═╝ ╚═╝ ╚══════╝

If you're seeing this, you have successfully installed IPFS and are now interfacing with the ipfs merkledag!


| Warning: | | This is alpha software. Use at your own discretion! | | Much is missing or lacking polish. There are bugs. | | Not yet secure. Read the security notes for more. |

Check out some of the other files in this directory:

./about ./help ./quick-start <-- usage examples ./readme <-- this file ./security-notes

./ipfs cat /ipfs/QmS4ustL54uo8FzR9455qaxZwuMiUhyvMcX9Ba8nUH4uVv/quick-start

lakshmikanths-MacBook-Pro-3:go-ipfs lakshmikanth$ ./ipfs cat /ipfs/QmS4ustL54uo8FzR9455qaxZwuMiUhyvMcX9Ba8nUH4uVv/quick-start

0.1 - Quick Start

This is a set of short examples with minimal explanation. It is meant as a "quick start".

Add a file to ipfs:

echo "hello world" >hello ipfs add hello

View it:

ipfs cat

Try a directory:

mkdir foo mkdir foo/bar echo "baz" > foo/baz echo "baz" > foo/bar/baz ipfs add -r foo

View things:

ipfs ls ipfs ls /bar ipfs cat /baz ipfs cat /bar/baz ipfs cat /bar ipfs ls /baz

References:

ipfs refs ipfs refs -r ipfs refs --help

Get:

ipfs get -o foo2 diff foo foo2

Objects:

ipfs object get ipfs object get /foo2 ipfs object --help

Pin + GC:

ipfs pin add ipfs repo gc ipfs ls ipfs pin rm ipfs repo gc

Daemon:

ipfs daemon (in another terminal) ipfs id

Network:

(must be online) ipfs swarm peers ipfs id ipfs cat

Mount:

(warning: fuse is finicky!) ipfs mount cd /ipfs/ ls

Tool:

ipfs version ipfs update ipfs commands ipfs config --help open http://localhost:5001/webui

Browse:

webui:

http://localhost:5001/webui

video:

http://localhost:8080/ipfs/QmVc6zuAneKJzicnJpfrqCH9gSy6bz54JhcypfJYhGUFQu/play#/ipfs/QmTKZgRNwDNZwHtJSjCp6r5FYefzpULfy37JvMt9DwvXse

images:

http://localhost:8080/ipfs/QmZpc3HvfjEXvLWGQPWbHk3AjD5j8NEN4gmFN8Jmrd5g83/cs

markdown renderer app:

http://localhost:8080/ipfs/QmX7M9CiYXjVeFnkfVGf3y5ixTZ2ACeSGyL1vBJY1HvQPp/mdown

Authorization to HTTP Methods:

./ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods "["PUT", "POST", "GET"]" ./ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]' ./ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'