@cryptotaxi247 / kubo / commits / 2f6f0f91c

Examples for object put

License: MIT Signed-off-by: Dylan Powers <dylan.kyle.powers@gmail.com>

Dylan Powers committed Jun 19, 2015 at 16:59 UTC 2f6f0f91c837fb5b221d621e36c51c147e247853
1 file changed +20
core/commands/object.go
+20
@@ -305,6 +305,26 @@ Data should be in the format specified by the --inputenc flag.
305 --inputenc may be one of the following:
306 * "protobuf"
307 * "json" (default)
308 +
309 +Examples:
310 +
311 + echo '{ "Data": "abc" }' | ipfs object put
312 +
313 +This creates a node with the data "abc" and no links. For an object with links,
314 +create a file named node.json with the contents:
315 +
316 + {
317 + "Data": "another",
318 + "Links": [ {
319 + "Name": "some link",
320 + "Hash": "QmXg9Pp2ytZ14xgmQjYEiHjVjMFXzCVVEcRTWJBmLgR39V",
321 + "Size": 8
322 + } ]
323 + }
324 +
325 +and then run
326 +
327 + ipfs object put node.json
328 `,
329 },
330