UNPKG

balena-cli

Version:

The official balena Command Line Interface

30 lines (29 loc) 959 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const core_1 = require("@oclif/core"); const cf = require("../../utils/common-flags"); const lazy_1 = require("../../utils/lazy"); class DeviceRebootCmd extends core_1.Command { async run() { const { args: params, flags: options } = await this.parse(DeviceRebootCmd); const balena = (0, lazy_1.getBalenaSdk)(); await balena.models.device.reboot(params.uuid, options); } } DeviceRebootCmd.description = (0, lazy_1.stripIndent) ` Restart a device. Remotely reboot a device. `; DeviceRebootCmd.examples = ['$ balena device reboot 23c73a1']; DeviceRebootCmd.args = { uuid: core_1.Args.string({ description: 'the uuid of the device to reboot', required: true, }), }; DeviceRebootCmd.flags = { force: cf.force, }; DeviceRebootCmd.authenticated = true; exports.default = DeviceRebootCmd; //# sourceMappingURL=reboot.js.map