{"_id":"55663bc9979a3c2500bbafbf","user":"5564f227f0f70f0d00a9ab20","version":{"_id":"5564f26a1fd04c0d00dc9aad","project":"5564f26a1fd04c0d00dc9aaa","__v":15,"createdAt":"2015-05-26T22:23:38.671Z","releaseDate":"2015-05-26T22:23:38.671Z","categories":["5564f26b1fd04c0d00dc9aae","556741d17acd550d0075eaca","556741d87acd550d0075eacb","556742f87acd550d0075ead1","556781cd6976ef0d0099c545","5568d666d33aad0d00ec8d2e","557f6b2d38249b0d00d0d12b","55b67be9c2e909190073ed38","564e56c601e80e0d00396684","56731b714b2a680d00524daf","573612ac652bd80e00a90027","57365e2cf8ebd31700769f50","57366131f8ebd31700769f58","573b93514e029d19000b8669","573bbfdb7ac6f6170033bd35"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"__v":1,"category":{"_id":"5564f26b1fd04c0d00dc9aae","__v":2,"project":"5564f26a1fd04c0d00dc9aaa","pages":["5564f26b1fd04c0d00dc9ab0","55663bc9979a3c2500bbafbf"],"version":"5564f26a1fd04c0d00dc9aad","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-05-26T22:23:39.234Z","from_sync":false,"order":0,"slug":"documentation","title":"Documentation"},"parentDoc":null,"project":"5564f26a1fd04c0d00dc9aaa","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-05-27T21:48:57.210Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"Start by:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"npm install -g meshblu-util\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\nTo generate a public/private keypair, update meshblu.json with the private key, and publish the public key, run:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$ meshblu-util keygen meshblu.json\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\nTo learn more about the functionality of the meshblu-util tool, use:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$ meshblu-util --help\\n\\n  Usage: meshblu-util [options] [command]\\n\\n\\n  Commands:\\n\\n    claim                 claim Meshblu device in Octoblu\\n    subscription-create   Create a device subscription\\n    subscription-delete   Delete a device subscription\\n    subscription-list     List a device's subscription\\n    create-hook           Create a message hook\\n    firehose              Connect to the firehose!\\n    generate-token        generate and store token\\n    get                   retrieve a device using a meshblu.json\\n    keygen                generate public/private keypair, update\\n                meshblu.json with the private key,\\n                and publish the public key\\n    message               send a message with Meshblu\\n    online                check if Meshblu device is online\\n    register              register a new device with Meshblu\\n    revoke-token          revoke token from device\\n    server-check          check if Meshblu server is available\\n    search                search for devices\\n    subscribe             subscribe to messages to a Meshblu Device\\n    update                update an existing device in Meshblu\\n    gateblu-shadow-sync   synchronize a gateblu and it's shadows\\n    help [cmd]            display help for [cmd]\\n\\n  Options:\\n\\n    -h, --help     output usage information\\n    -V, --version  output the version number\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]","excerpt":"Meshblu also offers a command line utility!","slug":"meshblu-utility","type":"basic","title":"Meshblu Utility"}

Meshblu Utility

Meshblu also offers a command line utility!

Start by: [block:code] { "codes": [ { "code": "npm install -g meshblu-util", "language": "text" } ] } [/block] To generate a public/private keypair, update meshblu.json with the private key, and publish the public key, run: [block:code] { "codes": [ { "code": "$ meshblu-util keygen meshblu.json", "language": "text" } ] } [/block] To learn more about the functionality of the meshblu-util tool, use: [block:code] { "codes": [ { "code": "$ meshblu-util --help\n\n Usage: meshblu-util [options] [command]\n\n\n Commands:\n\n claim claim Meshblu device in Octoblu\n subscription-create Create a device subscription\n subscription-delete Delete a device subscription\n subscription-list List a device's subscription\n create-hook Create a message hook\n firehose Connect to the firehose!\n generate-token generate and store token\n get retrieve a device using a meshblu.json\n keygen generate public/private keypair, update\n meshblu.json with the private key,\n and publish the public key\n message send a message with Meshblu\n online check if Meshblu device is online\n register register a new device with Meshblu\n revoke-token revoke token from device\n server-check check if Meshblu server is available\n search search for devices\n subscribe subscribe to messages to a Meshblu Device\n update update an existing device in Meshblu\n gateblu-shadow-sync synchronize a gateblu and it's shadows\n help [cmd] display help for [cmd]\n\n Options:\n\n -h, --help output usage information\n -V, --version output the version number", "language": "text" } ] } [/block]