balena-cli 23.1.2-build-remove-help-patch-149117ec0c36346e2eadac5823d0cacbb5a40349-1 → 23.1.2-build-fix-not-being-able-to-use-version-and-autocomplete-offline-74f7b5d0fe4bbbf39f7aea381b3c09ff80c9bbcd-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 CHANGED
@@ -6,7 +6,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
7
  ## 23.1.2 - 2025-11-18
8
8
 
9
- * help: Replace the oclif patch for hiding subtopics with overrides in the BalenaHelp class [Thodoris Greasidis]
9
+ * Fix `version` and `autocomplete` commands not working without internet [Matthew Yarmolinsky]
10
10
 
11
11
  ## 23.1.1 - 2025-11-18
12
12
 
package/build/help.d.ts CHANGED
@@ -1,11 +1,7 @@
1
- import type { Command, Interfaces } from '@oclif/core';
1
+ import type { Command } from '@oclif/core';
2
2
  import { Help } from '@oclif/core';
3
3
  import type { ResolvableReturnType } from 'balena-sdk/typings/utils';
4
4
  export default class BalenaHelp extends Help {
5
- private SUPPRESS_SUBTOPICS_DEPTH;
6
- protected get sortedCommands(): Command.Loadable[];
7
- protected get sortedTopics(): Interfaces.Topic[];
8
- showCommandHelp(command: Command.Loadable): Promise<void>;
9
5
  showHelp(argv: string[]): Promise<void>;
10
6
  getCustomRootHelp(showAllCommands: boolean): string;
11
7
  protected formatGlobalOpts(opts: string[][]): string;
package/build/help.js CHANGED
@@ -20,7 +20,6 @@ function getHelpSubject(args) {
20
20
  class BalenaHelp extends core_1.Help {
21
21
  constructor() {
22
22
  super(...arguments);
23
- this.SUPPRESS_SUBTOPICS_DEPTH = null;
24
23
  this.manuallySortedPrimaryCommands = [
25
24
  'login',
26
25
  'push',
@@ -33,29 +32,6 @@ class BalenaHelp extends core_1.Help {
33
32
  'leave',
34
33
  ];
35
34
  }
36
- get sortedCommands() {
37
- const commands = super.sortedCommands;
38
- if (this.SUPPRESS_SUBTOPICS_DEPTH == null) {
39
- return commands;
40
- }
41
- const depth = this.SUPPRESS_SUBTOPICS_DEPTH;
42
- return commands.filter((c) => c.id.split(':').length <= depth);
43
- }
44
- get sortedTopics() {
45
- const topics = super.sortedTopics;
46
- if (this.SUPPRESS_SUBTOPICS_DEPTH == null) {
47
- return topics;
48
- }
49
- const depth = this.SUPPRESS_SUBTOPICS_DEPTH;
50
- return topics.filter((t) => t.name.split(':').length <= depth);
51
- }
52
- async showCommandHelp(command) {
53
- const name = command.id;
54
- const depth = name.split(':').length;
55
- this.SUPPRESS_SUBTOPICS_DEPTH = depth;
56
- await super.showCommandHelp(command);
57
- this.SUPPRESS_SUBTOPICS_DEPTH = null;
58
- }
59
35
  async showHelp(argv) {
60
36
  const ux = (0, lazy_1.getCliUx)();
61
37
  const subject = getHelpSubject(argv);
package/build/help.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"help.js","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":";;AAiBA,sCAAmC;AACnC,wCAAwC;AAExC,uCAAwC;AAKxC,SAAS,cAAc,CAAC,IAAc;IACrC,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACxB,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;YAClB,OAAO;QACR,CAAC;QACD,IAAI,GAAG,KAAK,MAAM,IAAI,GAAG,KAAK,QAAQ,EAAE,CAAC;YACxC,SAAS;QACV,CAAC;QACD,IAAI,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YACzB,OAAO;QACR,CAAC;QACD,OAAO,GAAG,CAAC;IACZ,CAAC;AACF,CAAC;AAED,MAAqB,UAAW,SAAQ,WAAI;IAA5C;;QACS,6BAAwB,GAAkB,IAAI,CAAC;QA0N9C,kCAA6B,GAAG;YACxC,OAAO;YACP,MAAM;YACN,OAAO;YACP,QAAQ;YACR,SAAS;YACT,OAAO;YACP,QAAQ;YACR,MAAM;YACN,OAAO;SACP,CAAC;IACH,CAAC;IA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AC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC;YAC1D,IAAI,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;QACvD,CAAC;QACD,OAAO,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAClC,CAAC;CAaD;AAxMD,6BAwMC"}
@@ -26,8 +26,10 @@ const hook = async function (options) {
26
26
  .authenticated) !== null && _b !== void 0 ? _b : DEFAULT_AUTHENTICATED) {
27
27
  await (0, patterns_1.checkLoggedIn)();
28
28
  }
29
- if (!((_c = options.Command
30
- .offlineCompatible) !== null && _c !== void 0 ? _c : DEFAULT_OFFLINE_COMPATIBLE)) {
29
+ if (options.Command.id !== 'version' &&
30
+ !/^autocomplete\b/.test(options.Command.id) &&
31
+ !((_c = options.Command
32
+ .offlineCompatible) !== null && _c !== void 0 ? _c : DEFAULT_OFFLINE_COMPATIBLE)) {
31
33
  (0, patterns_1.checkNotUsingOfflineMode)();
32
34
  }
33
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"prerun.js","sourceRoot":"","sources":["../../src/hooks/prerun.ts"],"names":[],"mappings":";;;AAsBA,sCAAwD;AACxD,gDAA4E;AAE5E,IAAI,YAA4C,CAAC;AAGpC,QAAA,YAAY,GAAG,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;IACnD,YAAY,GAAG,OAAO,CAAC;AACxB,CAAC,CAAC,CAAC;AAWH,MAAM,uBAAuB,GAAG,KAAK,IAAI,EAAE;IAC1C,MAAM,UAAU,GAAG,MAAM,CAAC,2CAAa,aAAa,EAAC,CAAC,EAAE,CAAC;IACzD,IAAI,CAAC,UAAU,EAAE,CAAC;QACjB,MAAM,IAAI,oCAA2B,CACpC,oDAAoD,CACpD,CAAC;I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ove-help-patch-149117ec0c36346e2eadac5823d0cacbb5a40349-1",
3
+ "version": "23.1.2-build-fix-not-being-able-to-use-version-and-autocomplete-offline-74f7b5d0fe4bbbf39f7aea381b3c09ff80c9bbcd-1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "balena-cli",
9
- "version": "23.1.2-build-remove-help-patch-149117ec0c36346e2eadac5823d0cacbb5a40349-1",
9
+ "version": "23.1.2-build-fix-not-being-able-to-use-version-and-autocomplete-offline-74f7b5d0fe4bbbf39f7aea381b3c09ff80c9bbcd-1",
10
10
  "hasInstallScript": true,
11
11
  "license": "Apache-2.0",
12
12
  "dependencies": {
@@ -979,45 +979,6 @@
979
979
  "index.js"
980
980
  ]
981
981
  },
982
- "device-type:list": {
983
- "aliases": [],
984
- "args": {},
985
- "description": "List the device types supported by balena (like 'raspberrypi3' or 'intel-nuc').\n\nList the device types supported by balena (like 'raspberrypi3' or 'intel-nuc').\n\nBy default, only actively supported device types are listed.\nThe --all option can be used to list all device types, including those that are\nno longer supported by balena.",
986
- "examples": [
987
- "$ balena device-type list",
988
- "$ balena device-type list --all"
989
- ],
990
- "flags": {
991
- "json": {
992
- "description": "Format output as json.",
993
- "helpGroup": "GLOBAL",
994
- "name": "json",
995
- "allowNo": false,
996
- "type": "boolean"
997
- },
998
- "all": {
999
- "description": "include device types no longer supported by balena",
1000
- "name": "all",
1001
- "allowNo": false,
1002
- "type": "boolean"
1003
- }
1004
- },
1005
- "hasDynamicHelp": false,
1006
- "hiddenAliases": [],
1007
- "id": "device-type:list",
1008
- "pluginAlias": "balena-cli",
1009
- "pluginName": "balena-cli",
1010
- "pluginType": "core",
1011
- "strict": true,
1012
- "enableJsonFlag": true,
1013
- "isESM": false,
1014
- "relativePath": [
1015
- "build",
1016
- "commands",
1017
- "device-type",
1018
- "list.js"
1019
- ]
1020
- },
1021
982
  "device:deactivate": {
1022
983
  "aliases": [],
1023
984
  "args": {
@@ -2238,6 +2199,45 @@
2238
2199
  "tunnel.js"
2239
2200
  ]
2240
2201
  },
2202
+ "device-type:list": {
2203
+ "aliases": [],
2204
+ "args": {},
2205
+ "description": "List the device types supported by balena (like 'raspberrypi3' or 'intel-nuc').\n\nList the device types supported by balena (like 'raspberrypi3' or 'intel-nuc').\n\nBy default, only actively supported device types are listed.\nThe --all option can be used to list all device types, including those that are\nno longer supported by balena.",
2206
+ "examples": [
2207
+ "$ balena device-type list",
2208
+ "$ balena device-type list --all"
2209
+ ],
2210
+ "flags": {
2211
+ "json": {
2212
+ "description": "Format output as json.",
2213
+ "helpGroup": "GLOBAL",
2214
+ "name": "json",
2215
+ "allowNo": false,
2216
+ "type": "boolean"
2217
+ },
2218
+ "all": {
2219
+ "description": "include device types no longer supported by balena",
2220
+ "name": "all",
2221
+ "allowNo": false,
2222
+ "type": "boolean"
2223
+ }
2224
+ },
2225
+ "hasDynamicHelp": false,
2226
+ "hiddenAliases": [],
2227
+ "id": "device-type:list",
2228
+ "pluginAlias": "balena-cli",
2229
+ "pluginName": "balena-cli",
2230
+ "pluginType": "core",
2231
+ "strict": true,
2232
+ "enableJsonFlag": true,
2233
+ "isESM": false,
2234
+ "relativePath": [
2235
+ "build",
2236
+ "commands",
2237
+ "device-type",
2238
+ "list.js"
2239
+ ]
2240
+ },
2241
2241
  "env:list": {
2242
2242
  "aliases": [],
2243
2243
  "args": {},
@@ -2916,6 +2916,59 @@
2916
2916
  "osinit.js"
2917
2917
  ]
2918
2918
  },
2919
+ "join": {
2920
+ "aliases": [],
2921
+ "args": {
2922
+ "deviceIpOrHostname": {
2923
+ "description": "the IP or hostname of device",
2924
+ "name": "deviceIpOrHostname"
2925
+ }
2926
+ },
2927
+ "description": "Move a local device to a fleet on another balena server.\n\nMove a local device to a fleet on another balena server, causing\nthe device to \"join\" the new server. The device must be running balenaOS.\n\nFor example, you could provision a device against an openBalena installation\nwhere you perform end-to-end tests and then move it to balenaCloud when it's\nready for production.\n\nTo move a device between fleets on the same server, use the\n`balena device move` command instead of `balena join`.\n\nIf you don't specify a device hostname or IP, this command will automatically\nscan the local network for balenaOS devices and prompt you to select one\nfrom an interactive picker. This may require administrator/root privileges.\nLikewise, if the fleet option is not provided then a picker will be shown.\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).",
2928
+ "examples": [
2929
+ "$ balena join",
2930
+ "$ balena join balena.local",
2931
+ "$ balena join balena.local --fleet MyFleet",
2932
+ "$ balena join balena.local -f myorg/myfleet",
2933
+ "$ balena join 192.168.1.25",
2934
+ "$ balena join 192.168.1.25 --fleet MyFleet"
2935
+ ],
2936
+ "flags": {
2937
+ "fleet": {
2938
+ "char": "f",
2939
+ "description": "fleet name or slug (preferred)",
2940
+ "name": "fleet",
2941
+ "hasDynamicHelp": false,
2942
+ "multiple": false,
2943
+ "type": "option"
2944
+ },
2945
+ "pollInterval": {
2946
+ "char": "i",
2947
+ "description": "the interval in minutes to check for updates",
2948
+ "name": "pollInterval",
2949
+ "hasDynamicHelp": false,
2950
+ "multiple": false,
2951
+ "type": "option"
2952
+ }
2953
+ },
2954
+ "hasDynamicHelp": false,
2955
+ "hiddenAliases": [],
2956
+ "id": "join",
2957
+ "pluginAlias": "balena-cli",
2958
+ "pluginName": "balena-cli",
2959
+ "pluginType": "core",
2960
+ "strict": true,
2961
+ "enableJsonFlag": false,
2962
+ "authenticated": true,
2963
+ "primary": true,
2964
+ "isESM": false,
2965
+ "relativePath": [
2966
+ "build",
2967
+ "commands",
2968
+ "join",
2969
+ "index.js"
2970
+ ]
2971
+ },
2919
2972
  "leave": {
2920
2973
  "aliases": [],
2921
2974
  "args": {
@@ -3156,59 +3209,6 @@
3156
3209
  "index.js"
3157
3210
  ]
3158
3211
  },
3159
- "join": {
3160
- "aliases": [],
3161
- "args": {
3162
- "deviceIpOrHostname": {
3163
- "description": "the IP or hostname of device",
3164
- "name": "deviceIpOrHostname"
3165
- }
3166
- },
3167
- "description": "Move a local device to a fleet on another balena server.\n\nMove a local device to a fleet on another balena server, causing\nthe device to \"join\" the new server. The device must be running balenaOS.\n\nFor example, you could provision a device against an openBalena installation\nwhere you perform end-to-end tests and then move it to balenaCloud when it's\nready for production.\n\nTo move a device between fleets on the same server, use the\n`balena device move` command instead of `balena join`.\n\nIf you don't specify a device hostname or IP, this command will automatically\nscan the local network for balenaOS devices and prompt you to select one\nfrom an interactive picker. This may require administrator/root privileges.\nLikewise, if the fleet option is not provided then a picker will be shown.\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).",
3168
- "examples": [
3169
- "$ balena join",
3170
- "$ balena join balena.local",
3171
- "$ balena join balena.local --fleet MyFleet",
3172
- "$ balena join balena.local -f myorg/myfleet",
3173
- "$ balena join 192.168.1.25",
3174
- "$ balena join 192.168.1.25 --fleet MyFleet"
3175
- ],
3176
- "flags": {
3177
- "fleet": {
3178
- "char": "f",
3179
- "description": "fleet name or slug (preferred)",
3180
- "name": "fleet",
3181
- "hasDynamicHelp": false,
3182
- "multiple": false,
3183
- "type": "option"
3184
- },
3185
- "pollInterval": {
3186
- "char": "i",
3187
- "description": "the interval in minutes to check for updates",
3188
- "name": "pollInterval",
3189
- "hasDynamicHelp": false,
3190
- "multiple": false,
3191
- "type": "option"
3192
- }
3193
- },
3194
- "hasDynamicHelp": false,
3195
- "hiddenAliases": [],
3196
- "id": "join",
3197
- "pluginAlias": "balena-cli",
3198
- "pluginName": "balena-cli",
3199
- "pluginType": "core",
3200
- "strict": true,
3201
- "enableJsonFlag": false,
3202
- "authenticated": true,
3203
- "primary": true,
3204
- "isESM": false,
3205
- "relativePath": [
3206
- "build",
3207
- "commands",
3208
- "join",
3209
- "index.js"
3210
- ]
3211
- },
3212
3212
  "logout": {
3213
3213
  "aliases": [],
3214
3214
  "args": {},
@@ -3258,136 +3258,6 @@
3258
3258
  "list.js"
3259
3259
  ]
3260
3260
  },
3261
- "preload": {
3262
- "aliases": [],
3263
- "args": {
3264
- "image": {
3265
- "description": "the image file path",
3266
- "name": "image",
3267
- "required": true
3268
- }
3269
- },
3270
- "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.",
3271
- "examples": [
3272
- "$ balena preload balena.img --fleet MyFleet --commit e1f2592fc6ee949e68756d4f4a48e49bff8d72a0",
3273
- "$ balena preload balena.img --fleet myorg/myfleet --splash-image image.png",
3274
- "$ balena preload balena.img"
3275
- ],
3276
- "flags": {
3277
- "fleet": {
3278
- "char": "f",
3279
- "description": "fleet name or slug (preferred)",
3280
- "name": "fleet",
3281
- "hasDynamicHelp": false,
3282
- "multiple": false,
3283
- "type": "option"
3284
- },
3285
- "commit": {
3286
- "char": "c",
3287
- "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",
3288
- "name": "commit",
3289
- "hasDynamicHelp": false,
3290
- "multiple": false,
3291
- "type": "option"
3292
- },
3293
- "splash-image": {
3294
- "char": "s",
3295
- "description": "path to a png image to replace the splash screen",
3296
- "name": "splash-image",
3297
- "hasDynamicHelp": false,
3298
- "multiple": false,
3299
- "type": "option"
3300
- },
3301
- "dont-check-arch": {
3302
- "description": "disable architecture compatibility check between image and fleet",
3303
- "name": "dont-check-arch",
3304
- "allowNo": false,
3305
- "type": "boolean"
3306
- },
3307
- "pin-device-to-release": {
3308
- "char": "p",
3309
- "description": "pin the preloaded device to the preloaded release on provision",
3310
- "name": "pin-device-to-release",
3311
- "allowNo": true,
3312
- "type": "boolean"
3313
- },
3314
- "additional-space": {
3315
- "description": "expand the image by this amount of bytes instead of automatically estimating the required amount",
3316
- "name": "additional-space",
3317
- "hasDynamicHelp": false,
3318
- "multiple": false,
3319
- "type": "option"
3320
- },
3321
- "add-certificate": {
3322
- "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.",
3323
- "name": "add-certificate",
3324
- "hasDynamicHelp": false,
3325
- "multiple": true,
3326
- "type": "option"
3327
- },
3328
- "docker": {
3329
- "char": "P",
3330
- "description": "Path to a local docker socket (e.g. /var/run/docker.sock)",
3331
- "name": "docker",
3332
- "hasDynamicHelp": false,
3333
- "multiple": false,
3334
- "type": "option"
3335
- },
3336
- "dockerHost": {
3337
- "char": "h",
3338
- "description": "Docker daemon hostname or IP address (dev machine or balena device) ",
3339
- "name": "dockerHost",
3340
- "hasDynamicHelp": false,
3341
- "multiple": false,
3342
- "type": "option"
3343
- },
3344
- "dockerPort": {
3345
- "description": "Docker daemon TCP port number (hint: 2375 for balena devices)",
3346
- "name": "dockerPort",
3347
- "hasDynamicHelp": false,
3348
- "multiple": false,
3349
- "type": "option"
3350
- },
3351
- "ca": {
3352
- "description": "Docker host TLS certificate authority file",
3353
- "name": "ca",
3354
- "hasDynamicHelp": false,
3355
- "multiple": false,
3356
- "type": "option"
3357
- },
3358
- "cert": {
3359
- "description": "Docker host TLS certificate file",
3360
- "name": "cert",
3361
- "hasDynamicHelp": false,
3362
- "multiple": false,
3363
- "type": "option"
3364
- },
3365
- "key": {
3366
- "description": "Docker host TLS key file",
3367
- "name": "key",
3368
- "hasDynamicHelp": false,
3369
- "multiple": false,
3370
- "type": "option"
3371
- }
3372
- },
3373
- "hasDynamicHelp": false,
3374
- "hiddenAliases": [],
3375
- "id": "preload",
3376
- "pluginAlias": "balena-cli",
3377
- "pluginName": "balena-cli",
3378
- "pluginType": "core",
3379
- "strict": true,
3380
- "enableJsonFlag": false,
3381
- "authenticated": true,
3382
- "primary": true,
3383
- "isESM": false,
3384
- "relativePath": [
3385
- "build",
3386
- "commands",
3387
- "preload",
3388
- "index.js"
3389
- ]
3390
- },
3391
3261
  "os:configure": {
3392
3262
  "aliases": [],
3393
3263
  "args": {
@@ -3727,6 +3597,136 @@
3727
3597
  "versions.js"
3728
3598
  ]
3729
3599
  },
3600
+ "preload": {
3601
+ "aliases": [],
3602
+ "args": {
3603
+ "image": {
3604
+ "description": "the image file path",
3605
+ "name": "image",
3606
+ "required": true
3607
+ }
3608
+ },
3609
+ "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.",
3610
+ "examples": [
3611
+ "$ balena preload balena.img --fleet MyFleet --commit e1f2592fc6ee949e68756d4f4a48e49bff8d72a0",
3612
+ "$ balena preload balena.img --fleet myorg/myfleet --splash-image image.png",
3613
+ "$ balena preload balena.img"
3614
+ ],
3615
+ "flags": {
3616
+ "fleet": {
3617
+ "char": "f",
3618
+ "description": "fleet name or slug (preferred)",
3619
+ "name": "fleet",
3620
+ "hasDynamicHelp": false,
3621
+ "multiple": false,
3622
+ "type": "option"
3623
+ },
3624
+ "commit": {
3625
+ "char": "c",
3626
+ "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",
3627
+ "name": "commit",
3628
+ "hasDynamicHelp": false,
3629
+ "multiple": false,
3630
+ "type": "option"
3631
+ },
3632
+ "splash-image": {
3633
+ "char": "s",
3634
+ "description": "path to a png image to replace the splash screen",
3635
+ "name": "splash-image",
3636
+ "hasDynamicHelp": false,
3637
+ "multiple": false,
3638
+ "type": "option"
3639
+ },
3640
+ "dont-check-arch": {
3641
+ "description": "disable architecture compatibility check between image and fleet",
3642
+ "name": "dont-check-arch",
3643
+ "allowNo": false,
3644
+ "type": "boolean"
3645
+ },
3646
+ "pin-device-to-release": {
3647
+ "char": "p",
3648
+ "description": "pin the preloaded device to the preloaded release on provision",
3649
+ "name": "pin-device-to-release",
3650
+ "allowNo": true,
3651
+ "type": "boolean"
3652
+ },
3653
+ "additional-space": {
3654
+ "description": "expand the image by this amount of bytes instead of automatically estimating the required amount",
3655
+ "name": "additional-space",
3656
+ "hasDynamicHelp": false,
3657
+ "multiple": false,
3658
+ "type": "option"
3659
+ },
3660
+ "add-certificate": {
3661
+ "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.",
3662
+ "name": "add-certificate",
3663
+ "hasDynamicHelp": false,
3664
+ "multiple": true,
3665
+ "type": "option"
3666
+ },
3667
+ "docker": {
3668
+ "char": "P",
3669
+ "description": "Path to a local docker socket (e.g. /var/run/docker.sock)",
3670
+ "name": "docker",
3671
+ "hasDynamicHelp": false,
3672
+ "multiple": false,
3673
+ "type": "option"
3674
+ },
3675
+ "dockerHost": {
3676
+ "char": "h",
3677
+ "description": "Docker daemon hostname or IP address (dev machine or balena device) ",
3678
+ "name": "dockerHost",
3679
+ "hasDynamicHelp": false,
3680
+ "multiple": false,
3681
+ "type": "option"
3682
+ },
3683
+ "dockerPort": {
3684
+ "description": "Docker daemon TCP port number (hint: 2375 for balena devices)",
3685
+ "name": "dockerPort",
3686
+ "hasDynamicHelp": false,
3687
+ "multiple": false,
3688
+ "type": "option"
3689
+ },
3690
+ "ca": {
3691
+ "description": "Docker host TLS certificate authority file",
3692
+ "name": "ca",
3693
+ "hasDynamicHelp": false,
3694
+ "multiple": false,
3695
+ "type": "option"
3696
+ },
3697
+ "cert": {
3698
+ "description": "Docker host TLS certificate file",
3699
+ "name": "cert",
3700
+ "hasDynamicHelp": false,
3701
+ "multiple": false,
3702
+ "type": "option"
3703
+ },
3704
+ "key": {
3705
+ "description": "Docker host TLS key file",
3706
+ "name": "key",
3707
+ "hasDynamicHelp": false,
3708
+ "multiple": false,
3709
+ "type": "option"
3710
+ }
3711
+ },
3712
+ "hasDynamicHelp": false,
3713
+ "hiddenAliases": [],
3714
+ "id": "preload",
3715
+ "pluginAlias": "balena-cli",
3716
+ "pluginName": "balena-cli",
3717
+ "pluginType": "core",
3718
+ "strict": true,
3719
+ "enableJsonFlag": false,
3720
+ "authenticated": true,
3721
+ "primary": true,
3722
+ "isESM": false,
3723
+ "relativePath": [
3724
+ "build",
3725
+ "commands",
3726
+ "preload",
3727
+ "index.js"
3728
+ ]
3729
+ },
3730
3730
  "push": {
3731
3731
  "aliases": [],
3732
3732
  "args": {
@@ -4074,6 +4074,30 @@
4074
4074
  "validate.js"
4075
4075
  ]
4076
4076
  },
4077
+ "settings": {
4078
+ "aliases": [],
4079
+ "args": {},
4080
+ "description": "Print current settings.\n\nUse this command to display the current balena CLI settings.",
4081
+ "examples": [
4082
+ "$ balena settings"
4083
+ ],
4084
+ "flags": {},
4085
+ "hasDynamicHelp": false,
4086
+ "hiddenAliases": [],
4087
+ "id": "settings",
4088
+ "pluginAlias": "balena-cli",
4089
+ "pluginName": "balena-cli",
4090
+ "pluginType": "core",
4091
+ "strict": true,
4092
+ "enableJsonFlag": false,
4093
+ "isESM": false,
4094
+ "relativePath": [
4095
+ "build",
4096
+ "commands",
4097
+ "settings",
4098
+ "index.js"
4099
+ ]
4100
+ },
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
  "support": {
4317
4317
  "aliases": [],
4318
4318
  "args": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "balena-cli",
3
- "version": "23.1.2-build-remove-help-patch-149117ec0c36346e2eadac5823d0cacbb5a40349-1",
3
+ "version": "23.1.2-build-fix-not-being-able-to-use-version-and-autocomplete-offline-74f7b5d0fe4bbbf39f7aea381b3c09ff80c9bbcd-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-11-18T15:00:10.273Z"
265
+ "publishedAt": "2025-11-18T22:00:14.810Z"
266
266
  }
267
267
  }
