balena-cli/lib/actions
Akis Kesoglou 5cbe1c410f Add join/leave commands to promote and move devices between platforms
Both commands work with local devices by remotely invoking the `os-config` executable via SSH. This requires an as of yet unreleased resinOS (that will most likely be v2.14) and the commands ascertain compatibility merely by looking for the `os-config` executable in the device, and bail out if it’s not present.

`join` and `leave` accept a couple of optional arguments and implement a wizard-style interface if these are not given. They allow to interactively select the device and the application to promote to. If the user has no apps, `join` will offer the user to create one. `join` will also offer the user to login or create an account if they’re not logged in already without exiting the wizard.

`resin-sync` (that's used internally to discover local devices) requires admin privileges. If no device has been specified as an argument, the commands will launch the device scanning process in a privileged subprocess via two new internal commands: `internal sudo` and `internal scanDevices`. This avoids having the user to invoke the commands with sudo and only request escalation if truly needed. This commit also removes the dependency to “president”, implementing “sudo” functionality within the CLI.

Change-Type: minor
2018-07-19 22:18:02 +03:00
..
local Make local commands more resilient to unnamed containers 2018-06-28 12:34:31 +02:00
api-key.ts Warn user that api keys will not be shown again in future 2018-04-11 19:31:03 +02:00
app.coffee Rename expectedError to exitWithExpectedError 2018-04-17 15:18:06 +02:00
auth.coffee Add join/leave commands to promote and move devices between platforms 2018-07-19 22:18:02 +03:00
build.coffee Rename expectedError to exitWithExpectedError 2018-04-17 15:18:06 +02:00
command-options.coffee Post-review tweaks to OS actions 2018-07-13 19:34:59 +02:00
config.coffee Add join/leave commands to promote and move devices between platforms 2018-07-19 22:18:02 +03:00
deploy.coffee Address review feedback 2018-03-22 13:26:47 +02:00
device.coffee Add join/leave commands to promote and move devices between platforms 2018-07-19 22:18:02 +03:00
environment-variables.coffee Add a multicontainer caveat to the env var commands 2018-06-01 12:37:29 +02:00
help.coffee Rename expectedError to exitWithExpectedError 2018-04-17 15:18:06 +02:00
index.coffee Add join/leave commands to promote and move devices between platforms 2018-07-19 22:18:02 +03:00
info.ts Lint TypeScript and CoffeeScript with resin-lint 2018-01-09 17:14:49 +01:00
internal.coffee Add join/leave commands to promote and move devices between platforms 2018-07-19 22:18:02 +03:00
join.ts Add join/leave commands to promote and move devices between platforms 2018-07-19 22:18:02 +03:00
keys.coffee Update the keys action to use the multicontainer SDK 2018-03-07 14:46:34 +00:00
leave.ts Add join/leave commands to promote and move devices between platforms 2018-07-19 22:18:02 +03:00
logs.coffee Simplify logs promises after review 2018-07-12 15:38:27 +02:00
notes.coffee Rename expectedError to exitWithExpectedError 2018-04-17 15:18:06 +02:00
os.coffee Add --version options to os configure & config generate 2018-07-13 19:34:59 +02:00
preload.coffee Support pinned release preloading 2018-06-13 12:29:30 +01:00
push.ts Add push command which starts a build on remote resin servers 2018-05-10 11:43:45 +01:00
settings.ts Start using Prettier 2018-01-10 09:23:00 +01:00
ssh.coffee Rename expectedError to exitWithExpectedError 2018-04-17 15:18:06 +02:00
sync.ts Lint TypeScript and CoffeeScript with resin-lint 2018-01-09 17:14:49 +01:00
util.coffee improve available drives listing 2017-06-15 16:43:02 +03:00
wizard.coffee Add join/leave commands to promote and move devices between platforms 2018-07-19 22:18:02 +03:00