Add device api keys warning on device register and os configure

This commit is contained in:
Tim Perry 2017-10-13 20:29:47 +02:00
parent a8f1d16b26
commit 2d43e47610
5 changed files with 10 additions and 2 deletions

View File

@ -84,7 +84,7 @@ exports.supported = {
exports.register = {
signature: 'device register <application>',
description: 'register a device',
help: 'Use this command to register a device to an application.\n\nExamples:\n\n $ resin device register MyApp\n $ resin device register MyApp --uuid <uuid>\n $ resin device register MyApp --uuid <uuid> --device-api-key <existingDeviceKey>',
help: 'Use this command to register a device to an application.\n\nNote that device api keys are only supported on ResinOS 2.0.3+\n\nExamples:\n\n $ resin device register MyApp\n $ resin device register MyApp --uuid <uuid>\n $ resin device register MyApp --uuid <uuid> --device-api-key <existingDeviceKey>',
permission: 'user',
options: [
{

View File

@ -190,7 +190,7 @@ exports.buildConfig = {
exports.configure = {
signature: 'os configure <image> <uuid> [deviceApiKey]',
description: 'configure an os image',
help: 'Use this command to configure a previously downloaded operating system image for the specific device.\n\nExamples:\n\n $ resin os configure ../path/rpi.img 7cf02a6\n $ resin os configure ../path/rpi.img 7cf02a6 <existingDeviceKey>',
help: 'Use this command to configure a previously downloaded operating system image for the specific device.\n\nNote that device api keys are only supported on ResinOS 2.0.3+\n\nExamples:\n\n $ resin os configure ../path/rpi.img 7cf02a6\n $ resin os configure ../path/rpi.img 7cf02a6 <existingDeviceKey>',
permission: 'user',
options: [
commandOptions.advancedConfig, {

View File

@ -331,6 +331,8 @@ Examples:
Use this command to register a device to an application.
Note that device api keys are only supported on ResinOS 2.0.3+
Examples:
$ resin device register MyApp
@ -908,6 +910,8 @@ the path to the output JSON file
Use this command to configure a previously downloaded operating system image for the specific device.
Note that device api keys are only supported on ResinOS 2.0.3+
Examples:
$ resin os configure ../path/rpi.img 7cf02a6

View File

@ -131,6 +131,8 @@ exports.register =
help: '''
Use this command to register a device to an application.
Note that device api keys are only supported on ResinOS 2.0.3+
Examples:
$ resin device register MyApp

View File

@ -201,6 +201,8 @@ exports.configure =
help: '''
Use this command to configure a previously downloaded operating system image for the specific device.
Note that device api keys are only supported on ResinOS 2.0.3+
Examples:
$ resin os configure ../path/rpi.img 7cf02a6