@@ -1,3 +1,22 @@
1
+ diff --git a/node_modules/@oclif/core/lib/help/index.js b/node_modules/@oclif/core/lib/help/index.js
2
+ index 5846c71..d47d146 100644
3
+ --- a/node_modules/@oclif/core/lib/help/index.js
4
+ +++ b/node_modules/@oclif/core/lib/help/index.js
5
+ @@ -186,11 +186,12 @@ class Help extends HelpBase {
6
+ }
7
+ this.log(this.formatCommand(command));
8
+ this.log('');
9
+ - if (subTopics.length > 0) {
10
+ + const SUPPRESS_SUBTOPICS = true;
11
+ + if (subTopics.length > 0 && !SUPPRESS_SUBTOPICS) {
12
+ this.log(this.formatTopics(subTopics));
13
+ this.log('');
14
+ }
15
+ - if (subCommands.length > 0) {
16
+ + if (subCommands.length > 0 && !SUPPRESS_SUBTOPICS) {
17
+ const aliases = [];
18
+ const uniqueSubCommands = subCommands.filter((p) => {
19
+ aliases.push(...p.aliases);
1
20
  diff --git a/node_modules/@oclif/core/lib/parser/errors.js b/node_modules/@oclif/core/lib/parser/errors.js
2
21
  index 168da99..538a880 100644
3
22
  --- a/node_modules/@oclif/core/lib/parser/errors.js
package/src/help.ts CHANGED
@@ -14,7 +14,7 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import type { Command, Interfaces } from '@oclif/core';
17
+ import type { Command } from '@oclif/core';
18
18
  import { Help } from '@oclif/core';
19
19
  import * as indent from 'indent-string';
20
20
  import type { ResolvableReturnType } from 'balena-sdk/typings/utils';
@@ -39,36 +39,6 @@ function getHelpSubject(args: string[]): string | undefined {
39
39
  }
40
40
 
41
41
  export default class BalenaHelp extends Help {
42
- private SUPPRESS_SUBTOPICS_DEPTH: number | null = null;
43
-
44
- protected get sortedCommands(): Command.Loadable[] {
45
- const commands = super.sortedCommands;
46
- if (this.SUPPRESS_SUBTOPICS_DEPTH == null) {
47
- return commands;
48
- }
49
- // Assign it to a const so that TS knows that this can't change to null during the .filter
50
- const depth = this.SUPPRESS_SUBTOPICS_DEPTH;
51
- return commands.filter((c) => c.id.split(':').length <= depth);
52
- }
53
-
54
- protected get sortedTopics(): Interfaces.Topic[] {
55
- const topics = super.sortedTopics;
56
- if (this.SUPPRESS_SUBTOPICS_DEPTH == null) {
57
- return topics;
58
- }
59
- // Assign it to a const so that TS knows that this can't change to null during the .filter
60
- const depth = this.SUPPRESS_SUBTOPICS_DEPTH;
61
- return topics.filter((t) => t.name.split(':').length <= depth);
62
- }
63
-
64
- public async showCommandHelp(command: Command.Loadable): Promise<void> {
65
- const name = command.id;
66
- const depth = name.split(':').length;
67
- this.SUPPRESS_SUBTOPICS_DEPTH = depth;
68
- await super.showCommandHelp(command);
69
- this.SUPPRESS_SUBTOPICS_DEPTH = null;
70
- }
71
-
72
42
  public async showHelp(argv: string[]) {
73
43
  const ux = getCliUx();
74
44
  const subject = getHelpSubject(argv);
@@ -98,6 +98,9 @@ const hook: Hook<'prerun'> = async function (options) {
98
98
  }
99
99
 
100
100
  if (
101
+ // version and autocomplete come from oclif plugins, for which we cannot add offlineCompatible true
102
+ options.Command.id !== 'version' &&
103
+ !/^autocomplete\b/.test(options.Command.id) &&
101
104
  !(
102
105
  (options.Command as Command.Class & { offlineCompatible: boolean })
103
106
  .offlineCompatible ?? DEFAULT_OFFLINE_COMPATIBLE