mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-22 02:06:47 +00:00
Add missing example to device init
This commit is contained in:
parent
63b2b3feb6
commit
f3b6f9d117
@ -111,7 +111,7 @@
|
|||||||
exports.init = {
|
exports.init = {
|
||||||
signature: 'device init [device]',
|
signature: 'device init [device]',
|
||||||
description: 'initialise a device with resin os',
|
description: 'initialise a device with resin os',
|
||||||
help: 'Use this command to download the OS image of a certain application and write it to an SD Card.\n\nNote that this command requires admin privileges.\n\nIf `device` is omitted, you will be prompted to select a device interactively.\n\nNotice this command asks for confirmation interactively.\nYou can avoid this by passing the `--yes` boolean option.\n\nYou can quiet the progress bar by passing the `--quiet` boolean option.\n\nYou may have to unmount the device before attempting this operation.\n\nYou need to configure the network type and other settings:\n\nEthernet:\n You can setup the device OS to use ethernet by setting the `--network` option to "ethernet".\n\nWifi:\n You can setup the device OS to use wifi by setting the `--network` option to "wifi".\n If you set "network" to "wifi", you will need to specify the `--ssid` and `--key` option as well.\n\nYou can omit network related options to be asked about them interactively.\n\nExamples:\n\n $ resin device init --application 91\n $ resin device init --application 91 --network ethernet\n $ resin device init /dev/disk2 --application 91 --network wifi --ssid MyNetwork --key secret',
|
help: 'Use this command to download the OS image of a certain application and write it to an SD Card.\n\nNote that this command requires admin privileges.\n\nIf `device` is omitted, you will be prompted to select a device interactively.\n\nNotice this command asks for confirmation interactively.\nYou can avoid this by passing the `--yes` boolean option.\n\nYou can quiet the progress bar by passing the `--quiet` boolean option.\n\nYou may have to unmount the device before attempting this operation.\n\nYou need to configure the network type and other settings:\n\nEthernet:\n You can setup the device OS to use ethernet by setting the `--network` option to "ethernet".\n\nWifi:\n You can setup the device OS to use wifi by setting the `--network` option to "wifi".\n If you set "network" to "wifi", you will need to specify the `--ssid` and `--key` option as well.\n\nYou can omit network related options to be asked about them interactively.\n\nExamples:\n\n $ resin device init\n $ resin device init --application 91\n $ resin device init --application 91 --network ethernet\n $ resin device init /dev/disk2 --application 91 --network wifi --ssid MyNetwork --key secret',
|
||||||
options: [commandOptions.optionalApplication, commandOptions.network, commandOptions.wifiSsid, commandOptions.wifiKey],
|
options: [commandOptions.optionalApplication, commandOptions.network, commandOptions.wifiSsid, commandOptions.wifiKey],
|
||||||
permission: 'user',
|
permission: 'user',
|
||||||
action: function(params, options, done) {
|
action: function(params, options, done) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# app associate <id>
|
# app associate <name>
|
||||||
|
|
||||||
Use this command to associate a project directory with a resin application.
|
Use this command to associate a project directory with a resin application.
|
||||||
|
|
||||||
@ -6,5 +6,5 @@ This command adds a 'resin' git remote to the directory and runs git init if nec
|
|||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
$ resin app associate 91
|
$ resin app associate MyApp
|
||||||
$ resin app associate 91 --project my/app/directory
|
$ resin app associate MyApp --project my/app/directory
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# app <id>
|
# app <name>
|
||||||
|
|
||||||
Use this command to show detailed information for a single application.
|
Use this command to show detailed information for a single application.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
$ resin app 91
|
$ resin app MyApp
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
Use this command to list all your applications.
|
Use this command to list all your applications.
|
||||||
|
|
||||||
Notice this command only shows the most important bits of information for each app.
|
Notice this command only shows the most important bits of information for each app.
|
||||||
If you want detailed information, use resin app <id> instead.
|
If you want detailed information, use resin app <name> instead.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# app rm <id>
|
# app rm <name>
|
||||||
|
|
||||||
Use this command to remove a resin.io application.
|
Use this command to remove a resin.io application.
|
||||||
|
|
||||||
@ -7,8 +7,8 @@ You can avoid this by passing the `--yes` boolean option.
|
|||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
$ resin app rm 91
|
$ resin app rm MyApp
|
||||||
$ resin app rm 91 --yes
|
$ resin app rm MyApp --yes
|
||||||
|
|
||||||
## Options
|
## Options
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# app restart <id>
|
# app restart <name>
|
||||||
|
|
||||||
Use this command to restart all devices that belongs to a certain application.
|
Use this command to restart all devices that belongs to a certain application.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
$ resin app restart 91
|
$ resin app restart MyApp
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# device <id>
|
# device <name>
|
||||||
|
|
||||||
Use this command to show information about a single device.
|
Use this command to show information about a single device.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
$ resin device 317
|
$ resin device MyDevice
|
||||||
|
@ -26,6 +26,7 @@ You can omit network related options to be asked about them interactively.
|
|||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
|
$ resin device init
|
||||||
$ resin device init --application 91
|
$ resin device init --application 91
|
||||||
$ resin device init --application 91 --network ethernet
|
$ resin device init --application 91 --network ethernet
|
||||||
$ resin device init /dev/disk2 --application 91 --network wifi --ssid MyNetwork --key secret
|
$ resin device init /dev/disk2 --application 91 --network wifi --ssid MyNetwork --key secret
|
||||||
@ -34,7 +35,7 @@ Examples:
|
|||||||
|
|
||||||
### --application, --a,app, --a,app <application>
|
### --application, --a,app, --a,app <application>
|
||||||
|
|
||||||
application id
|
application name
|
||||||
|
|
||||||
### --network, -n <network>
|
### --network, -n <network>
|
||||||
|
|
||||||
|
@ -4,10 +4,10 @@ Use this command to list all devices that belong to a certain application.
|
|||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
$ resin devices --application 91
|
$ resin devices --application MyApp
|
||||||
|
|
||||||
## Options
|
## Options
|
||||||
|
|
||||||
### --application, --a,app, --a,app <application>
|
### --application, --a,app, --a,app <application>
|
||||||
|
|
||||||
application id
|
application name
|
@ -1,4 +1,4 @@
|
|||||||
# device rm <id>
|
# device rm <name>
|
||||||
|
|
||||||
Use this command to remove a device from resin.io.
|
Use this command to remove a device from resin.io.
|
||||||
|
|
||||||
@ -7,8 +7,8 @@ You can avoid this by passing the `--yes` boolean option.
|
|||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
$ resin device rm 317
|
$ resin device rm MyDevice
|
||||||
$ resin device rm 317 --yes
|
$ resin device rm MyDevice --yes
|
||||||
|
|
||||||
## Options
|
## Options
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# device rename <id> [name]
|
# device rename <name> [newName]
|
||||||
|
|
||||||
Use this command to rename a device.
|
Use this command to rename a device.
|
||||||
|
|
||||||
@ -6,5 +6,5 @@ If you omit the name, you'll get asked for it interactively.
|
|||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
$ resin device rename 317 MyPi
|
$ resin device rename MyDevice MyPi
|
||||||
$ resin device rename 317
|
$ resin device rename MyDevice
|
||||||
|
@ -19,4 +19,4 @@ Examples:
|
|||||||
|
|
||||||
### --application, --a,app, --a,app <application>
|
### --application, --a,app, --a,app <application>
|
||||||
|
|
||||||
application id
|
application name
|
@ -16,7 +16,7 @@ Example:
|
|||||||
|
|
||||||
### --application, --a,app, --a,app <application>
|
### --application, --a,app, --a,app <application>
|
||||||
|
|
||||||
application id
|
application name
|
||||||
|
|
||||||
### --verbose, -v
|
### --verbose, -v
|
||||||
|
|
||||||
|
@ -4,15 +4,15 @@ Use this command to set or update a device note.
|
|||||||
|
|
||||||
If note command isn't passed, the tool attempts to read from `stdin`.
|
If note command isn't passed, the tool attempts to read from `stdin`.
|
||||||
|
|
||||||
To view the notes, use $ resin device <id>.
|
To view the notes, use $ resin device <name>.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
$ resin note "My useful note" --device 317
|
$ resin note "My useful note" --device MyDevice
|
||||||
$ cat note.txt | resin note --device 317
|
$ cat note.txt | resin note --device MyDevice
|
||||||
|
|
||||||
## Options
|
## Options
|
||||||
|
|
||||||
### --device, --d,dev, --d,dev <device>
|
### --device, --d,dev, --d,dev <device>
|
||||||
|
|
||||||
device id
|
device name
|
@ -177,6 +177,7 @@ exports.init =
|
|||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
|
$ resin device init
|
||||||
$ resin device init --application 91
|
$ resin device init --application 91
|
||||||
$ resin device init --application 91 --network ethernet
|
$ resin device init --application 91 --network ethernet
|
||||||
$ resin device init /dev/disk2 --application 91 --network wifi --ssid MyNetwork --key secret
|
$ resin device init /dev/disk2 --application 91 --network wifi --ssid MyNetwork --key secret
|
||||||
|
Loading…
x
Reference in New Issue
Block a user