1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-20 02:21:48 +08:00

Examples for object put

License: MIT
Signed-off-by: Dylan Powers <dylan.kyle.powers@gmail.com>
This commit is contained in:
Dylan Powers
2015-06-19 16:59:23 -07:00
parent 36a5281106
commit 2f6f0f91c8

View File

@ -305,6 +305,26 @@ Data should be in the format specified by the --inputenc flag.
--inputenc may be one of the following:
* "protobuf"
* "json" (default)
Examples:
echo '{ "Data": "abc" }' | ipfs object put
This creates a node with the data "abc" and no links. For an object with links,
create a file named node.json with the contents:
{
"Data": "another",
"Links": [ {
"Name": "some link",
"Hash": "QmXg9Pp2ytZ14xgmQjYEiHjVjMFXzCVVEcRTWJBmLgR39V",
"Size": 8
} ]
}
and then run
ipfs object put node.json
`,
},