balena-cli 22.4.0-build-config-generate-initia-device-name-4032e7e83bdcdfb170faa19c5935ded4ad0ae134-1 → 23.0.0-build-os-configure-drop-version-d27a2f6cbee3b71f9a61c03fa623ab42b68b3fa1-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -2
- package/build/commands/config/generate.d.ts +0 -1
- package/build/commands/config/generate.js +5 -15
- package/build/commands/config/generate.js.map +1 -1
- package/build/commands/os/configure.d.ts +0 -1
- package/build/commands/os/configure.js +3 -9
- package/build/commands/os/configure.js.map +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/oclif.manifest.json +276 -290
- package/package.json +2 -2
- package/src/commands/config/generate.ts +6 -19
- package/src/commands/os/configure.ts +3 -13
package/CHANGELOG.md
CHANGED
|
@@ -4,9 +4,9 @@ All notable changes to this project will be documented in this file
|
|
|
4
4
|
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
|
5
5
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## 23.0.0 - 2025-09-01
|
|
8
8
|
|
|
9
|
-
*
|
|
9
|
+
* os configure: Drop the --version flag & fail when the image version can't be detected [Thodoris Greasidis]
|
|
10
10
|
|
|
11
11
|
## 22.3.0 - 2025-08-29
|
|
12
12
|
|
|
@@ -88,7 +88,6 @@ export default class ConfigGenerateCmd extends Command {
|
|
|
88
88
|
wifiSsid: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
89
89
|
wifiKey: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
90
90
|
appUpdatePollInterval: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
91
|
-
'initial-device-name': Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
92
91
|
'provisioning-key-name': Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
93
92
|
'provisioning-key-expiry-date': Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
94
93
|
};
|
|
@@ -70,27 +70,20 @@ class ConfigGenerateCmd extends core_1.Command {
|
|
|
70
70
|
answers.provisioningKeyName = options['provisioning-key-name'];
|
|
71
71
|
answers.provisioningKeyExpiryDate = options['provisioning-key-expiry-date'];
|
|
72
72
|
const { generateDeviceConfig, generateApplicationConfig } = await Promise.resolve().then(() => require('../../utils/config'));
|
|
73
|
-
let
|
|
73
|
+
let config;
|
|
74
74
|
if (device) {
|
|
75
|
-
|
|
75
|
+
config = await generateDeviceConfig(device, options.deviceApiKey || options['generate-device-api-key'] || undefined, answers);
|
|
76
76
|
}
|
|
77
77
|
else if (application) {
|
|
78
78
|
answers.deviceType = deviceType;
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
throw new Error('Unrecognized state: neither device nor application set');
|
|
83
|
-
}
|
|
84
|
-
if (options['initial-device-name'] != null &&
|
|
85
|
-
options['initial-device-name'] !== '') {
|
|
86
|
-
configJson.initialDeviceName = options['initial-device-name'];
|
|
79
|
+
config = await generateApplicationConfig(application, answers);
|
|
87
80
|
}
|
|
88
81
|
if (options.output != null) {
|
|
89
82
|
const fs = await Promise.resolve().then(() => require('fs'));
|
|
90
|
-
await fs.promises.writeFile(options.output, JSON.stringify(
|
|
83
|
+
await fs.promises.writeFile(options.output, JSON.stringify(config));
|
|
91
84
|
}
|
|
92
85
|
const prettyjson = await Promise.resolve().then(() => require('prettyjson'));
|
|
93
|
-
console.log(prettyjson.render(
|
|
86
|
+
console.log(prettyjson.render(config));
|
|
94
87
|
}
|
|
95
88
|
async validateOptions(options) {
|
|
96
89
|
const { ExpectedError } = await Promise.resolve().then(() => require('../../errors'));
|
|
@@ -179,9 +172,6 @@ ConfigGenerateCmd.flags = {
|
|
|
179
172
|
appUpdatePollInterval: core_1.Flags.string({
|
|
180
173
|
description: 'supervisor cloud polling interval in minutes (e.g. for device variables)',
|
|
181
174
|
}),
|
|
182
|
-
'initial-device-name': core_1.Flags.string({
|
|
183
|
-
description: 'This option will set the device name when the device provisions',
|
|
184
|
-
}),
|
|
185
175
|
'provisioning-key-name': core_1.Flags.string({
|
|
186
176
|
description: 'custom key name assigned to generated provisioning api key',
|
|
187
177
|
exclusive: ['device'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../src/commands/config/generate.ts"],"names":[],"mappings":";;AAiBA,sCAA6C;AAE7C,+CAA+C;AAC/C,2CAAyE;AACzE,mDAI8B;AAG9B,MAAM,qBAAqB,GAAG;IAC7B,OAAO,EAAE,MAAM;IACf,OAAO,EAAE;QACR,mBAAmB,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;KACxC;CACQ,CAAC;AAEX,MAAqB,iBAAkB,SAAQ,cAAO;IAAtD;;
|
|
1
|
+
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../src/commands/config/generate.ts"],"names":[],"mappings":";;AAiBA,sCAA6C;AAE7C,+CAA+C;AAC/C,2CAAyE;AACzE,mDAI8B;AAG9B,MAAM,qBAAqB,GAAG;IAC7B,OAAO,EAAE,MAAM;IACf,OAAO,EAAE;QACR,mBAAmB,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;KACxC;CACQ,CAAC;AAEX,MAAqB,iBAAkB,SAAQ,cAAO;IAAtD;;QAoNoB,8BAAyB,GAAG,IAAA,kBAAW,EAAA;;;;;;IAMvD,CAAC;QAEe,gCAA2B,GAC7C,uEAAuE,CAAC;IAmB1E,CAAC;IAjJO,KAAK,CAAC,cAAc,CAC1B,MAAiB,EACjB,KAAa;QAUb,MAAM,EAAE,cAAc,EAAE,GAAG,2CAAa,iBAAiB,EAAC,CAAC;QAC3D,OAAO,MAAM,cAAc,CAAC,MAAM,EAAE,KAAK,EAAE,qBAAqB,CAAC,CAAC;IACnE,CAAC;IAEM,KAAK,CAAC,GAAG;QACf,MAAM,EAAE,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OAAO,CAAC;QACxC,WAAW,EAAE,4CAA4C;KACzD,CAAC;IACF,MAAM,EAAE,YAAK,CAAC,MAAM,CAAC;QACpB,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,GAAG;KACT,CAAC;IAEF,OAAO,EAAE,YAAK,CAAC,MAAM,CAAC;QACrB,WAAW,EAAE,2CAA2C;QACxD,OAAO,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,CAAC;IACF,QAAQ,EAAE,YAAK,CAAC,MAAM,CAAC;QACtB,WAAW,EACV,8DAA8D;KAC/D,CAAC;IACF,OAAO,EAAE,YAAK,CAAC,MAAM,CAAC;QACrB,WAAW,EACV,6DAA6D;KAC9D,CAAC;IACF,qBAAqB,EAAE,YAAK,CAAC,MAAM,CAAC;QACnC,WAAW,EACV,0EAA0E;KAC3E,CAAC;IACF,uBAAuB,EAAE,YAAK,CAAC,MAAM,CAAC;QACrC,WAAW,EAAE,4DAA4D;QACzE,SAAS,EAAE,CAAC,QAAQ,CAAC;KACrB,CAAC;IACF,8BAA8B,EAAE,YAAK,CAAC,MAAM,CAAC;QAC5C,WAAW,EACV,6EAA6E;QAC9E,SAAS,EAAE,CAAC,QAAQ,CAAC;KACrB,CAAC;CACF,AA1DkB,CA0DjB;AAEY,+BAAa,GAAG,IAAI,AAAP,CAAQ;kBA7Ff,iBAAiB"}
|
|
@@ -81,7 +81,6 @@ export default class OsConfigureCmd extends Command {
|
|
|
81
81
|
};
|
|
82
82
|
'device-type': Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
83
83
|
'initial-device-name': Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
84
|
-
version: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
85
84
|
'system-connection': Interfaces.OptionFlag<string[] | undefined, Interfaces.CustomOptions>;
|
|
86
85
|
'provisioning-key-name': Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
87
86
|
'provisioning-key-expiry-date': Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
@@ -45,8 +45,7 @@ class OsConfigureCmd extends core_1.Command {
|
|
|
45
45
|
configJson = JSON.parse(rawConfig);
|
|
46
46
|
}
|
|
47
47
|
const { normalizeOsVersion } = await Promise.resolve().then(() => require('../../utils/normalization'));
|
|
48
|
-
const osVersion = normalizeOsVersion(
|
|
49
|
-
(await getOsVersionFromImage(params.image, deviceTypeManifest, devInit)));
|
|
48
|
+
const osVersion = normalizeOsVersion(await getOsVersionFromImage(params.image, deviceTypeManifest, devInit));
|
|
50
49
|
const { validateDevOptionAndWarn } = await Promise.resolve().then(() => require('../../utils/config'));
|
|
51
50
|
await validateDevOptionAndWarn(options.dev, osVersion);
|
|
52
51
|
const { validateSecureBootOptionAndWarn } = await Promise.resolve().then(() => require('../../utils/config'));
|
|
@@ -68,7 +67,7 @@ class OsConfigureCmd extends core_1.Command {
|
|
|
68
67
|
configJson = await generateApplicationConfig(app, answers);
|
|
69
68
|
}
|
|
70
69
|
}
|
|
71
|
-
if (options['initial-device-name']
|
|
70
|
+
if (options['initial-device-name'] &&
|
|
72
71
|
options['initial-device-name'] !== '') {
|
|
73
72
|
configJson.initialDeviceName = options['initial-device-name'];
|
|
74
73
|
}
|
|
@@ -177,9 +176,6 @@ OsConfigureCmd.flags = {
|
|
|
177
176
|
'initial-device-name': core_1.Flags.string({
|
|
178
177
|
description: 'This option will set the device name when the device provisions',
|
|
179
178
|
}),
|
|
180
|
-
version: core_1.Flags.string({
|
|
181
|
-
description: 'balenaOS version, for example "2.32.0" or "2.44.0+rev1"',
|
|
182
|
-
}),
|
|
183
179
|
'system-connection': core_1.Flags.string({
|
|
184
180
|
multiple: true,
|
|
185
181
|
char: 'c',
|
|
@@ -210,9 +206,7 @@ async function validateOptions(options) {
|
|
|
210
206
|
async function getOsVersionFromImage(imagePath, deviceTypeManifest, devInit) {
|
|
211
207
|
const osVersion = await devInit.getImageOsVersion(imagePath, deviceTypeManifest);
|
|
212
208
|
if (!osVersion) {
|
|
213
|
-
throw new errors_1.ExpectedError(
|
|
214
|
-
Could not read OS version from the image. Please specify the balenaOS
|
|
215
|
-
version manually with the --version command-line option.`);
|
|
209
|
+
throw new errors_1.ExpectedError('Could not read OS version from the image.');
|
|
216
210
|
}
|
|
217
211
|
return osVersion;
|
|
218
212
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configure.js","sourceRoot":"","sources":["../../../src/commands/os/configure.ts"],"names":[],"mappings":";;AAiBA,sCAAmD;AAGnD,4BAA4B;AAC5B,yCAA6C;AAC7C,+CAA+C;AAC/C,2CAAyE;AACzE,mDAI8B;AAE9B,MAAM,kBAAkB,GAAG,qBAAqB,CAAC;AAiBjD,MAAqB,cAAe,SAAQ,cAAO;
|
|
1
|
+
{"version":3,"file":"configure.js","sourceRoot":"","sources":["../../../src/commands/os/configure.ts"],"names":[],"mappings":";;AAiBA,sCAAmD;AAGnD,4BAA4B;AAC5B,yCAA6C;AAC7C,+CAA+C;AAC/C,2CAAyE;AACzE,mDAI8B;AAE9B,MAAM,kBAAkB,GAAG,qBAAqB,CAAC;AAiBjD,MAAqB,cAAe,SAAQ,cAAO;IA6G3C,KAAK,CAAC,GAAG;QACf,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QAE1E,MAAM,eAAe,CAAC,OAAO,CAAC,CAAC;QAE/B,MAAM,OAAO,GAAG,2CAAa,oBAAoB,EAAC,CAAC;QACnD,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,GAAG,2CAAa,IAAI,EAAC,CAAC;QAC5C,MAAM,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,GAAG,2CAC3D,oBAAoB,EACpB,CAAC;QACF,MAAM,OAAO,GAAG,2CAAa,qBAAqB,EAAC,CAAC;QACpD,MAAM,EAAE,cAAc,EAAE,GAAG,2C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BAAU,GAAE,CAAC,GAAG,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAC/C,CAAC;AAuBD,SAAS,gBAAgB,CACxB,UAA+C;IAE/C,MAAM,aAAa,GAAa,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC;SACzD,OAAO,CACP,CAAC,KAAiD,EAAE,EAAE,CACrD,CAAC,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,CACvC;SACA,GAAG,CACH,CAAC,WAA4D,EAAE,EAAE,CAChE,WAAW,CAAC,IAAI,CACjB;SACA,MAAM,EAAE;SACR,KAAK,EAAE,CAAC;IACV,OAAO,aAAqC,CAAC;AAC9C,CAAC;AAUD,SAAS,qBAAqB,CAAC,OAAiB;IAC/C,OAAO,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE;QACzC,IAAI,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;YAC/B,OAAO,GAAG;iBACR,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC;iBAC3B,OAAO,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;QACnE,CAAC;QACD,OAAO,GAAG,CAAC;IACZ,CAAC,CAAC,CAAC;AACJ,CAAC"}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "balena-cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "23.0.0-build-os-configure-drop-version-d27a2f6cbee3b71f9a61c03fa623ab42b68b3fa1-1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "balena-cli",
|
|
9
|
-
"version": "
|
|
9
|
+
"version": "23.0.0-build-os-configure-drop-version-d27a2f6cbee3b71f9a61c03fa623ab42b68b3fa1-1",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"dependencies": {
|
package/oclif.manifest.json
CHANGED
|
@@ -163,56 +163,6 @@
|
|
|
163
163
|
"create.js"
|
|
164
164
|
]
|
|
165
165
|
},
|
|
166
|
-
"block:create": {
|
|
167
|
-
"aliases": [],
|
|
168
|
-
"args": {
|
|
169
|
-
"name": {
|
|
170
|
-
"description": "block name",
|
|
171
|
-
"name": "name",
|
|
172
|
-
"required": true
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
"description": "Create an block.\n\nCreate a new balena block.\n\nYou can specify the organization the block should belong to using\nthe `--organization` option. The organization's handle, not its name,\nshould be provided. Organization handles can be listed with the\n`balena organization list` command.\n\nThe block's default device type is specified with the `--type` option.\nThe `balena device-type list` command can be used to list the available\ndevice types.\n\nInteractive dropdowns will be shown for selection if no device type or\norganization is specified and there are multiple options to choose from.\nIf there is a single option to choose from, it will be chosen automatically.\nThis interactive behavior can be disabled by explicitly specifying a device\ntype and organization.",
|
|
176
|
-
"examples": [
|
|
177
|
-
"$ balena block create MyBlock",
|
|
178
|
-
"$ balena block create MyBlock --organization mmyorg",
|
|
179
|
-
"$ balena block create MyBlock -o myorg --type raspberry-pi"
|
|
180
|
-
],
|
|
181
|
-
"flags": {
|
|
182
|
-
"organization": {
|
|
183
|
-
"char": "o",
|
|
184
|
-
"description": "handle of the organization the block should belong to",
|
|
185
|
-
"name": "organization",
|
|
186
|
-
"hasDynamicHelp": false,
|
|
187
|
-
"multiple": false,
|
|
188
|
-
"type": "option"
|
|
189
|
-
},
|
|
190
|
-
"type": {
|
|
191
|
-
"char": "t",
|
|
192
|
-
"description": "block device type (Check available types with `balena device-type list`)",
|
|
193
|
-
"name": "type",
|
|
194
|
-
"hasDynamicHelp": false,
|
|
195
|
-
"multiple": false,
|
|
196
|
-
"type": "option"
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
"hasDynamicHelp": false,
|
|
200
|
-
"hiddenAliases": [],
|
|
201
|
-
"id": "block:create",
|
|
202
|
-
"pluginAlias": "balena-cli",
|
|
203
|
-
"pluginName": "balena-cli",
|
|
204
|
-
"pluginType": "core",
|
|
205
|
-
"strict": true,
|
|
206
|
-
"enableJsonFlag": false,
|
|
207
|
-
"authenticated": true,
|
|
208
|
-
"isESM": false,
|
|
209
|
-
"relativePath": [
|
|
210
|
-
"build",
|
|
211
|
-
"commands",
|
|
212
|
-
"block",
|
|
213
|
-
"create.js"
|
|
214
|
-
]
|
|
215
|
-
},
|
|
216
166
|
"build": {
|
|
217
167
|
"aliases": [],
|
|
218
168
|
"args": {
|
|
@@ -536,13 +486,6 @@
|
|
|
536
486
|
"multiple": false,
|
|
537
487
|
"type": "option"
|
|
538
488
|
},
|
|
539
|
-
"initial-device-name": {
|
|
540
|
-
"description": "This option will set the device name when the device provisions",
|
|
541
|
-
"name": "initial-device-name",
|
|
542
|
-
"hasDynamicHelp": false,
|
|
543
|
-
"multiple": false,
|
|
544
|
-
"type": "option"
|
|
545
|
-
},
|
|
546
489
|
"provisioning-key-name": {
|
|
547
490
|
"description": "custom key name assigned to generated provisioning api key",
|
|
548
491
|
"exclusive": [
|
|
@@ -766,6 +709,56 @@
|
|
|
766
709
|
"write.js"
|
|
767
710
|
]
|
|
768
711
|
},
|
|
712
|
+
"block:create": {
|
|
713
|
+
"aliases": [],
|
|
714
|
+
"args": {
|
|
715
|
+
"name": {
|
|
716
|
+
"description": "block name",
|
|
717
|
+
"name": "name",
|
|
718
|
+
"required": true
|
|
719
|
+
}
|
|
720
|
+
},
|
|
721
|
+
"description": "Create an block.\n\nCreate a new balena block.\n\nYou can specify the organization the block should belong to using\nthe `--organization` option. The organization's handle, not its name,\nshould be provided. Organization handles can be listed with the\n`balena organization list` command.\n\nThe block's default device type is specified with the `--type` option.\nThe `balena device-type list` command can be used to list the available\ndevice types.\n\nInteractive dropdowns will be shown for selection if no device type or\norganization is specified and there are multiple options to choose from.\nIf there is a single option to choose from, it will be chosen automatically.\nThis interactive behavior can be disabled by explicitly specifying a device\ntype and organization.",
|
|
722
|
+
"examples": [
|
|
723
|
+
"$ balena block create MyBlock",
|
|
724
|
+
"$ balena block create MyBlock --organization mmyorg",
|
|
725
|
+
"$ balena block create MyBlock -o myorg --type raspberry-pi"
|
|
726
|
+
],
|
|
727
|
+
"flags": {
|
|
728
|
+
"organization": {
|
|
729
|
+
"char": "o",
|
|
730
|
+
"description": "handle of the organization the block should belong to",
|
|
731
|
+
"name": "organization",
|
|
732
|
+
"hasDynamicHelp": false,
|
|
733
|
+
"multiple": false,
|
|
734
|
+
"type": "option"
|
|
735
|
+
},
|
|
736
|
+
"type": {
|
|
737
|
+
"char": "t",
|
|
738
|
+
"description": "block device type (Check available types with `balena device-type list`)",
|
|
739
|
+
"name": "type",
|
|
740
|
+
"hasDynamicHelp": false,
|
|
741
|
+
"multiple": false,
|
|
742
|
+
"type": "option"
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
"hasDynamicHelp": false,
|
|
746
|
+
"hiddenAliases": [],
|
|
747
|
+
"id": "block:create",
|
|
748
|
+
"pluginAlias": "balena-cli",
|
|
749
|
+
"pluginName": "balena-cli",
|
|
750
|
+
"pluginType": "core",
|
|
751
|
+
"strict": true,
|
|
752
|
+
"enableJsonFlag": false,
|
|
753
|
+
"authenticated": true,
|
|
754
|
+
"isESM": false,
|
|
755
|
+
"relativePath": [
|
|
756
|
+
"build",
|
|
757
|
+
"commands",
|
|
758
|
+
"block",
|
|
759
|
+
"create.js"
|
|
760
|
+
]
|
|
761
|
+
},
|
|
769
762
|
"deploy": {
|
|
770
763
|
"aliases": [],
|
|
771
764
|
"args": {
|
|
@@ -3309,6 +3302,136 @@
|
|
|
3309
3302
|
"list.js"
|
|
3310
3303
|
]
|
|
3311
3304
|
},
|
|
3305
|
+
"preload": {
|
|
3306
|
+
"aliases": [],
|
|
3307
|
+
"args": {
|
|
3308
|
+
"image": {
|
|
3309
|
+
"description": "the image file path",
|
|
3310
|
+
"name": "image",
|
|
3311
|
+
"required": true
|
|
3312
|
+
}
|
|
3313
|
+
},
|
|
3314
|
+
"description": "Preload a release on a disk image (or Edison zip archive).\n\nPreload a release (service images/containers) from a balena fleet, and optionally\na balenaOS splash screen, in a previously downloaded '.img' balenaOS image file\nin the local disk (a zip file is only accepted for the Intel Edison device type).\nAfter preloading, the balenaOS image file can be flashed to a device's SD card.\nWhen the device boots, it will not need to download the release, as it was\npreloaded. This is usually combined with release pinning\n(https://www.balena.io/docs/learn/deploy/release-strategy/release-policy/)\nto avoid the device downloading a newer release straight away, if available.\nCheck also the Preloading and Preregistering section of the balena CLI's advanced\nmasterclass document:\nhttps://www.balena.io/docs/learn/more/masterclasses/advanced-cli/#5-preloading-and-preregistering\n\nFleets may be specified by fleet name or slug. Fleet slugs are\nthe recommended option, as they are unique and unambiguous. Slugs can be\nlisted with the `balena fleet list` command. Note that slugs may change if the\nfleet is renamed. Fleet names are not unique and may result in \"Fleet is\nambiguous\" errors at any time (even if it \"used to work in the past\"), for\nexample if the name clashes with a newly created public fleet, or with fleets\nfrom other balena accounts that you may be invited to join under any role.\nFor this reason, fleet names are especially discouraged in scripts (e.g. CI\nenvironments).\n\nNote that the this command requires Docker to be installed, as further detailed\nin the balena CLI's installation instructions:\nhttps://github.com/balena-io/balena-cli/blob/master/INSTALL.md\nThe `--dockerHost` and `--dockerPort` flags allow a remote Docker engine to\nbe used, however the image file must be accessible to the remote Docker engine\non the same path given on the command line. This is because Docker's bind mount\nfeature is used to \"share\" the image with a container that performs the preload.",
|
|
3315
|
+
"examples": [
|
|
3316
|
+
"$ balena preload balena.img --fleet MyFleet --commit e1f2592fc6ee949e68756d4f4a48e49bff8d72a0",
|
|
3317
|
+
"$ balena preload balena.img --fleet myorg/myfleet --splash-image image.png",
|
|
3318
|
+
"$ balena preload balena.img"
|
|
3319
|
+
],
|
|
3320
|
+
"flags": {
|
|
3321
|
+
"fleet": {
|
|
3322
|
+
"char": "f",
|
|
3323
|
+
"description": "fleet name or slug (preferred)",
|
|
3324
|
+
"name": "fleet",
|
|
3325
|
+
"hasDynamicHelp": false,
|
|
3326
|
+
"multiple": false,
|
|
3327
|
+
"type": "option"
|
|
3328
|
+
},
|
|
3329
|
+
"commit": {
|
|
3330
|
+
"char": "c",
|
|
3331
|
+
"description": "The commit hash of the release to preload. Use \"current\" to specify the current\nrelease (ignored if no appId is given). The current release is usually also the\nlatest, but can be pinned to a specific release. See:\nhttps://www.balena.io/docs/learn/deploy/release-strategy/release-policy/\nhttps://www.balena.io/docs/learn/more/masterclasses/fleet-management/#63-pin-using-the-api\nhttps://github.com/balena-io-examples/staged-releases",
|
|
3332
|
+
"name": "commit",
|
|
3333
|
+
"hasDynamicHelp": false,
|
|
3334
|
+
"multiple": false,
|
|
3335
|
+
"type": "option"
|
|
3336
|
+
},
|
|
3337
|
+
"splash-image": {
|
|
3338
|
+
"char": "s",
|
|
3339
|
+
"description": "path to a png image to replace the splash screen",
|
|
3340
|
+
"name": "splash-image",
|
|
3341
|
+
"hasDynamicHelp": false,
|
|
3342
|
+
"multiple": false,
|
|
3343
|
+
"type": "option"
|
|
3344
|
+
},
|
|
3345
|
+
"dont-check-arch": {
|
|
3346
|
+
"description": "disable architecture compatibility check between image and fleet",
|
|
3347
|
+
"name": "dont-check-arch",
|
|
3348
|
+
"allowNo": false,
|
|
3349
|
+
"type": "boolean"
|
|
3350
|
+
},
|
|
3351
|
+
"pin-device-to-release": {
|
|
3352
|
+
"char": "p",
|
|
3353
|
+
"description": "pin the preloaded device to the preloaded release on provision",
|
|
3354
|
+
"name": "pin-device-to-release",
|
|
3355
|
+
"allowNo": true,
|
|
3356
|
+
"type": "boolean"
|
|
3357
|
+
},
|
|
3358
|
+
"additional-space": {
|
|
3359
|
+
"description": "expand the image by this amount of bytes instead of automatically estimating the required amount",
|
|
3360
|
+
"name": "additional-space",
|
|
3361
|
+
"hasDynamicHelp": false,
|
|
3362
|
+
"multiple": false,
|
|
3363
|
+
"type": "option"
|
|
3364
|
+
},
|
|
3365
|
+
"add-certificate": {
|
|
3366
|
+
"description": "Add the given certificate (in PEM format) to /etc/ssl/certs in the preloading container.\nThe file name must end with '.crt' and must not be already contained in the preloader's\n/etc/ssl/certs folder.\nCan be repeated to add multiple certificates.",
|
|
3367
|
+
"name": "add-certificate",
|
|
3368
|
+
"hasDynamicHelp": false,
|
|
3369
|
+
"multiple": true,
|
|
3370
|
+
"type": "option"
|
|
3371
|
+
},
|
|
3372
|
+
"docker": {
|
|
3373
|
+
"char": "P",
|
|
3374
|
+
"description": "Path to a local docker socket (e.g. /var/run/docker.sock)",
|
|
3375
|
+
"name": "docker",
|
|
3376
|
+
"hasDynamicHelp": false,
|
|
3377
|
+
"multiple": false,
|
|
3378
|
+
"type": "option"
|
|
3379
|
+
},
|
|
3380
|
+
"dockerHost": {
|
|
3381
|
+
"char": "h",
|
|
3382
|
+
"description": "Docker daemon hostname or IP address (dev machine or balena device) ",
|
|
3383
|
+
"name": "dockerHost",
|
|
3384
|
+
"hasDynamicHelp": false,
|
|
3385
|
+
"multiple": false,
|
|
3386
|
+
"type": "option"
|
|
3387
|
+
},
|
|
3388
|
+
"dockerPort": {
|
|
3389
|
+
"description": "Docker daemon TCP port number (hint: 2375 for balena devices)",
|
|
3390
|
+
"name": "dockerPort",
|
|
3391
|
+
"hasDynamicHelp": false,
|
|
3392
|
+
"multiple": false,
|
|
3393
|
+
"type": "option"
|
|
3394
|
+
},
|
|
3395
|
+
"ca": {
|
|
3396
|
+
"description": "Docker host TLS certificate authority file",
|
|
3397
|
+
"name": "ca",
|
|
3398
|
+
"hasDynamicHelp": false,
|
|
3399
|
+
"multiple": false,
|
|
3400
|
+
"type": "option"
|
|
3401
|
+
},
|
|
3402
|
+
"cert": {
|
|
3403
|
+
"description": "Docker host TLS certificate file",
|
|
3404
|
+
"name": "cert",
|
|
3405
|
+
"hasDynamicHelp": false,
|
|
3406
|
+
"multiple": false,
|
|
3407
|
+
"type": "option"
|
|
3408
|
+
},
|
|
3409
|
+
"key": {
|
|
3410
|
+
"description": "Docker host TLS key file",
|
|
3411
|
+
"name": "key",
|
|
3412
|
+
"hasDynamicHelp": false,
|
|
3413
|
+
"multiple": false,
|
|
3414
|
+
"type": "option"
|
|
3415
|
+
}
|
|
3416
|
+
},
|
|
3417
|
+
"hasDynamicHelp": false,
|
|
3418
|
+
"hiddenAliases": [],
|
|
3419
|
+
"id": "preload",
|
|
3420
|
+
"pluginAlias": "balena-cli",
|
|
3421
|
+
"pluginName": "balena-cli",
|
|
3422
|
+
"pluginType": "core",
|
|
3423
|
+
"strict": true,
|
|
3424
|
+
"enableJsonFlag": false,
|
|
3425
|
+
"authenticated": true,
|
|
3426
|
+
"primary": true,
|
|
3427
|
+
"isESM": false,
|
|
3428
|
+
"relativePath": [
|
|
3429
|
+
"build",
|
|
3430
|
+
"commands",
|
|
3431
|
+
"preload",
|
|
3432
|
+
"index.js"
|
|
3433
|
+
]
|
|
3434
|
+
},
|
|
3312
3435
|
"os:build-config": {
|
|
3313
3436
|
"aliases": [],
|
|
3314
3437
|
"args": {
|
|
@@ -3481,13 +3604,6 @@
|
|
|
3481
3604
|
"multiple": false,
|
|
3482
3605
|
"type": "option"
|
|
3483
3606
|
},
|
|
3484
|
-
"version": {
|
|
3485
|
-
"description": "balenaOS version, for example \"2.32.0\" or \"2.44.0+rev1\"",
|
|
3486
|
-
"name": "version",
|
|
3487
|
-
"hasDynamicHelp": false,
|
|
3488
|
-
"multiple": false,
|
|
3489
|
-
"type": "option"
|
|
3490
|
-
},
|
|
3491
3607
|
"system-connection": {
|
|
3492
3608
|
"char": "c",
|
|
3493
3609
|
"description": "paths to local files to place into the 'system-connections' directory",
|
|
@@ -3858,146 +3974,16 @@
|
|
|
3858
3974
|
"index.js"
|
|
3859
3975
|
]
|
|
3860
3976
|
},
|
|
3861
|
-
"
|
|
3977
|
+
"release:finalize": {
|
|
3862
3978
|
"aliases": [],
|
|
3863
3979
|
"args": {
|
|
3864
|
-
"
|
|
3865
|
-
"description": "the
|
|
3866
|
-
"name": "
|
|
3980
|
+
"commitOrId": {
|
|
3981
|
+
"description": "the commit or ID of the release to finalize",
|
|
3982
|
+
"name": "commitOrId",
|
|
3867
3983
|
"required": true
|
|
3868
3984
|
}
|
|
3869
3985
|
},
|
|
3870
|
-
"description": "
|
|
3871
|
-
"examples": [
|
|
3872
|
-
"$ balena preload balena.img --fleet MyFleet --commit e1f2592fc6ee949e68756d4f4a48e49bff8d72a0",
|
|
3873
|
-
"$ balena preload balena.img --fleet myorg/myfleet --splash-image image.png",
|
|
3874
|
-
"$ balena preload balena.img"
|
|
3875
|
-
],
|
|
3876
|
-
"flags": {
|
|
3877
|
-
"fleet": {
|
|
3878
|
-
"char": "f",
|
|
3879
|
-
"description": "fleet name or slug (preferred)",
|
|
3880
|
-
"name": "fleet",
|
|
3881
|
-
"hasDynamicHelp": false,
|
|
3882
|
-
"multiple": false,
|
|
3883
|
-
"type": "option"
|
|
3884
|
-
},
|
|
3885
|
-
"commit": {
|
|
3886
|
-
"char": "c",
|
|
3887
|
-
"description": "The commit hash of the release to preload. Use \"current\" to specify the current\nrelease (ignored if no appId is given). The current release is usually also the\nlatest, but can be pinned to a specific release. See:\nhttps://www.balena.io/docs/learn/deploy/release-strategy/release-policy/\nhttps://www.balena.io/docs/learn/more/masterclasses/fleet-management/#63-pin-using-the-api\nhttps://github.com/balena-io-examples/staged-releases",
|
|
3888
|
-
"name": "commit",
|
|
3889
|
-
"hasDynamicHelp": false,
|
|
3890
|
-
"multiple": false,
|
|
3891
|
-
"type": "option"
|
|
3892
|
-
},
|
|
3893
|
-
"splash-image": {
|
|
3894
|
-
"char": "s",
|
|
3895
|
-
"description": "path to a png image to replace the splash screen",
|
|
3896
|
-
"name": "splash-image",
|
|
3897
|
-
"hasDynamicHelp": false,
|
|
3898
|
-
"multiple": false,
|
|
3899
|
-
"type": "option"
|
|
3900
|
-
},
|
|
3901
|
-
"dont-check-arch": {
|
|
3902
|
-
"description": "disable architecture compatibility check between image and fleet",
|
|
3903
|
-
"name": "dont-check-arch",
|
|
3904
|
-
"allowNo": false,
|
|
3905
|
-
"type": "boolean"
|
|
3906
|
-
},
|
|
3907
|
-
"pin-device-to-release": {
|
|
3908
|
-
"char": "p",
|
|
3909
|
-
"description": "pin the preloaded device to the preloaded release on provision",
|
|
3910
|
-
"name": "pin-device-to-release",
|
|
3911
|
-
"allowNo": true,
|
|
3912
|
-
"type": "boolean"
|
|
3913
|
-
},
|
|
3914
|
-
"additional-space": {
|
|
3915
|
-
"description": "expand the image by this amount of bytes instead of automatically estimating the required amount",
|
|
3916
|
-
"name": "additional-space",
|
|
3917
|
-
"hasDynamicHelp": false,
|
|
3918
|
-
"multiple": false,
|
|
3919
|
-
"type": "option"
|
|
3920
|
-
},
|
|
3921
|
-
"add-certificate": {
|
|
3922
|
-
"description": "Add the given certificate (in PEM format) to /etc/ssl/certs in the preloading container.\nThe file name must end with '.crt' and must not be already contained in the preloader's\n/etc/ssl/certs folder.\nCan be repeated to add multiple certificates.",
|
|
3923
|
-
"name": "add-certificate",
|
|
3924
|
-
"hasDynamicHelp": false,
|
|
3925
|
-
"multiple": true,
|
|
3926
|
-
"type": "option"
|
|
3927
|
-
},
|
|
3928
|
-
"docker": {
|
|
3929
|
-
"char": "P",
|
|
3930
|
-
"description": "Path to a local docker socket (e.g. /var/run/docker.sock)",
|
|
3931
|
-
"name": "docker",
|
|
3932
|
-
"hasDynamicHelp": false,
|
|
3933
|
-
"multiple": false,
|
|
3934
|
-
"type": "option"
|
|
3935
|
-
},
|
|
3936
|
-
"dockerHost": {
|
|
3937
|
-
"char": "h",
|
|
3938
|
-
"description": "Docker daemon hostname or IP address (dev machine or balena device) ",
|
|
3939
|
-
"name": "dockerHost",
|
|
3940
|
-
"hasDynamicHelp": false,
|
|
3941
|
-
"multiple": false,
|
|
3942
|
-
"type": "option"
|
|
3943
|
-
},
|
|
3944
|
-
"dockerPort": {
|
|
3945
|
-
"description": "Docker daemon TCP port number (hint: 2375 for balena devices)",
|
|
3946
|
-
"name": "dockerPort",
|
|
3947
|
-
"hasDynamicHelp": false,
|
|
3948
|
-
"multiple": false,
|
|
3949
|
-
"type": "option"
|
|
3950
|
-
},
|
|
3951
|
-
"ca": {
|
|
3952
|
-
"description": "Docker host TLS certificate authority file",
|
|
3953
|
-
"name": "ca",
|
|
3954
|
-
"hasDynamicHelp": false,
|
|
3955
|
-
"multiple": false,
|
|
3956
|
-
"type": "option"
|
|
3957
|
-
},
|
|
3958
|
-
"cert": {
|
|
3959
|
-
"description": "Docker host TLS certificate file",
|
|
3960
|
-
"name": "cert",
|
|
3961
|
-
"hasDynamicHelp": false,
|
|
3962
|
-
"multiple": false,
|
|
3963
|
-
"type": "option"
|
|
3964
|
-
},
|
|
3965
|
-
"key": {
|
|
3966
|
-
"description": "Docker host TLS key file",
|
|
3967
|
-
"name": "key",
|
|
3968
|
-
"hasDynamicHelp": false,
|
|
3969
|
-
"multiple": false,
|
|
3970
|
-
"type": "option"
|
|
3971
|
-
}
|
|
3972
|
-
},
|
|
3973
|
-
"hasDynamicHelp": false,
|
|
3974
|
-
"hiddenAliases": [],
|
|
3975
|
-
"id": "preload",
|
|
3976
|
-
"pluginAlias": "balena-cli",
|
|
3977
|
-
"pluginName": "balena-cli",
|
|
3978
|
-
"pluginType": "core",
|
|
3979
|
-
"strict": true,
|
|
3980
|
-
"enableJsonFlag": false,
|
|
3981
|
-
"authenticated": true,
|
|
3982
|
-
"primary": true,
|
|
3983
|
-
"isESM": false,
|
|
3984
|
-
"relativePath": [
|
|
3985
|
-
"build",
|
|
3986
|
-
"commands",
|
|
3987
|
-
"preload",
|
|
3988
|
-
"index.js"
|
|
3989
|
-
]
|
|
3990
|
-
},
|
|
3991
|
-
"release:finalize": {
|
|
3992
|
-
"aliases": [],
|
|
3993
|
-
"args": {
|
|
3994
|
-
"commitOrId": {
|
|
3995
|
-
"description": "the commit or ID of the release to finalize",
|
|
3996
|
-
"name": "commitOrId",
|
|
3997
|
-
"required": true
|
|
3998
|
-
}
|
|
3999
|
-
},
|
|
4000
|
-
"description": "Finalize a release.\n\nFinalize a release. Releases can be \"draft\" or \"final\", and this command\nchanges a draft release into a final release. Draft releases can be created\nwith the `--draft` option of the `balena build` or `balena deploy`\ncommands.\n\nDraft releases are not automatically deployed to devices tracking the latest\nrelease. For a draft release to be deployed to a device, the device should be\nexplicity pinned to that release. Conversely, final releases may trigger immediate\ndeployment to unpinned devices (subject to a device's polling period) and, for\nthis reason, final releases cannot be changed back to draft status.",
|
|
3986
|
+
"description": "Finalize a release.\n\nFinalize a release. Releases can be \"draft\" or \"final\", and this command\nchanges a draft release into a final release. Draft releases can be created\nwith the `--draft` option of the `balena build` or `balena deploy`\ncommands.\n\nDraft releases are not automatically deployed to devices tracking the latest\nrelease. For a draft release to be deployed to a device, the device should be\nexplicity pinned to that release. Conversely, final releases may trigger immediate\ndeployment to unpinned devices (subject to a device's polling period) and, for\nthis reason, final releases cannot be changed back to draft status.",
|
|
4001
3987
|
"examples": [
|
|
4002
3988
|
"$ balena release finalize a777f7345fe3d655c1c981aa642e5555",
|
|
4003
3989
|
"$ balena release finalize 1234567"
|
|
@@ -4175,6 +4161,30 @@
|
|
|
4175
4161
|
"validate.js"
|
|
4176
4162
|
]
|
|
4177
4163
|
},
|
|
4164
|
+
"settings": {
|
|
4165
|
+
"aliases": [],
|
|
4166
|
+
"args": {},
|
|
4167
|
+
"description": "Print current settings.\n\nUse this command to display the current balena CLI settings.",
|
|
4168
|
+
"examples": [
|
|
4169
|
+
"$ balena settings"
|
|
4170
|
+
],
|
|
4171
|
+
"flags": {},
|
|
4172
|
+
"hasDynamicHelp": false,
|
|
4173
|
+
"hiddenAliases": [],
|
|
4174
|
+
"id": "settings",
|
|
4175
|
+
"pluginAlias": "balena-cli",
|
|
4176
|
+
"pluginName": "balena-cli",
|
|
4177
|
+
"pluginType": "core",
|
|
4178
|
+
"strict": true,
|
|
4179
|
+
"enableJsonFlag": false,
|
|
4180
|
+
"isESM": false,
|
|
4181
|
+
"relativePath": [
|
|
4182
|
+
"build",
|
|
4183
|
+
"commands",
|
|
4184
|
+
"settings",
|
|
4185
|
+
"index.js"
|
|
4186
|
+
]
|
|
4187
|
+
},
|
|
4178
4188
|
"release-asset:delete": {
|
|
4179
4189
|
"aliases": [],
|
|
4180
4190
|
"args": {
|
|
@@ -4391,27 +4401,64 @@
|
|
|
4391
4401
|
"upload.js"
|
|
4392
4402
|
]
|
|
4393
4403
|
},
|
|
4394
|
-
"
|
|
4404
|
+
"support": {
|
|
4395
4405
|
"aliases": [],
|
|
4396
|
-
"args": {
|
|
4397
|
-
|
|
4406
|
+
"args": {
|
|
4407
|
+
"action": {
|
|
4408
|
+
"description": "enable|disable support access",
|
|
4409
|
+
"name": "action",
|
|
4410
|
+
"options": [
|
|
4411
|
+
"enable",
|
|
4412
|
+
"disable"
|
|
4413
|
+
]
|
|
4414
|
+
}
|
|
4415
|
+
},
|
|
4416
|
+
"description": "Grant or revoke support access for devices or fleets.\n\nGrant or revoke balena support agent access to devices or fleets\non balenaCloud. (This command does not apply to openBalena.)\nAccess will be automatically revoked once the specified duration has elapsed.\n\nDuration defaults to 24h, but can be specified using --duration flag in days\nor hours, e.g. '12h', '2d'.\n\nBoth --device and --fleet flags accept multiple values, specified as\na comma-separated list (with no spaces).\n\nFleets may be specified by fleet name or slug. Fleet slugs are\nthe recommended option, as they are unique and unambiguous. Slugs can be\nlisted with the `balena fleet list` command. Note that slugs may change if the\nfleet is renamed. Fleet names are not unique and may result in \"Fleet is\nambiguous\" errors at any time (even if it \"used to work in the past\"), for\nexample if the name clashes with a newly created public fleet, or with fleets\nfrom other balena accounts that you may be invited to join under any role.\nFor this reason, fleet names are especially discouraged in scripts (e.g. CI\nenvironments).",
|
|
4398
4417
|
"examples": [
|
|
4399
|
-
"
|
|
4418
|
+
"balena support enable --device ab346f,cd457a --duration 3d",
|
|
4419
|
+
"balena support enable --fleet myFleet --duration 12h",
|
|
4420
|
+
"balena support disable -f myorg/myfleet"
|
|
4400
4421
|
],
|
|
4401
|
-
"flags": {
|
|
4422
|
+
"flags": {
|
|
4423
|
+
"device": {
|
|
4424
|
+
"char": "d",
|
|
4425
|
+
"description": "comma-separated list (no spaces) of device UUIDs",
|
|
4426
|
+
"name": "device",
|
|
4427
|
+
"hasDynamicHelp": false,
|
|
4428
|
+
"multiple": false,
|
|
4429
|
+
"type": "option"
|
|
4430
|
+
},
|
|
4431
|
+
"fleet": {
|
|
4432
|
+
"char": "f",
|
|
4433
|
+
"description": "comma-separated list (no spaces) of fleet names or slugs (preferred)",
|
|
4434
|
+
"name": "fleet",
|
|
4435
|
+
"hasDynamicHelp": false,
|
|
4436
|
+
"multiple": false,
|
|
4437
|
+
"type": "option"
|
|
4438
|
+
},
|
|
4439
|
+
"duration": {
|
|
4440
|
+
"char": "t",
|
|
4441
|
+
"description": "length of time to enable support for, in (h)ours or (d)ays, e.g. 12h, 2d",
|
|
4442
|
+
"name": "duration",
|
|
4443
|
+
"hasDynamicHelp": false,
|
|
4444
|
+
"multiple": false,
|
|
4445
|
+
"type": "option"
|
|
4446
|
+
}
|
|
4447
|
+
},
|
|
4402
4448
|
"hasDynamicHelp": false,
|
|
4403
4449
|
"hiddenAliases": [],
|
|
4404
|
-
"id": "
|
|
4450
|
+
"id": "support",
|
|
4405
4451
|
"pluginAlias": "balena-cli",
|
|
4406
4452
|
"pluginName": "balena-cli",
|
|
4407
4453
|
"pluginType": "core",
|
|
4408
4454
|
"strict": true,
|
|
4409
4455
|
"enableJsonFlag": false,
|
|
4456
|
+
"authenticated": true,
|
|
4410
4457
|
"isESM": false,
|
|
4411
4458
|
"relativePath": [
|
|
4412
4459
|
"build",
|
|
4413
4460
|
"commands",
|
|
4414
|
-
"
|
|
4461
|
+
"support",
|
|
4415
4462
|
"index.js"
|
|
4416
4463
|
]
|
|
4417
4464
|
},
|
|
@@ -4563,67 +4610,6 @@
|
|
|
4563
4610
|
"rm.js"
|
|
4564
4611
|
]
|
|
4565
4612
|
},
|
|
4566
|
-
"support": {
|
|
4567
|
-
"aliases": [],
|
|
4568
|
-
"args": {
|
|
4569
|
-
"action": {
|
|
4570
|
-
"description": "enable|disable support access",
|
|
4571
|
-
"name": "action",
|
|
4572
|
-
"options": [
|
|
4573
|
-
"enable",
|
|
4574
|
-
"disable"
|
|
4575
|
-
]
|
|
4576
|
-
}
|
|
4577
|
-
},
|
|
4578
|
-
"description": "Grant or revoke support access for devices or fleets.\n\nGrant or revoke balena support agent access to devices or fleets\non balenaCloud. (This command does not apply to openBalena.)\nAccess will be automatically revoked once the specified duration has elapsed.\n\nDuration defaults to 24h, but can be specified using --duration flag in days\nor hours, e.g. '12h', '2d'.\n\nBoth --device and --fleet flags accept multiple values, specified as\na comma-separated list (with no spaces).\n\nFleets may be specified by fleet name or slug. Fleet slugs are\nthe recommended option, as they are unique and unambiguous. Slugs can be\nlisted with the `balena fleet list` command. Note that slugs may change if the\nfleet is renamed. Fleet names are not unique and may result in \"Fleet is\nambiguous\" errors at any time (even if it \"used to work in the past\"), for\nexample if the name clashes with a newly created public fleet, or with fleets\nfrom other balena accounts that you may be invited to join under any role.\nFor this reason, fleet names are especially discouraged in scripts (e.g. CI\nenvironments).",
|
|
4579
|
-
"examples": [
|
|
4580
|
-
"balena support enable --device ab346f,cd457a --duration 3d",
|
|
4581
|
-
"balena support enable --fleet myFleet --duration 12h",
|
|
4582
|
-
"balena support disable -f myorg/myfleet"
|
|
4583
|
-
],
|
|
4584
|
-
"flags": {
|
|
4585
|
-
"device": {
|
|
4586
|
-
"char": "d",
|
|
4587
|
-
"description": "comma-separated list (no spaces) of device UUIDs",
|
|
4588
|
-
"name": "device",
|
|
4589
|
-
"hasDynamicHelp": false,
|
|
4590
|
-
"multiple": false,
|
|
4591
|
-
"type": "option"
|
|
4592
|
-
},
|
|
4593
|
-
"fleet": {
|
|
4594
|
-
"char": "f",
|
|
4595
|
-
"description": "comma-separated list (no spaces) of fleet names or slugs (preferred)",
|
|
4596
|
-
"name": "fleet",
|
|
4597
|
-
"hasDynamicHelp": false,
|
|
4598
|
-
"multiple": false,
|
|
4599
|
-
"type": "option"
|
|
4600
|
-
},
|
|
4601
|
-
"duration": {
|
|
4602
|
-
"char": "t",
|
|
4603
|
-
"description": "length of time to enable support for, in (h)ours or (d)ays, e.g. 12h, 2d",
|
|
4604
|
-
"name": "duration",
|
|
4605
|
-
"hasDynamicHelp": false,
|
|
4606
|
-
"multiple": false,
|
|
4607
|
-
"type": "option"
|
|
4608
|
-
}
|
|
4609
|
-
},
|
|
4610
|
-
"hasDynamicHelp": false,
|
|
4611
|
-
"hiddenAliases": [],
|
|
4612
|
-
"id": "support",
|
|
4613
|
-
"pluginAlias": "balena-cli",
|
|
4614
|
-
"pluginName": "balena-cli",
|
|
4615
|
-
"pluginType": "core",
|
|
4616
|
-
"strict": true,
|
|
4617
|
-
"enableJsonFlag": false,
|
|
4618
|
-
"authenticated": true,
|
|
4619
|
-
"isESM": false,
|
|
4620
|
-
"relativePath": [
|
|
4621
|
-
"build",
|
|
4622
|
-
"commands",
|
|
4623
|
-
"support",
|
|
4624
|
-
"index.js"
|
|
4625
|
-
]
|
|
4626
|
-
},
|
|
4627
4613
|
"tag:list": {
|
|
4628
4614
|
"aliases": [
|
|
4629
4615
|
"tags"
|
|
@@ -4847,6 +4833,28 @@
|
|
|
4847
4833
|
"set.js"
|
|
4848
4834
|
]
|
|
4849
4835
|
},
|
|
4836
|
+
"util:available-drives": {
|
|
4837
|
+
"aliases": [],
|
|
4838
|
+
"args": {},
|
|
4839
|
+
"description": "List available drives.\n\nList available drives which are usable for writing an OS image to.\nDoes not list system drives.",
|
|
4840
|
+
"flags": {},
|
|
4841
|
+
"hasDynamicHelp": false,
|
|
4842
|
+
"hiddenAliases": [],
|
|
4843
|
+
"id": "util:available-drives",
|
|
4844
|
+
"pluginAlias": "balena-cli",
|
|
4845
|
+
"pluginName": "balena-cli",
|
|
4846
|
+
"pluginType": "core",
|
|
4847
|
+
"strict": true,
|
|
4848
|
+
"enableJsonFlag": false,
|
|
4849
|
+
"offlineCompatible": true,
|
|
4850
|
+
"isESM": false,
|
|
4851
|
+
"relativePath": [
|
|
4852
|
+
"build",
|
|
4853
|
+
"commands",
|
|
4854
|
+
"util",
|
|
4855
|
+
"available-drives.js"
|
|
4856
|
+
]
|
|
4857
|
+
},
|
|
4850
4858
|
"version": {
|
|
4851
4859
|
"aliases": [],
|
|
4852
4860
|
"args": {},
|
|
@@ -4915,29 +4923,7 @@
|
|
|
4915
4923
|
"whoami",
|
|
4916
4924
|
"index.js"
|
|
4917
4925
|
]
|
|
4918
|
-
},
|
|
4919
|
-
"util:available-drives": {
|
|
4920
|
-
"aliases": [],
|
|
4921
|
-
"args": {},
|
|
4922
|
-
"description": "List available drives.\n\nList available drives which are usable for writing an OS image to.\nDoes not list system drives.",
|
|
4923
|
-
"flags": {},
|
|
4924
|
-
"hasDynamicHelp": false,
|
|
4925
|
-
"hiddenAliases": [],
|
|
4926
|
-
"id": "util:available-drives",
|
|
4927
|
-
"pluginAlias": "balena-cli",
|
|
4928
|
-
"pluginName": "balena-cli",
|
|
4929
|
-
"pluginType": "core",
|
|
4930
|
-
"strict": true,
|
|
4931
|
-
"enableJsonFlag": false,
|
|
4932
|
-
"offlineCompatible": true,
|
|
4933
|
-
"isESM": false,
|
|
4934
|
-
"relativePath": [
|
|
4935
|
-
"build",
|
|
4936
|
-
"commands",
|
|
4937
|
-
"util",
|
|
4938
|
-
"available-drives.js"
|
|
4939
|
-
]
|
|
4940
4926
|
}
|
|
4941
4927
|
},
|
|
4942
|
-
"version": "
|
|
4928
|
+
"version": "23.0.0"
|
|
4943
4929
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "balena-cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "23.0.0-build-os-configure-drop-version-d27a2f6cbee3b71f9a61c03fa623ab42b68b3fa1-1",
|
|
4
4
|
"description": "The official balena Command Line Interface",
|
|
5
5
|
"main": "./build/app.js",
|
|
6
6
|
"homepage": "https://github.com/balena-io/balena-cli",
|
|
@@ -257,6 +257,6 @@
|
|
|
257
257
|
"balena-request": "14.0.6"
|
|
258
258
|
},
|
|
259
259
|
"versionist": {
|
|
260
|
-
"publishedAt": "2025-09-
|
|
260
|
+
"publishedAt": "2025-09-01T15:40:37.358Z"
|
|
261
261
|
}
|
|
262
262
|
}
|
|
@@ -115,10 +115,6 @@ export default class ConfigGenerateCmd extends Command {
|
|
|
115
115
|
description:
|
|
116
116
|
'supervisor cloud polling interval in minutes (e.g. for device variables)',
|
|
117
117
|
}),
|
|
118
|
-
'initial-device-name': Flags.string({
|
|
119
|
-
description:
|
|
120
|
-
'This option will set the device name when the device provisions',
|
|
121
|
-
}),
|
|
122
118
|
'provisioning-key-name': Flags.string({
|
|
123
119
|
description: 'custom key name assigned to generated provisioning api key',
|
|
124
120
|
exclusive: ['device'],
|
|
@@ -227,35 +223,26 @@ export default class ConfigGenerateCmd extends Command {
|
|
|
227
223
|
'../../utils/config'
|
|
228
224
|
);
|
|
229
225
|
|
|
230
|
-
let
|
|
226
|
+
let config;
|
|
231
227
|
if (device) {
|
|
232
|
-
|
|
228
|
+
config = await generateDeviceConfig(
|
|
233
229
|
device,
|
|
234
|
-
options.deviceApiKey,
|
|
230
|
+
options.deviceApiKey || options['generate-device-api-key'] || undefined,
|
|
235
231
|
answers,
|
|
236
232
|
);
|
|
237
233
|
} else if (application) {
|
|
238
234
|
answers.deviceType = deviceType;
|
|
239
|
-
|
|
240
|
-
} else {
|
|
241
|
-
throw new Error('Unrecognized state: neither device nor application set');
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
if (
|
|
245
|
-
options['initial-device-name'] != null &&
|
|
246
|
-
options['initial-device-name'] !== ''
|
|
247
|
-
) {
|
|
248
|
-
configJson.initialDeviceName = options['initial-device-name'];
|
|
235
|
+
config = await generateApplicationConfig(application, answers);
|
|
249
236
|
}
|
|
250
237
|
|
|
251
238
|
// Output
|
|
252
239
|
if (options.output != null) {
|
|
253
240
|
const fs = await import('fs');
|
|
254
|
-
await fs.promises.writeFile(options.output, JSON.stringify(
|
|
241
|
+
await fs.promises.writeFile(options.output, JSON.stringify(config));
|
|
255
242
|
}
|
|
256
243
|
|
|
257
244
|
const prettyjson = await import('prettyjson');
|
|
258
|
-
console.log(prettyjson.render(
|
|
245
|
+
console.log(prettyjson.render(config));
|
|
259
246
|
}
|
|
260
247
|
|
|
261
248
|
protected readonly missingDeviceOrAppMessage = stripIndent`
|
|
@@ -134,9 +134,6 @@ export default class OsConfigureCmd extends Command {
|
|
|
134
134
|
description:
|
|
135
135
|
'This option will set the device name when the device provisions',
|
|
136
136
|
}),
|
|
137
|
-
version: Flags.string({
|
|
138
|
-
description: 'balenaOS version, for example "2.32.0" or "2.44.0+rev1"',
|
|
139
|
-
}),
|
|
140
137
|
'system-connection': Flags.string({
|
|
141
138
|
multiple: true,
|
|
142
139
|
char: 'c',
|
|
@@ -208,12 +205,7 @@ export default class OsConfigureCmd extends Command {
|
|
|
208
205
|
|
|
209
206
|
const { normalizeOsVersion } = await import('../../utils/normalization');
|
|
210
207
|
const osVersion = normalizeOsVersion(
|
|
211
|
-
|
|
212
|
-
(await getOsVersionFromImage(
|
|
213
|
-
params.image,
|
|
214
|
-
deviceTypeManifest,
|
|
215
|
-
devInit,
|
|
216
|
-
)),
|
|
208
|
+
await getOsVersionFromImage(params.image, deviceTypeManifest, devInit),
|
|
217
209
|
);
|
|
218
210
|
|
|
219
211
|
const { validateDevOptionAndWarn } = await import('../../utils/config');
|
|
@@ -251,7 +243,7 @@ export default class OsConfigureCmd extends Command {
|
|
|
251
243
|
}
|
|
252
244
|
|
|
253
245
|
if (
|
|
254
|
-
options['initial-device-name']
|
|
246
|
+
options['initial-device-name'] &&
|
|
255
247
|
options['initial-device-name'] !== ''
|
|
256
248
|
) {
|
|
257
249
|
configJson!.initialDeviceName = options['initial-device-name'];
|
|
@@ -338,9 +330,7 @@ async function getOsVersionFromImage(
|
|
|
338
330
|
deviceTypeManifest,
|
|
339
331
|
);
|
|
340
332
|
if (!osVersion) {
|
|
341
|
-
throw new ExpectedError(
|
|
342
|
-
Could not read OS version from the image. Please specify the balenaOS
|
|
343
|
-
version manually with the --version command-line option.`);
|
|
333
|
+
throw new ExpectedError('Could not read OS version from the image.');
|
|
344
334
|
}
|
|
345
335
|
return osVersion;
|
|
346
336
|
}
|