提交 09f16003 作者: Juan Batiz-Benet

Merge pull request #1402 from dylanPowers/object-put-example

Object put examples in help text
...@@ -305,6 +305,26 @@ Data should be in the format specified by the --inputenc flag. ...@@ -305,6 +305,26 @@ Data should be in the format specified by the --inputenc flag.
--inputenc may be one of the following: --inputenc may be one of the following:
* "protobuf" * "protobuf"
* "json" (default) * "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
`, `,
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论