balena-cli 23.2.7-build-os-configure-config-default-ethernet-32cb8037642bfe7c912758683629cc5d932c2f93-1 → 23.2.7-build-os-configure-config-default-ethernet-37b4a993c4141674b7d0d6f02f2bad9519180458-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 +1 -0
- package/build/commands/os/configure.js +14 -14
- package/build/commands/os/configure.js.map +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/oclif.manifest.json +337 -337
- package/package.json +2 -2
- package/src/commands/os/configure.ts +23 -22
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
6
6
|
|
|
7
7
|
## 23.2.7 - 2025-12-05
|
|
8
8
|
|
|
9
|
+
* os configure: Avoid asking interactive questions when --config is used [Thodoris Greasidis]
|
|
9
10
|
* os configure --config: Avoid interactive questions by defaulting empty networking to ethernet [Thodoris Greasidis]
|
|
10
11
|
|
|
11
12
|
## 23.2.6 - 2025-12-05
|
|
@@ -58,10 +58,19 @@ class OsConfigureCmd extends core_1.Command {
|
|
|
58
58
|
await validateDevOptionAndWarn(developmentMode, osVersion);
|
|
59
59
|
const { validateSecureBootOptionAndWarn } = await Promise.resolve().then(() => require('../../utils/config'));
|
|
60
60
|
await validateSecureBootOptionAndWarn(secureBoot, deviceTypeSlug, osVersion);
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
const baseAnswers = configJson == null
|
|
62
|
+
? await askQuestionsForDeviceType(deviceTypeManifest, options)
|
|
63
|
+
: {
|
|
64
|
+
appUpdatePollInterval: configJson.appUpdatePollInterval,
|
|
65
|
+
network: !configJson.wifiSsid && !configJson.wifiKey ? 'ethernet' : 'wifi',
|
|
66
|
+
};
|
|
67
|
+
const answers = {
|
|
68
|
+
...baseAnswers,
|
|
69
|
+
deviceType: deviceTypeSlug,
|
|
70
|
+
version: osVersion,
|
|
71
|
+
developmentMode: developmentMode,
|
|
72
|
+
secureBoot: secureBoot,
|
|
73
|
+
};
|
|
65
74
|
if (configJson == null) {
|
|
66
75
|
answers.provisioningKeyName = options['provisioning-key-name'];
|
|
67
76
|
answers.provisioningKeyExpiryDate =
|
|
@@ -70,7 +79,6 @@ class OsConfigureCmd extends core_1.Command {
|
|
|
70
79
|
configJson = await generateDeviceConfig(device, undefined, answers);
|
|
71
80
|
}
|
|
72
81
|
else {
|
|
73
|
-
answers.deviceType = deviceTypeSlug;
|
|
74
82
|
configJson = await generateApplicationConfig(app, answers);
|
|
75
83
|
}
|
|
76
84
|
if (options['initial-device-name'] != null &&
|
|
@@ -235,7 +243,7 @@ async function checkDeviceTypeCompatibility(deviceType, app) {
|
|
|
235
243
|
}
|
|
236
244
|
}
|
|
237
245
|
}
|
|
238
|
-
async function askQuestionsForDeviceType(deviceType, options
|
|
246
|
+
async function askQuestionsForDeviceType(deviceType, options) {
|
|
239
247
|
var _a;
|
|
240
248
|
const answerSources = [
|
|
241
249
|
{
|
|
@@ -247,9 +255,6 @@ async function askQuestionsForDeviceType(deviceType, options, configJson) {
|
|
|
247
255
|
const defaultAnswers = {};
|
|
248
256
|
const questions = (_a = deviceType.options) !== null && _a !== void 0 ? _a : [];
|
|
249
257
|
let extraOpts;
|
|
250
|
-
if (configJson != null) {
|
|
251
|
-
answerSources.push(configJson);
|
|
252
|
-
}
|
|
253
258
|
if (!options.advanced) {
|
|
254
259
|
const advancedGroup = questions.find((question) => question.name === 'advanced' && question.isGroup);
|
|
255
260
|
if (advancedGroup != null && Object.keys(advancedGroup).length > 0) {
|
|
@@ -266,11 +271,6 @@ async function askQuestionsForDeviceType(deviceType, options, configJson) {
|
|
|
266
271
|
}
|
|
267
272
|
}
|
|
268
273
|
if (!defaultAnswers.network &&
|
|
269
|
-
!defaultAnswers.wifiSsid &&
|
|
270
|
-
!defaultAnswers.wifiKey) {
|
|
271
|
-
defaultAnswers.network = 'ethernet';
|
|
272
|
-
}
|
|
273
|
-
else if (!defaultAnswers.network &&
|
|
274
274
|
(defaultAnswers.wifiSsid || defaultAnswers.wifiKey)) {
|
|
275
275
|
defaultAnswers.network = 'wifi';
|
|
276
276
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configure.js","sourceRoot":"","sources":["../../../src/commands/os/configure.ts"],"names":[],"mappings":";;AAiBA,sCAAmD;AAGnD,yCAA6C;AAC7C,+CAA+C;AAC/C,2CAAyE;AACzE,mDAI8B;AAG9B,MAAM,kBAAkB,GAAG,qBAAqB,CAAC;AAkBjD,MAAqB,cAAe,SAAQ,cAAO;IAsH3C,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,sBAAsB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAE9C,MAAM,OAAO,GAAG,2CAAa,oBAAoB,EAAC,CAAC;QACnD,MAAM,EACL,oBAAoB,EACpB,yBAAyB,EACzB,yBAAyB,GACzB,GAAG,2CAAa,oBAAoB,EAAC,CAAC;QACvC,MAAM,OAAO,GAAG,2CAAa,qBAAqB,EAAC,CAAC;QACpD,MAAM,EAAE,cAAc,EAAE,GAAG,2CAAa,iBAAiB,EAAC,CAAC;QAE3D,IAAI,GAEQ,CAAC;QACb,IAAI,MAAM,CAAC;QACX,IAAI,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;QAC5C,IAAI,aAAa,GAAgC,OAAO,CAAC,KAAK,CAAC;QAC/D,IAAI,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;QACpC,IAAI,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC;QAElC,MAAM,MAAM,GAAG,IAAA,mBAAY,GAAE,CAAC;QAC9B,IAAI,UAAiC,CAAC;QACtC,IAAI,OAAO,CAAC,MAAM,IAAI,IAAI,EA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qBAAqB,CAAC,OAAiB;IAC/C,OAAO,MAAM,CAAC,WAAW,CACxB,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QAC5C,IAAI,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;YAC/B,OAAO;gBACN,GAAG;qBACD,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC;qBAC3B,OAAO,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;gBACjE,KAAK;aACL,CAAC;QACH,CAAC;QACD,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACrB,CAAC,CAAC,CACF,CAAC;AACH,CAAC"}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "balena-cli",
|
|
3
|
-
"version": "23.2.7-build-os-configure-config-default-ethernet-
|
|
3
|
+
"version": "23.2.7-build-os-configure-config-default-ethernet-37b4a993c4141674b7d0d6f02f2bad9519180458-1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "balena-cli",
|
|
9
|
-
"version": "23.2.7-build-os-configure-config-default-ethernet-
|
|
9
|
+
"version": "23.2.7-build-os-configure-config-default-ethernet-37b4a993c4141674b7d0d6f02f2bad9519180458-1",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"dependencies": {
|
package/oclif.manifest.json
CHANGED
|
@@ -160,56 +160,6 @@
|
|
|
160
160
|
"create.js"
|
|
161
161
|
]
|
|
162
162
|
},
|
|
163
|
-
"block:create": {
|
|
164
|
-
"aliases": [],
|
|
165
|
-
"args": {
|
|
166
|
-
"name": {
|
|
167
|
-
"description": "block name",
|
|
168
|
-
"name": "name",
|
|
169
|
-
"required": true
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
"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.",
|
|
173
|
-
"examples": [
|
|
174
|
-
"$ balena block create MyBlock",
|
|
175
|
-
"$ balena block create MyBlock --organization mmyorg",
|
|
176
|
-
"$ balena block create MyBlock -o myorg --type raspberry-pi"
|
|
177
|
-
],
|
|
178
|
-
"flags": {
|
|
179
|
-
"organization": {
|
|
180
|
-
"char": "o",
|
|
181
|
-
"description": "handle of the organization the block should belong to",
|
|
182
|
-
"name": "organization",
|
|
183
|
-
"hasDynamicHelp": false,
|
|
184
|
-
"multiple": false,
|
|
185
|
-
"type": "option"
|
|
186
|
-
},
|
|
187
|
-
"type": {
|
|
188
|
-
"char": "t",
|
|
189
|
-
"description": "block device type (Check available types with `balena device-type list`)",
|
|
190
|
-
"name": "type",
|
|
191
|
-
"hasDynamicHelp": false,
|
|
192
|
-
"multiple": false,
|
|
193
|
-
"type": "option"
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
"hasDynamicHelp": false,
|
|
197
|
-
"hiddenAliases": [],
|
|
198
|
-
"id": "block:create",
|
|
199
|
-
"pluginAlias": "balena-cli",
|
|
200
|
-
"pluginName": "balena-cli",
|
|
201
|
-
"pluginType": "core",
|
|
202
|
-
"strict": true,
|
|
203
|
-
"enableJsonFlag": false,
|
|
204
|
-
"authenticated": true,
|
|
205
|
-
"isESM": false,
|
|
206
|
-
"relativePath": [
|
|
207
|
-
"build",
|
|
208
|
-
"commands",
|
|
209
|
-
"block",
|
|
210
|
-
"create.js"
|
|
211
|
-
]
|
|
212
|
-
},
|
|
213
163
|
"build": {
|
|
214
164
|
"aliases": [],
|
|
215
165
|
"args": {
|
|
@@ -412,6 +362,56 @@
|
|
|
412
362
|
"index.js"
|
|
413
363
|
]
|
|
414
364
|
},
|
|
365
|
+
"block:create": {
|
|
366
|
+
"aliases": [],
|
|
367
|
+
"args": {
|
|
368
|
+
"name": {
|
|
369
|
+
"description": "block name",
|
|
370
|
+
"name": "name",
|
|
371
|
+
"required": true
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
"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.",
|
|
375
|
+
"examples": [
|
|
376
|
+
"$ balena block create MyBlock",
|
|
377
|
+
"$ balena block create MyBlock --organization mmyorg",
|
|
378
|
+
"$ balena block create MyBlock -o myorg --type raspberry-pi"
|
|
379
|
+
],
|
|
380
|
+
"flags": {
|
|
381
|
+
"organization": {
|
|
382
|
+
"char": "o",
|
|
383
|
+
"description": "handle of the organization the block should belong to",
|
|
384
|
+
"name": "organization",
|
|
385
|
+
"hasDynamicHelp": false,
|
|
386
|
+
"multiple": false,
|
|
387
|
+
"type": "option"
|
|
388
|
+
},
|
|
389
|
+
"type": {
|
|
390
|
+
"char": "t",
|
|
391
|
+
"description": "block device type (Check available types with `balena device-type list`)",
|
|
392
|
+
"name": "type",
|
|
393
|
+
"hasDynamicHelp": false,
|
|
394
|
+
"multiple": false,
|
|
395
|
+
"type": "option"
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
"hasDynamicHelp": false,
|
|
399
|
+
"hiddenAliases": [],
|
|
400
|
+
"id": "block:create",
|
|
401
|
+
"pluginAlias": "balena-cli",
|
|
402
|
+
"pluginName": "balena-cli",
|
|
403
|
+
"pluginType": "core",
|
|
404
|
+
"strict": true,
|
|
405
|
+
"enableJsonFlag": false,
|
|
406
|
+
"authenticated": true,
|
|
407
|
+
"isESM": false,
|
|
408
|
+
"relativePath": [
|
|
409
|
+
"build",
|
|
410
|
+
"commands",
|
|
411
|
+
"block",
|
|
412
|
+
"create.js"
|
|
413
|
+
]
|
|
414
|
+
},
|
|
415
415
|
"config:generate": {
|
|
416
416
|
"aliases": [],
|
|
417
417
|
"args": {},
|
|
@@ -3002,6 +3002,88 @@
|
|
|
3002
3002
|
"index.js"
|
|
3003
3003
|
]
|
|
3004
3004
|
},
|
|
3005
|
+
"local:configure": {
|
|
3006
|
+
"aliases": [],
|
|
3007
|
+
"args": {
|
|
3008
|
+
"target": {
|
|
3009
|
+
"description": "path of drive or image to configure",
|
|
3010
|
+
"name": "target",
|
|
3011
|
+
"required": true
|
|
3012
|
+
}
|
|
3013
|
+
},
|
|
3014
|
+
"description": "(Re)configure a balenaOS drive or image.\n\nConfigure or reconfigure a balenaOS drive or image.",
|
|
3015
|
+
"examples": [
|
|
3016
|
+
"$ balena local configure /dev/sdc",
|
|
3017
|
+
"$ balena local configure path/to/image.img"
|
|
3018
|
+
],
|
|
3019
|
+
"flags": {},
|
|
3020
|
+
"hasDynamicHelp": false,
|
|
3021
|
+
"hiddenAliases": [],
|
|
3022
|
+
"id": "local:configure",
|
|
3023
|
+
"pluginAlias": "balena-cli",
|
|
3024
|
+
"pluginName": "balena-cli",
|
|
3025
|
+
"pluginType": "core",
|
|
3026
|
+
"strict": true,
|
|
3027
|
+
"enableJsonFlag": false,
|
|
3028
|
+
"root": true,
|
|
3029
|
+
"offlineCompatible": true,
|
|
3030
|
+
"isESM": false,
|
|
3031
|
+
"relativePath": [
|
|
3032
|
+
"build",
|
|
3033
|
+
"commands",
|
|
3034
|
+
"local",
|
|
3035
|
+
"configure.js"
|
|
3036
|
+
]
|
|
3037
|
+
},
|
|
3038
|
+
"local:flash": {
|
|
3039
|
+
"aliases": [],
|
|
3040
|
+
"args": {
|
|
3041
|
+
"image": {
|
|
3042
|
+
"description": "path to OS image",
|
|
3043
|
+
"name": "image",
|
|
3044
|
+
"required": true
|
|
3045
|
+
}
|
|
3046
|
+
},
|
|
3047
|
+
"description": "Flash an image to a drive.\n\nFlash a balenaOS image to a drive.\nImage file may be one of: .img|.zip|.gz|.bz2|.xz\n\nIf --drive is not specified, then it will interactively\nshow a list of available drives for selection.",
|
|
3048
|
+
"examples": [
|
|
3049
|
+
"$ balena local flash path/to/balenaos.img",
|
|
3050
|
+
"$ balena local flash path/to/balenaos.img --drive /dev/disk2",
|
|
3051
|
+
"$ balena local flash path/to/balenaos.img --drive /dev/disk2 --yes"
|
|
3052
|
+
],
|
|
3053
|
+
"flags": {
|
|
3054
|
+
"drive": {
|
|
3055
|
+
"char": "d",
|
|
3056
|
+
"description": "the drive to write the image to, eg. `/dev/sdb` or `/dev/mmcblk0`.\nCareful with this as you can erase your hard drive.\nCheck `balena util available-drives` for available options.",
|
|
3057
|
+
"name": "drive",
|
|
3058
|
+
"hasDynamicHelp": false,
|
|
3059
|
+
"multiple": false,
|
|
3060
|
+
"type": "option"
|
|
3061
|
+
},
|
|
3062
|
+
"yes": {
|
|
3063
|
+
"char": "y",
|
|
3064
|
+
"description": "answer \"yes\" to all questions (non interactive use)",
|
|
3065
|
+
"name": "yes",
|
|
3066
|
+
"allowNo": false,
|
|
3067
|
+
"type": "boolean"
|
|
3068
|
+
}
|
|
3069
|
+
},
|
|
3070
|
+
"hasDynamicHelp": false,
|
|
3071
|
+
"hiddenAliases": [],
|
|
3072
|
+
"id": "local:flash",
|
|
3073
|
+
"pluginAlias": "balena-cli",
|
|
3074
|
+
"pluginName": "balena-cli",
|
|
3075
|
+
"pluginType": "core",
|
|
3076
|
+
"strict": true,
|
|
3077
|
+
"enableJsonFlag": false,
|
|
3078
|
+
"offlineCompatible": true,
|
|
3079
|
+
"isESM": false,
|
|
3080
|
+
"relativePath": [
|
|
3081
|
+
"build",
|
|
3082
|
+
"commands",
|
|
3083
|
+
"local",
|
|
3084
|
+
"flash.js"
|
|
3085
|
+
]
|
|
3086
|
+
},
|
|
3005
3087
|
"login": {
|
|
3006
3088
|
"aliases": [],
|
|
3007
3089
|
"args": {
|
|
@@ -3127,138 +3209,56 @@
|
|
|
3127
3209
|
"index.js"
|
|
3128
3210
|
]
|
|
3129
3211
|
},
|
|
3130
|
-
"
|
|
3212
|
+
"logout": {
|
|
3131
3213
|
"aliases": [],
|
|
3132
|
-
"args": {
|
|
3133
|
-
|
|
3134
|
-
"description": "path of drive or image to configure",
|
|
3135
|
-
"name": "target",
|
|
3136
|
-
"required": true
|
|
3137
|
-
}
|
|
3138
|
-
},
|
|
3139
|
-
"description": "(Re)configure a balenaOS drive or image.\n\nConfigure or reconfigure a balenaOS drive or image.",
|
|
3214
|
+
"args": {},
|
|
3215
|
+
"description": "Logout from balena.\n\nLogout from your balena account.",
|
|
3140
3216
|
"examples": [
|
|
3141
|
-
"$ balena
|
|
3142
|
-
"$ balena local configure path/to/image.img"
|
|
3217
|
+
"$ balena logout"
|
|
3143
3218
|
],
|
|
3144
3219
|
"flags": {},
|
|
3145
3220
|
"hasDynamicHelp": false,
|
|
3146
3221
|
"hiddenAliases": [],
|
|
3147
|
-
"id": "
|
|
3222
|
+
"id": "logout",
|
|
3148
3223
|
"pluginAlias": "balena-cli",
|
|
3149
3224
|
"pluginName": "balena-cli",
|
|
3150
3225
|
"pluginType": "core",
|
|
3151
3226
|
"strict": true,
|
|
3152
3227
|
"enableJsonFlag": false,
|
|
3153
|
-
"root": true,
|
|
3154
|
-
"offlineCompatible": true,
|
|
3155
3228
|
"isESM": false,
|
|
3156
3229
|
"relativePath": [
|
|
3157
3230
|
"build",
|
|
3158
3231
|
"commands",
|
|
3159
|
-
"
|
|
3160
|
-
"
|
|
3232
|
+
"logout",
|
|
3233
|
+
"index.js"
|
|
3161
3234
|
]
|
|
3162
3235
|
},
|
|
3163
|
-
"
|
|
3236
|
+
"organization:list": {
|
|
3164
3237
|
"aliases": [],
|
|
3165
|
-
"args": {
|
|
3166
|
-
|
|
3167
|
-
"description": "path to OS image",
|
|
3168
|
-
"name": "image",
|
|
3169
|
-
"required": true
|
|
3170
|
-
}
|
|
3171
|
-
},
|
|
3172
|
-
"description": "Flash an image to a drive.\n\nFlash a balenaOS image to a drive.\nImage file may be one of: .img|.zip|.gz|.bz2|.xz\n\nIf --drive is not specified, then it will interactively\nshow a list of available drives for selection.",
|
|
3238
|
+
"args": {},
|
|
3239
|
+
"description": "List all organizations.\n\nlist all the organizations that you are a member of.",
|
|
3173
3240
|
"examples": [
|
|
3174
|
-
"$ balena
|
|
3175
|
-
"$ balena local flash path/to/balenaos.img --drive /dev/disk2",
|
|
3176
|
-
"$ balena local flash path/to/balenaos.img --drive /dev/disk2 --yes"
|
|
3241
|
+
"$ balena organization list"
|
|
3177
3242
|
],
|
|
3178
|
-
"flags": {
|
|
3179
|
-
"drive": {
|
|
3180
|
-
"char": "d",
|
|
3181
|
-
"description": "the drive to write the image to, eg. `/dev/sdb` or `/dev/mmcblk0`.\nCareful with this as you can erase your hard drive.\nCheck `balena util available-drives` for available options.",
|
|
3182
|
-
"name": "drive",
|
|
3183
|
-
"hasDynamicHelp": false,
|
|
3184
|
-
"multiple": false,
|
|
3185
|
-
"type": "option"
|
|
3186
|
-
},
|
|
3187
|
-
"yes": {
|
|
3188
|
-
"char": "y",
|
|
3189
|
-
"description": "answer \"yes\" to all questions (non interactive use)",
|
|
3190
|
-
"name": "yes",
|
|
3191
|
-
"allowNo": false,
|
|
3192
|
-
"type": "boolean"
|
|
3193
|
-
}
|
|
3194
|
-
},
|
|
3243
|
+
"flags": {},
|
|
3195
3244
|
"hasDynamicHelp": false,
|
|
3196
3245
|
"hiddenAliases": [],
|
|
3197
|
-
"id": "
|
|
3246
|
+
"id": "organization:list",
|
|
3198
3247
|
"pluginAlias": "balena-cli",
|
|
3199
3248
|
"pluginName": "balena-cli",
|
|
3200
3249
|
"pluginType": "core",
|
|
3201
3250
|
"strict": true,
|
|
3202
3251
|
"enableJsonFlag": false,
|
|
3203
|
-
"
|
|
3252
|
+
"authenticated": true,
|
|
3204
3253
|
"isESM": false,
|
|
3205
3254
|
"relativePath": [
|
|
3206
3255
|
"build",
|
|
3207
3256
|
"commands",
|
|
3208
|
-
"
|
|
3209
|
-
"
|
|
3257
|
+
"organization",
|
|
3258
|
+
"list.js"
|
|
3210
3259
|
]
|
|
3211
3260
|
},
|
|
3212
|
-
"
|
|
3213
|
-
"aliases": [],
|
|
3214
|
-
"args": {},
|
|
3215
|
-
"description": "Logout from balena.\n\nLogout from your balena account.",
|
|
3216
|
-
"examples": [
|
|
3217
|
-
"$ balena logout"
|
|
3218
|
-
],
|
|
3219
|
-
"flags": {},
|
|
3220
|
-
"hasDynamicHelp": false,
|
|
3221
|
-
"hiddenAliases": [],
|
|
3222
|
-
"id": "logout",
|
|
3223
|
-
"pluginAlias": "balena-cli",
|
|
3224
|
-
"pluginName": "balena-cli",
|
|
3225
|
-
"pluginType": "core",
|
|
3226
|
-
"strict": true,
|
|
3227
|
-
"enableJsonFlag": false,
|
|
3228
|
-
"isESM": false,
|
|
3229
|
-
"relativePath": [
|
|
3230
|
-
"build",
|
|
3231
|
-
"commands",
|
|
3232
|
-
"logout",
|
|
3233
|
-
"index.js"
|
|
3234
|
-
]
|
|
3235
|
-
},
|
|
3236
|
-
"organization:list": {
|
|
3237
|
-
"aliases": [],
|
|
3238
|
-
"args": {},
|
|
3239
|
-
"description": "List all organizations.\n\nlist all the organizations that you are a member of.",
|
|
3240
|
-
"examples": [
|
|
3241
|
-
"$ balena organization list"
|
|
3242
|
-
],
|
|
3243
|
-
"flags": {},
|
|
3244
|
-
"hasDynamicHelp": false,
|
|
3245
|
-
"hiddenAliases": [],
|
|
3246
|
-
"id": "organization:list",
|
|
3247
|
-
"pluginAlias": "balena-cli",
|
|
3248
|
-
"pluginName": "balena-cli",
|
|
3249
|
-
"pluginType": "core",
|
|
3250
|
-
"strict": true,
|
|
3251
|
-
"enableJsonFlag": false,
|
|
3252
|
-
"authenticated": true,
|
|
3253
|
-
"isESM": false,
|
|
3254
|
-
"relativePath": [
|
|
3255
|
-
"build",
|
|
3256
|
-
"commands",
|
|
3257
|
-
"organization",
|
|
3258
|
-
"list.js"
|
|
3259
|
-
]
|
|
3260
|
-
},
|
|
3261
|
-
"os:configure": {
|
|
3261
|
+
"os:configure": {
|
|
3262
3262
|
"aliases": [],
|
|
3263
3263
|
"args": {
|
|
3264
3264
|
"image": {
|
|
@@ -3727,6 +3727,188 @@
|
|
|
3727
3727
|
"index.js"
|
|
3728
3728
|
]
|
|
3729
3729
|
},
|
|
3730
|
+
"release:finalize": {
|
|
3731
|
+
"aliases": [],
|
|
3732
|
+
"args": {
|
|
3733
|
+
"commitOrId": {
|
|
3734
|
+
"description": "the commit or ID of the release to finalize",
|
|
3735
|
+
"name": "commitOrId",
|
|
3736
|
+
"required": true
|
|
3737
|
+
}
|
|
3738
|
+
},
|
|
3739
|
+
"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.",
|
|
3740
|
+
"examples": [
|
|
3741
|
+
"$ balena release finalize a777f7345fe3d655c1c981aa642e5555",
|
|
3742
|
+
"$ balena release finalize 1234567"
|
|
3743
|
+
],
|
|
3744
|
+
"flags": {},
|
|
3745
|
+
"hasDynamicHelp": false,
|
|
3746
|
+
"hiddenAliases": [],
|
|
3747
|
+
"id": "release:finalize",
|
|
3748
|
+
"pluginAlias": "balena-cli",
|
|
3749
|
+
"pluginName": "balena-cli",
|
|
3750
|
+
"pluginType": "core",
|
|
3751
|
+
"strict": true,
|
|
3752
|
+
"enableJsonFlag": false,
|
|
3753
|
+
"authenticated": true,
|
|
3754
|
+
"isESM": false,
|
|
3755
|
+
"relativePath": [
|
|
3756
|
+
"build",
|
|
3757
|
+
"commands",
|
|
3758
|
+
"release",
|
|
3759
|
+
"finalize.js"
|
|
3760
|
+
]
|
|
3761
|
+
},
|
|
3762
|
+
"release": {
|
|
3763
|
+
"aliases": [],
|
|
3764
|
+
"args": {
|
|
3765
|
+
"commitOrId": {
|
|
3766
|
+
"description": "the commit or ID of the release to get information",
|
|
3767
|
+
"name": "commitOrId",
|
|
3768
|
+
"required": true
|
|
3769
|
+
}
|
|
3770
|
+
},
|
|
3771
|
+
"description": "Get info for a release.",
|
|
3772
|
+
"examples": [
|
|
3773
|
+
"$ balena release a777f7345fe3d655c1c981aa642e5555",
|
|
3774
|
+
"$ balena release 1234567"
|
|
3775
|
+
],
|
|
3776
|
+
"flags": {
|
|
3777
|
+
"json": {
|
|
3778
|
+
"description": "Format output as json.",
|
|
3779
|
+
"helpGroup": "GLOBAL",
|
|
3780
|
+
"name": "json",
|
|
3781
|
+
"allowNo": false,
|
|
3782
|
+
"type": "boolean"
|
|
3783
|
+
},
|
|
3784
|
+
"composition": {
|
|
3785
|
+
"char": "c",
|
|
3786
|
+
"description": "Return the release composition",
|
|
3787
|
+
"name": "composition",
|
|
3788
|
+
"allowNo": false,
|
|
3789
|
+
"type": "boolean"
|
|
3790
|
+
}
|
|
3791
|
+
},
|
|
3792
|
+
"hasDynamicHelp": false,
|
|
3793
|
+
"hiddenAliases": [],
|
|
3794
|
+
"id": "release",
|
|
3795
|
+
"pluginAlias": "balena-cli",
|
|
3796
|
+
"pluginName": "balena-cli",
|
|
3797
|
+
"pluginType": "core",
|
|
3798
|
+
"strict": true,
|
|
3799
|
+
"enableJsonFlag": true,
|
|
3800
|
+
"authenticated": true,
|
|
3801
|
+
"isESM": false,
|
|
3802
|
+
"relativePath": [
|
|
3803
|
+
"build",
|
|
3804
|
+
"commands",
|
|
3805
|
+
"release",
|
|
3806
|
+
"index.js"
|
|
3807
|
+
]
|
|
3808
|
+
},
|
|
3809
|
+
"release:invalidate": {
|
|
3810
|
+
"aliases": [],
|
|
3811
|
+
"args": {
|
|
3812
|
+
"commitOrId": {
|
|
3813
|
+
"description": "the commit or ID of the release to invalidate",
|
|
3814
|
+
"name": "commitOrId",
|
|
3815
|
+
"required": true
|
|
3816
|
+
}
|
|
3817
|
+
},
|
|
3818
|
+
"description": "Invalidate a release.\n\nInvalidate a release.\n\nInvalid releases are not automatically deployed to devices tracking the latest\nrelease. For an invalid release to be deployed to a device, the device should be\nexplicity pinned to that release.",
|
|
3819
|
+
"examples": [
|
|
3820
|
+
"$ balena release invalidate a777f7345fe3d655c1c981aa642e5555",
|
|
3821
|
+
"$ balena release invalidate 1234567"
|
|
3822
|
+
],
|
|
3823
|
+
"flags": {},
|
|
3824
|
+
"hasDynamicHelp": false,
|
|
3825
|
+
"hiddenAliases": [],
|
|
3826
|
+
"id": "release:invalidate",
|
|
3827
|
+
"pluginAlias": "balena-cli",
|
|
3828
|
+
"pluginName": "balena-cli",
|
|
3829
|
+
"pluginType": "core",
|
|
3830
|
+
"strict": true,
|
|
3831
|
+
"enableJsonFlag": false,
|
|
3832
|
+
"authenticated": true,
|
|
3833
|
+
"isESM": false,
|
|
3834
|
+
"relativePath": [
|
|
3835
|
+
"build",
|
|
3836
|
+
"commands",
|
|
3837
|
+
"release",
|
|
3838
|
+
"invalidate.js"
|
|
3839
|
+
]
|
|
3840
|
+
},
|
|
3841
|
+
"release:list": {
|
|
3842
|
+
"aliases": [],
|
|
3843
|
+
"args": {
|
|
3844
|
+
"fleet": {
|
|
3845
|
+
"description": "fleet name or slug (preferred)",
|
|
3846
|
+
"name": "fleet",
|
|
3847
|
+
"required": true
|
|
3848
|
+
}
|
|
3849
|
+
},
|
|
3850
|
+
"description": "List all releases of a fleet.\n\nList all releases of the given fleet.\n\nFleets may be specified by fleet name or slug. Slugs are recommended because\nthey are unique and unambiguous. Slugs can be listed with the `balena fleet list`\ncommand. Note that slugs may change if the fleet is renamed. Fleet names are\nnot unique and may result in \"Fleet is ambiguous\" errors at any time (even if\n\"it used to work in the past\"), for example if the name clashes with a newly\ncreated public/open fleet, or with fleets from other balena accounts that you\nmay be invited to join under any role. For this reason, fleet names are\nespecially discouraged in scripts (e.g. CI environments).",
|
|
3851
|
+
"examples": [
|
|
3852
|
+
"$ balena release list myorg/myfleet"
|
|
3853
|
+
],
|
|
3854
|
+
"flags": {
|
|
3855
|
+
"json": {
|
|
3856
|
+
"description": "Format output as json.",
|
|
3857
|
+
"helpGroup": "GLOBAL",
|
|
3858
|
+
"name": "json",
|
|
3859
|
+
"allowNo": false,
|
|
3860
|
+
"type": "boolean"
|
|
3861
|
+
}
|
|
3862
|
+
},
|
|
3863
|
+
"hasDynamicHelp": false,
|
|
3864
|
+
"hiddenAliases": [],
|
|
3865
|
+
"id": "release:list",
|
|
3866
|
+
"pluginAlias": "balena-cli",
|
|
3867
|
+
"pluginName": "balena-cli",
|
|
3868
|
+
"pluginType": "core",
|
|
3869
|
+
"strict": true,
|
|
3870
|
+
"enableJsonFlag": true,
|
|
3871
|
+
"authenticated": true,
|
|
3872
|
+
"isESM": false,
|
|
3873
|
+
"relativePath": [
|
|
3874
|
+
"build",
|
|
3875
|
+
"commands",
|
|
3876
|
+
"release",
|
|
3877
|
+
"list.js"
|
|
3878
|
+
]
|
|
3879
|
+
},
|
|
3880
|
+
"release:validate": {
|
|
3881
|
+
"aliases": [],
|
|
3882
|
+
"args": {
|
|
3883
|
+
"commitOrId": {
|
|
3884
|
+
"description": "the commit or ID of the release to validate",
|
|
3885
|
+
"name": "commitOrId",
|
|
3886
|
+
"required": true
|
|
3887
|
+
}
|
|
3888
|
+
},
|
|
3889
|
+
"description": "Validate a release.\n\nValidate a release.\n\nValid releases are automatically deployed to devices tracking the latest\nrelease if they are finalized.",
|
|
3890
|
+
"examples": [
|
|
3891
|
+
"$ balena release validate a777f7345fe3d655c1c981aa642e5555",
|
|
3892
|
+
"$ balena release validate 1234567"
|
|
3893
|
+
],
|
|
3894
|
+
"flags": {},
|
|
3895
|
+
"hasDynamicHelp": false,
|
|
3896
|
+
"hiddenAliases": [],
|
|
3897
|
+
"id": "release:validate",
|
|
3898
|
+
"pluginAlias": "balena-cli",
|
|
3899
|
+
"pluginName": "balena-cli",
|
|
3900
|
+
"pluginType": "core",
|
|
3901
|
+
"strict": true,
|
|
3902
|
+
"enableJsonFlag": false,
|
|
3903
|
+
"authenticated": true,
|
|
3904
|
+
"isESM": false,
|
|
3905
|
+
"relativePath": [
|
|
3906
|
+
"build",
|
|
3907
|
+
"commands",
|
|
3908
|
+
"release",
|
|
3909
|
+
"validate.js"
|
|
3910
|
+
]
|
|
3911
|
+
},
|
|
3730
3912
|
"push": {
|
|
3731
3913
|
"aliases": [],
|
|
3732
3914
|
"args": {
|
|
@@ -3892,188 +4074,30 @@
|
|
|
3892
4074
|
"index.js"
|
|
3893
4075
|
]
|
|
3894
4076
|
},
|
|
3895
|
-
"
|
|
4077
|
+
"settings": {
|
|
3896
4078
|
"aliases": [],
|
|
3897
|
-
"args": {
|
|
3898
|
-
|
|
3899
|
-
"description": "the commit or ID of the release to finalize",
|
|
3900
|
-
"name": "commitOrId",
|
|
3901
|
-
"required": true
|
|
3902
|
-
}
|
|
3903
|
-
},
|
|
3904
|
-
"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.",
|
|
4079
|
+
"args": {},
|
|
4080
|
+
"description": "Print current settings.\n\nUse this command to display the current balena CLI settings.",
|
|
3905
4081
|
"examples": [
|
|
3906
|
-
"$ balena
|
|
3907
|
-
"$ balena release finalize 1234567"
|
|
4082
|
+
"$ balena settings"
|
|
3908
4083
|
],
|
|
3909
4084
|
"flags": {},
|
|
3910
4085
|
"hasDynamicHelp": false,
|
|
3911
4086
|
"hiddenAliases": [],
|
|
3912
|
-
"id": "
|
|
4087
|
+
"id": "settings",
|
|
3913
4088
|
"pluginAlias": "balena-cli",
|
|
3914
4089
|
"pluginName": "balena-cli",
|
|
3915
4090
|
"pluginType": "core",
|
|
3916
4091
|
"strict": true,
|
|
3917
4092
|
"enableJsonFlag": false,
|
|
3918
|
-
"authenticated": true,
|
|
3919
4093
|
"isESM": false,
|
|
3920
4094
|
"relativePath": [
|
|
3921
4095
|
"build",
|
|
3922
4096
|
"commands",
|
|
3923
|
-
"
|
|
3924
|
-
"finalize.js"
|
|
3925
|
-
]
|
|
3926
|
-
},
|
|
3927
|
-
"release": {
|
|
3928
|
-
"aliases": [],
|
|
3929
|
-
"args": {
|
|
3930
|
-
"commitOrId": {
|
|
3931
|
-
"description": "the commit or ID of the release to get information",
|
|
3932
|
-
"name": "commitOrId",
|
|
3933
|
-
"required": true
|
|
3934
|
-
}
|
|
3935
|
-
},
|
|
3936
|
-
"description": "Get info for a release.",
|
|
3937
|
-
"examples": [
|
|
3938
|
-
"$ balena release a777f7345fe3d655c1c981aa642e5555",
|
|
3939
|
-
"$ balena release 1234567"
|
|
3940
|
-
],
|
|
3941
|
-
"flags": {
|
|
3942
|
-
"json": {
|
|
3943
|
-
"description": "Format output as json.",
|
|
3944
|
-
"helpGroup": "GLOBAL",
|
|
3945
|
-
"name": "json",
|
|
3946
|
-
"allowNo": false,
|
|
3947
|
-
"type": "boolean"
|
|
3948
|
-
},
|
|
3949
|
-
"composition": {
|
|
3950
|
-
"char": "c",
|
|
3951
|
-
"description": "Return the release composition",
|
|
3952
|
-
"name": "composition",
|
|
3953
|
-
"allowNo": false,
|
|
3954
|
-
"type": "boolean"
|
|
3955
|
-
}
|
|
3956
|
-
},
|
|
3957
|
-
"hasDynamicHelp": false,
|
|
3958
|
-
"hiddenAliases": [],
|
|
3959
|
-
"id": "release",
|
|
3960
|
-
"pluginAlias": "balena-cli",
|
|
3961
|
-
"pluginName": "balena-cli",
|
|
3962
|
-
"pluginType": "core",
|
|
3963
|
-
"strict": true,
|
|
3964
|
-
"enableJsonFlag": true,
|
|
3965
|
-
"authenticated": true,
|
|
3966
|
-
"isESM": false,
|
|
3967
|
-
"relativePath": [
|
|
3968
|
-
"build",
|
|
3969
|
-
"commands",
|
|
3970
|
-
"release",
|
|
4097
|
+
"settings",
|
|
3971
4098
|
"index.js"
|
|
3972
4099
|
]
|
|
3973
4100
|
},
|
|
3974
|
-
"release:invalidate": {
|
|
3975
|
-
"aliases": [],
|
|
3976
|
-
"args": {
|
|
3977
|
-
"commitOrId": {
|
|
3978
|
-
"description": "the commit or ID of the release to invalidate",
|
|
3979
|
-
"name": "commitOrId",
|
|
3980
|
-
"required": true
|
|
3981
|
-
}
|
|
3982
|
-
},
|
|
3983
|
-
"description": "Invalidate a release.\n\nInvalidate a release.\n\nInvalid releases are not automatically deployed to devices tracking the latest\nrelease. For an invalid release to be deployed to a device, the device should be\nexplicity pinned to that release.",
|
|
3984
|
-
"examples": [
|
|
3985
|
-
"$ balena release invalidate a777f7345fe3d655c1c981aa642e5555",
|
|
3986
|
-
"$ balena release invalidate 1234567"
|
|
3987
|
-
],
|
|
3988
|
-
"flags": {},
|
|
3989
|
-
"hasDynamicHelp": false,
|
|
3990
|
-
"hiddenAliases": [],
|
|
3991
|
-
"id": "release:invalidate",
|
|
3992
|
-
"pluginAlias": "balena-cli",
|
|
3993
|
-
"pluginName": "balena-cli",
|
|
3994
|
-
"pluginType": "core",
|
|
3995
|
-
"strict": true,
|
|
3996
|
-
"enableJsonFlag": false,
|
|
3997
|
-
"authenticated": true,
|
|
3998
|
-
"isESM": false,
|
|
3999
|
-
"relativePath": [
|
|
4000
|
-
"build",
|
|
4001
|
-
"commands",
|
|
4002
|
-
"release",
|
|
4003
|
-
"invalidate.js"
|
|
4004
|
-
]
|
|
4005
|
-
},
|
|
4006
|
-
"release:list": {
|
|
4007
|
-
"aliases": [],
|
|
4008
|
-
"args": {
|
|
4009
|
-
"fleet": {
|
|
4010
|
-
"description": "fleet name or slug (preferred)",
|
|
4011
|
-
"name": "fleet",
|
|
4012
|
-
"required": true
|
|
4013
|
-
}
|
|
4014
|
-
},
|
|
4015
|
-
"description": "List all releases of a fleet.\n\nList all releases of the given fleet.\n\nFleets may be specified by fleet name or slug. Slugs are recommended because\nthey are unique and unambiguous. Slugs can be listed with the `balena fleet list`\ncommand. Note that slugs may change if the fleet is renamed. Fleet names are\nnot unique and may result in \"Fleet is ambiguous\" errors at any time (even if\n\"it used to work in the past\"), for example if the name clashes with a newly\ncreated public/open fleet, or with fleets from other balena accounts that you\nmay be invited to join under any role. For this reason, fleet names are\nespecially discouraged in scripts (e.g. CI environments).",
|
|
4016
|
-
"examples": [
|
|
4017
|
-
"$ balena release list myorg/myfleet"
|
|
4018
|
-
],
|
|
4019
|
-
"flags": {
|
|
4020
|
-
"json": {
|
|
4021
|
-
"description": "Format output as json.",
|
|
4022
|
-
"helpGroup": "GLOBAL",
|
|
4023
|
-
"name": "json",
|
|
4024
|
-
"allowNo": false,
|
|
4025
|
-
"type": "boolean"
|
|
4026
|
-
}
|
|
4027
|
-
},
|
|
4028
|
-
"hasDynamicHelp": false,
|
|
4029
|
-
"hiddenAliases": [],
|
|
4030
|
-
"id": "release:list",
|
|
4031
|
-
"pluginAlias": "balena-cli",
|
|
4032
|
-
"pluginName": "balena-cli",
|
|
4033
|
-
"pluginType": "core",
|
|
4034
|
-
"strict": true,
|
|
4035
|
-
"enableJsonFlag": true,
|
|
4036
|
-
"authenticated": true,
|
|
4037
|
-
"isESM": false,
|
|
4038
|
-
"relativePath": [
|
|
4039
|
-
"build",
|
|
4040
|
-
"commands",
|
|
4041
|
-
"release",
|
|
4042
|
-
"list.js"
|
|
4043
|
-
]
|
|
4044
|
-
},
|
|
4045
|
-
"release:validate": {
|
|
4046
|
-
"aliases": [],
|
|
4047
|
-
"args": {
|
|
4048
|
-
"commitOrId": {
|
|
4049
|
-
"description": "the commit or ID of the release to validate",
|
|
4050
|
-
"name": "commitOrId",
|
|
4051
|
-
"required": true
|
|
4052
|
-
}
|
|
4053
|
-
},
|
|
4054
|
-
"description": "Validate a release.\n\nValidate a release.\n\nValid releases are automatically deployed to devices tracking the latest\nrelease if they are finalized.",
|
|
4055
|
-
"examples": [
|
|
4056
|
-
"$ balena release validate a777f7345fe3d655c1c981aa642e5555",
|
|
4057
|
-
"$ balena release validate 1234567"
|
|
4058
|
-
],
|
|
4059
|
-
"flags": {},
|
|
4060
|
-
"hasDynamicHelp": false,
|
|
4061
|
-
"hiddenAliases": [],
|
|
4062
|
-
"id": "release:validate",
|
|
4063
|
-
"pluginAlias": "balena-cli",
|
|
4064
|
-
"pluginName": "balena-cli",
|
|
4065
|
-
"pluginType": "core",
|
|
4066
|
-
"strict": true,
|
|
4067
|
-
"enableJsonFlag": false,
|
|
4068
|
-
"authenticated": true,
|
|
4069
|
-
"isESM": false,
|
|
4070
|
-
"relativePath": [
|
|
4071
|
-
"build",
|
|
4072
|
-
"commands",
|
|
4073
|
-
"release",
|
|
4074
|
-
"validate.js"
|
|
4075
|
-
]
|
|
4076
|
-
},
|
|
4077
4101
|
"release-asset:delete": {
|
|
4078
4102
|
"aliases": [],
|
|
4079
4103
|
"args": {
|
|
@@ -4289,30 +4313,6 @@
|
|
|
4289
4313
|
"upload.js"
|
|
4290
4314
|
]
|
|
4291
4315
|
},
|
|
4292
|
-
"settings": {
|
|
4293
|
-
"aliases": [],
|
|
4294
|
-
"args": {},
|
|
4295
|
-
"description": "Print current settings.\n\nUse this command to display the current balena CLI settings.",
|
|
4296
|
-
"examples": [
|
|
4297
|
-
"$ balena settings"
|
|
4298
|
-
],
|
|
4299
|
-
"flags": {},
|
|
4300
|
-
"hasDynamicHelp": false,
|
|
4301
|
-
"hiddenAliases": [],
|
|
4302
|
-
"id": "settings",
|
|
4303
|
-
"pluginAlias": "balena-cli",
|
|
4304
|
-
"pluginName": "balena-cli",
|
|
4305
|
-
"pluginType": "core",
|
|
4306
|
-
"strict": true,
|
|
4307
|
-
"enableJsonFlag": false,
|
|
4308
|
-
"isESM": false,
|
|
4309
|
-
"relativePath": [
|
|
4310
|
-
"build",
|
|
4311
|
-
"commands",
|
|
4312
|
-
"settings",
|
|
4313
|
-
"index.js"
|
|
4314
|
-
]
|
|
4315
|
-
},
|
|
4316
4316
|
"ssh-key:add": {
|
|
4317
4317
|
"aliases": [],
|
|
4318
4318
|
"args": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "balena-cli",
|
|
3
|
-
"version": "23.2.7-build-os-configure-config-default-ethernet-
|
|
3
|
+
"version": "23.2.7-build-os-configure-config-default-ethernet-37b4a993c4141674b7d0d6f02f2bad9519180458-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",
|
|
@@ -262,6 +262,6 @@
|
|
|
262
262
|
"balena-request": "14.0.6"
|
|
263
263
|
},
|
|
264
264
|
"versionist": {
|
|
265
|
-
"publishedAt": "2025-12-
|
|
265
|
+
"publishedAt": "2025-12-05T18:52:34.820Z"
|
|
266
266
|
}
|
|
267
267
|
}
|
|
@@ -243,14 +243,21 @@ export default class OsConfigureCmd extends Command {
|
|
|
243
243
|
osVersion,
|
|
244
244
|
);
|
|
245
245
|
|
|
246
|
-
const
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
246
|
+
const baseAnswers: Awaited<ReturnType<typeof askQuestionsForDeviceType>> =
|
|
247
|
+
configJson == null
|
|
248
|
+
? await askQuestionsForDeviceType(deviceTypeManifest, options)
|
|
249
|
+
: {
|
|
250
|
+
appUpdatePollInterval: configJson.appUpdatePollInterval,
|
|
251
|
+
network:
|
|
252
|
+
!configJson.wifiSsid && !configJson.wifiKey ? 'ethernet' : 'wifi',
|
|
253
|
+
};
|
|
254
|
+
const answers: Answers = {
|
|
255
|
+
...baseAnswers,
|
|
256
|
+
deviceType: deviceTypeSlug,
|
|
257
|
+
version: osVersion,
|
|
258
|
+
developmentMode: developmentMode,
|
|
259
|
+
secureBoot: secureBoot,
|
|
260
|
+
};
|
|
254
261
|
|
|
255
262
|
if (configJson == null) {
|
|
256
263
|
answers.provisioningKeyName = options['provisioning-key-name'];
|
|
@@ -259,7 +266,6 @@ export default class OsConfigureCmd extends Command {
|
|
|
259
266
|
if (device != null) {
|
|
260
267
|
configJson = await generateDeviceConfig(device, undefined, answers);
|
|
261
268
|
} else {
|
|
262
|
-
answers.deviceType = deviceTypeSlug;
|
|
263
269
|
configJson = await generateApplicationConfig(app!, answers);
|
|
264
270
|
}
|
|
265
271
|
if (
|
|
@@ -401,8 +407,9 @@ async function checkDeviceTypeCompatibility(
|
|
|
401
407
|
async function askQuestionsForDeviceType(
|
|
402
408
|
deviceType: BalenaSdk.DeviceTypeJson.DeviceType,
|
|
403
409
|
options: FlagsDef,
|
|
404
|
-
|
|
405
|
-
|
|
410
|
+
): Promise<
|
|
411
|
+
Pick<Answers, 'appUpdatePollInterval' | 'network' | 'wifiSsid' | 'wifiKey'>
|
|
412
|
+
> {
|
|
406
413
|
const answerSources: any[] = [
|
|
407
414
|
{
|
|
408
415
|
...camelifyConfigOptions(options),
|
|
@@ -414,10 +421,6 @@ async function askQuestionsForDeviceType(
|
|
|
414
421
|
const questions = deviceType.options ?? [];
|
|
415
422
|
let extraOpts: { override: Partial<Answers> } | undefined;
|
|
416
423
|
|
|
417
|
-
if (configJson != null) {
|
|
418
|
-
answerSources.push(configJson);
|
|
419
|
-
}
|
|
420
|
-
|
|
421
424
|
if (!options.advanced) {
|
|
422
425
|
const advancedGroup = questions.find(
|
|
423
426
|
(question) => question.name === 'advanced' && question.isGroup,
|
|
@@ -436,13 +439,8 @@ async function askQuestionsForDeviceType(
|
|
|
436
439
|
}
|
|
437
440
|
}
|
|
438
441
|
}
|
|
442
|
+
|
|
439
443
|
if (
|
|
440
|
-
!defaultAnswers.network &&
|
|
441
|
-
!defaultAnswers.wifiSsid &&
|
|
442
|
-
!defaultAnswers.wifiKey
|
|
443
|
-
) {
|
|
444
|
-
defaultAnswers.network = 'ethernet';
|
|
445
|
-
} else if (
|
|
446
444
|
!defaultAnswers.network &&
|
|
447
445
|
(defaultAnswers.wifiSsid || defaultAnswers.wifiKey)
|
|
448
446
|
) {
|
|
@@ -453,7 +451,10 @@ async function askQuestionsForDeviceType(
|
|
|
453
451
|
extraOpts = { override: defaultAnswers };
|
|
454
452
|
}
|
|
455
453
|
|
|
456
|
-
return (await getCliForm().run(questions, extraOpts)) as
|
|
454
|
+
return (await getCliForm().run(questions, extraOpts)) as Pick<
|
|
455
|
+
Answers,
|
|
456
|
+
'appUpdatePollInterval' | 'network' | 'wifiSsid' | 'wifiKey'
|
|
457
|
+
>;
|
|
457
458
|
}
|
|
458
459
|
|
|
459
460
|
/**
|