balena-cli 23.0.0-build-v23-be207e82523b6e645e12c394a5c983a3fc1d720a-1 → 23.0.0-build-v23-5b5d201bc754465e65747ccb63a7f732a0da02af-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,8 +6,6 @@ This project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
7
  ## 23.0.0 - 2025-09-04
8
8
 
9
- * test: drop version.spec.ts [Matthew Yarmolinsky]
10
- * nock verbose version test [Matthew Yarmolinsky]
11
9
  * Deduplicate dependencies [Matthew Yarmolinsky]
12
10
  * Drop all deprecated aliases [Matthew Yarmolinsky]
13
11
  * Use oclif's native json support instead of manually adding it [Matthew Yarmolinsky]
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "balena-cli",
3
- "version": "23.0.0-build-v23-be207e82523b6e645e12c394a5c983a3fc1d720a-1",
3
+ "version": "23.0.0-build-v23-5b5d201bc754465e65747ccb63a7f732a0da02af-1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "balena-cli",
9
- "version": "23.0.0-build-v23-be207e82523b6e645e12c394a5c983a3fc1d720a-1",
9
+ "version": "23.0.0-build-v23-5b5d201bc754465e65747ccb63a7f732a0da02af-1",
10
10
  "hasInstallScript": true,
11
11
  "license": "Apache-2.0",
12
12
  "dependencies": {
@@ -362,6 +362,56 @@
362
362
  "index.js"
363
363
  ]
364
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
+ },
365
415
  "config:generate": {
366
416
  "aliases": [],
367
417
  "args": {},
@@ -712,56 +762,6 @@
712
762
  "write.js"
713
763
  ]
714
764
  },
715
- "block:create": {
716
- "aliases": [],
717
- "args": {
718
- "name": {
719
- "description": "block name",
720
- "name": "name",
721
- "required": true
722
- }
723
- },
724
- "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.",
725
- "examples": [
726
- "$ balena block create MyBlock",
727
- "$ balena block create MyBlock --organization mmyorg",
728
- "$ balena block create MyBlock -o myorg --type raspberry-pi"
729
- ],
730
- "flags": {
731
- "organization": {
732
- "char": "o",
733
- "description": "handle of the organization the block should belong to",
734
- "name": "organization",
735
- "hasDynamicHelp": false,
736
- "multiple": false,
737
- "type": "option"
738
- },
739
- "type": {
740
- "char": "t",
741
- "description": "block device type (Check available types with `balena device-type list`)",
742
- "name": "type",
743
- "hasDynamicHelp": false,
744
- "multiple": false,
745
- "type": "option"
746
- }
747
- },
748
- "hasDynamicHelp": false,
749
- "hiddenAliases": [],
750
- "id": "block:create",
751
- "pluginAlias": "balena-cli",
752
- "pluginName": "balena-cli",
753
- "pluginType": "core",
754
- "strict": true,
755
- "enableJsonFlag": false,
756
- "authenticated": true,
757
- "isESM": false,
758
- "relativePath": [
759
- "build",
760
- "commands",
761
- "block",
762
- "create.js"
763
- ]
764
- },
765
765
  "deploy": {
766
766
  "aliases": [],
767
767
  "args": {
@@ -3277,6 +3277,136 @@
3277
3277
  "list.js"
3278
3278
  ]
3279
3279
  },
3280
+ "preload": {
3281
+ "aliases": [],
3282
+ "args": {
3283
+ "image": {
3284
+ "description": "the image file path",
3285
+ "name": "image",
3286
+ "required": true
3287
+ }
3288
+ },
3289
+ "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.",
3290
+ "examples": [
3291
+ "$ balena preload balena.img --fleet MyFleet --commit e1f2592fc6ee949e68756d4f4a48e49bff8d72a0",
3292
+ "$ balena preload balena.img --fleet myorg/myfleet --splash-image image.png",
3293
+ "$ balena preload balena.img"
3294
+ ],
3295
+ "flags": {
3296
+ "fleet": {
3297
+ "char": "f",
3298
+ "description": "fleet name or slug (preferred)",
3299
+ "name": "fleet",
3300
+ "hasDynamicHelp": false,
3301
+ "multiple": false,
3302
+ "type": "option"
3303
+ },
3304
+ "commit": {
3305
+ "char": "c",
3306
+ "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",
3307
+ "name": "commit",
3308
+ "hasDynamicHelp": false,
3309
+ "multiple": false,
3310
+ "type": "option"
3311
+ },
3312
+ "splash-image": {
3313
+ "char": "s",
3314
+ "description": "path to a png image to replace the splash screen",
3315
+ "name": "splash-image",
3316
+ "hasDynamicHelp": false,
3317
+ "multiple": false,
3318
+ "type": "option"
3319
+ },
3320
+ "dont-check-arch": {
3321
+ "description": "disable architecture compatibility check between image and fleet",
3322
+ "name": "dont-check-arch",
3323
+ "allowNo": false,
3324
+ "type": "boolean"
3325
+ },
3326
+ "pin-device-to-release": {
3327
+ "char": "p",
3328
+ "description": "pin the preloaded device to the preloaded release on provision",
3329
+ "name": "pin-device-to-release",
3330
+ "allowNo": true,
3331
+ "type": "boolean"
3332
+ },
3333
+ "additional-space": {
3334
+ "description": "expand the image by this amount of bytes instead of automatically estimating the required amount",
3335
+ "name": "additional-space",
3336
+ "hasDynamicHelp": false,
3337
+ "multiple": false,
3338
+ "type": "option"
3339
+ },
3340
+ "add-certificate": {
3341
+ "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.",
3342
+ "name": "add-certificate",
3343
+ "hasDynamicHelp": false,
3344
+ "multiple": true,
3345
+ "type": "option"
3346
+ },
3347
+ "docker": {
3348
+ "char": "P",
3349
+ "description": "Path to a local docker socket (e.g. /var/run/docker.sock)",
3350
+ "name": "docker",
3351
+ "hasDynamicHelp": false,
3352
+ "multiple": false,
3353
+ "type": "option"
3354
+ },
3355
+ "dockerHost": {
3356
+ "char": "h",
3357
+ "description": "Docker daemon hostname or IP address (dev machine or balena device) ",
3358
+ "name": "dockerHost",
3359
+ "hasDynamicHelp": false,
3360
+ "multiple": false,
3361
+ "type": "option"
3362
+ },
3363
+ "dockerPort": {
3364
+ "description": "Docker daemon TCP port number (hint: 2375 for balena devices)",
3365
+ "name": "dockerPort",
3366
+ "hasDynamicHelp": false,
3367
+ "multiple": false,
3368
+ "type": "option"
3369
+ },
3370
+ "ca": {
3371
+ "description": "Docker host TLS certificate authority file",
3372
+ "name": "ca",
3373
+ "hasDynamicHelp": false,
3374
+ "multiple": false,
3375
+ "type": "option"
3376
+ },
3377
+ "cert": {
3378
+ "description": "Docker host TLS certificate file",
3379
+ "name": "cert",
3380
+ "hasDynamicHelp": false,
3381
+ "multiple": false,
3382
+ "type": "option"
3383
+ },
3384
+ "key": {
3385
+ "description": "Docker host TLS key file",
3386
+ "name": "key",
3387
+ "hasDynamicHelp": false,
3388
+ "multiple": false,
3389
+ "type": "option"
3390
+ }
3391
+ },
3392
+ "hasDynamicHelp": false,
3393
+ "hiddenAliases": [],
3394
+ "id": "preload",
3395
+ "pluginAlias": "balena-cli",
3396
+ "pluginName": "balena-cli",
3397
+ "pluginType": "core",
3398
+ "strict": true,
3399
+ "enableJsonFlag": false,
3400
+ "authenticated": true,
3401
+ "primary": true,
3402
+ "isESM": false,
3403
+ "relativePath": [
3404
+ "build",
3405
+ "commands",
3406
+ "preload",
3407
+ "index.js"
3408
+ ]
3409
+ },
3280
3410
  "os:configure": {
3281
3411
  "aliases": [],
3282
3412
  "args": {
@@ -3612,146 +3742,16 @@
3612
3742
  "versions.js"
3613
3743
  ]
3614
3744
  },
3615
- "preload": {
3745
+ "push": {
3616
3746
  "aliases": [],
3617
3747
  "args": {
3618
- "image": {
3619
- "description": "the image file path",
3620
- "name": "image",
3748
+ "fleetOrDevice": {
3749
+ "description": "fleet name or slug, or local device IP address or \".local\" hostname",
3750
+ "name": "fleetOrDevice",
3621
3751
  "required": true
3622
3752
  }
3623
3753
  },
3624
- "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.",
3625
- "examples": [
3626
- "$ balena preload balena.img --fleet MyFleet --commit e1f2592fc6ee949e68756d4f4a48e49bff8d72a0",
3627
- "$ balena preload balena.img --fleet myorg/myfleet --splash-image image.png",
3628
- "$ balena preload balena.img"
3629
- ],
3630
- "flags": {
3631
- "fleet": {
3632
- "char": "f",
3633
- "description": "fleet name or slug (preferred)",
3634
- "name": "fleet",
3635
- "hasDynamicHelp": false,
3636
- "multiple": false,
3637
- "type": "option"
3638
- },
3639
- "commit": {
3640
- "char": "c",
3641
- "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",
3642
- "name": "commit",
3643
- "hasDynamicHelp": false,
3644
- "multiple": false,
3645
- "type": "option"
3646
- },
3647
- "splash-image": {
3648
- "char": "s",
3649
- "description": "path to a png image to replace the splash screen",
3650
- "name": "splash-image",
3651
- "hasDynamicHelp": false,
3652
- "multiple": false,
3653
- "type": "option"
3654
- },
3655
- "dont-check-arch": {
3656
- "description": "disable architecture compatibility check between image and fleet",
3657
- "name": "dont-check-arch",
3658
- "allowNo": false,
3659
- "type": "boolean"
3660
- },
3661
- "pin-device-to-release": {
3662
- "char": "p",
3663
- "description": "pin the preloaded device to the preloaded release on provision",
3664
- "name": "pin-device-to-release",
3665
- "allowNo": true,
3666
- "type": "boolean"
3667
- },
3668
- "additional-space": {
3669
- "description": "expand the image by this amount of bytes instead of automatically estimating the required amount",
3670
- "name": "additional-space",
3671
- "hasDynamicHelp": false,
3672
- "multiple": false,
3673
- "type": "option"
3674
- },
3675
- "add-certificate": {
3676
- "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.",
3677
- "name": "add-certificate",
3678
- "hasDynamicHelp": false,
3679
- "multiple": true,
3680
- "type": "option"
3681
- },
3682
- "docker": {
3683
- "char": "P",
3684
- "description": "Path to a local docker socket (e.g. /var/run/docker.sock)",
3685
- "name": "docker",
3686
- "hasDynamicHelp": false,
3687
- "multiple": false,
3688
- "type": "option"
3689
- },
3690
- "dockerHost": {
3691
- "char": "h",
3692
- "description": "Docker daemon hostname or IP address (dev machine or balena device) ",
3693
- "name": "dockerHost",
3694
- "hasDynamicHelp": false,
3695
- "multiple": false,
3696
- "type": "option"
3697
- },
3698
- "dockerPort": {
3699
- "description": "Docker daemon TCP port number (hint: 2375 for balena devices)",
3700
- "name": "dockerPort",
3701
- "hasDynamicHelp": false,
3702
- "multiple": false,
3703
- "type": "option"
3704
- },
3705
- "ca": {
3706
- "description": "Docker host TLS certificate authority file",
3707
- "name": "ca",
3708
- "hasDynamicHelp": false,
3709
- "multiple": false,
3710
- "type": "option"
3711
- },
3712
- "cert": {
3713
- "description": "Docker host TLS certificate file",
3714
- "name": "cert",
3715
- "hasDynamicHelp": false,
3716
- "multiple": false,
3717
- "type": "option"
3718
- },
3719
- "key": {
3720
- "description": "Docker host TLS key file",
3721
- "name": "key",
3722
- "hasDynamicHelp": false,
3723
- "multiple": false,
3724
- "type": "option"
3725
- }
3726
- },
3727
- "hasDynamicHelp": false,
3728
- "hiddenAliases": [],
3729
- "id": "preload",
3730
- "pluginAlias": "balena-cli",
3731
- "pluginName": "balena-cli",
3732
- "pluginType": "core",
3733
- "strict": true,
3734
- "enableJsonFlag": false,
3735
- "authenticated": true,
3736
- "primary": true,
3737
- "isESM": false,
3738
- "relativePath": [
3739
- "build",
3740
- "commands",
3741
- "preload",
3742
- "index.js"
3743
- ]
3744
- },
3745
- "push": {
3746
- "aliases": [],
3747
- "args": {
3748
- "fleetOrDevice": {
3749
- "description": "fleet name or slug, or local device IP address or \".local\" hostname",
3750
- "name": "fleetOrDevice",
3751
- "required": true
3752
- }
3753
- },
3754
- "description": "Build release images on balenaCloud servers or on a local mode device.\n\nBuild release images on balenaCloud servers or on a local mode device.\n\nWhen building on the balenaCloud servers, the given source directory will be\nsent to the remote server. This can be used as a drop-in replacement for the\n\"git push\" deployment method.\n\nWhen building on a local mode device, the given source directory will be\nbuilt on the device, and the resulting containers will be run on the device.\nLogs will be streamed back from the device as part of the same invocation.\nThe web dashboard can be used to switch a device to local mode:\nhttps://www.balena.io/docs/learn/develop/local-mode/\nNote that local mode requires a supervisor version of at least v7.21.0.\nThe logs from only a single service can be shown with the --service flag, and\nshowing only the system logs can be achieved with --system. Note that these\nflags can be used together.\n\nWhen pushing to a local device a live session will be started.\nThe project source folder is watched for filesystem events, and changes\nto files and folders are automatically synchronized to the running\ncontainers. The synchronization is only in one direction, from this machine to\nthe device, and changes made on the device itself may be overwritten.\nThis feature requires a device running supervisor version v9.7.0 or greater.\n\nREGISTRY SECRETS \nThe --registry-secrets option specifies a JSON or YAML file containing private\nDocker registry usernames and passwords to be used when pulling base images.\nSample registry-secrets YAML file:\n```\n\t'my-registry-server.com:25000':\n\t\tusername: ann\n\t\tpassword: hunter2\n\t'': # Use the empty string to refer to the Docker Hub\n\t\tusername: mike\n\t\tpassword: cze14\n\t'eu.gcr.io': # Google Container Registry\n\t\tusername: '_json_key'\n\t\tpassword: '{escaped contents of the GCR keyfile.json file}'\n```\nFor a sample project using registry secrets with the Google Container Registry,\ncheck: https://github.com/balena-io-examples/sample-gcr-registry-secrets\n\nIf the --registry-secrets option is not specified, and a secrets.yml or\nsecrets.json file exists in the balena directory (usually $HOME/.balena),\nthis file will be used instead.\n\nDOCKERIGNORE AND GITIGNORE FILES \nBy default, the balena CLI will use a single \".dockerignore\" file (if any) at\nthe project root (--source directory) in order to decide which source files to\nexclude from the \"build context\" (tar stream) sent to balenaCloud, Docker\ndaemon or balenaEngine. In a microservices (multicontainer) fleet, the\nsource directory is the directory that contains the \"docker-compose.yml\" file.\n\nThe --multi-dockerignore (-m) option may be used with microservices\n(multicontainer) fleets that define a docker-compose.yml file. When this\noption is used, each service subdirectory (defined by the `build` or\n`build.context` service properties in the docker-compose.yml file) is\nfiltered separately according to a .dockerignore file defined in the service\nsubdirectory. If no .dockerignore file exists in a service subdirectory, then\nonly the default .dockerignore patterns (see below) apply for that service\nsubdirectory.\n\nWhen the --multi-dockerignore (-m) option is used, the .dockerignore file (if\nany) defined at the overall project root will be used to filter files and\nsubdirectories other than service subdirectories. It will not have any effect\non service subdirectories, whether or not a service subdirectory defines its\nown .dockerignore file. Multiple .dockerignore files are not merged or added\ntogether, and cannot override or extend other files. This behavior maximizes\ncompatibility with the standard docker-compose tool, while still allowing a\nroot .dockerignore file (at the overall project root) to filter files and\nfolders that are outside service subdirectories.\n\nbalena CLI v11 also took .gitignore files into account. This behavior was\ndeprecated in CLI v12 and removed in CLI v13. Please use .dockerignore files\ninstead.\n\nDefault .dockerignore patterns \nA few default/hardcoded dockerignore patterns are \"merged\" (in memory) with the\npatterns found in the applicable .dockerignore files, in the following order:\n```\n **/.git\n < user's patterns from the applicable '.dockerignore' file, if any >\n !**/.balena\n !**/.resin\n !**/Dockerfile\n !**/Dockerfile.*\n !**/docker-compose.yml\n```\nThese patterns always apply, whether or not .dockerignore files exist in the\nproject. If necessary, the effect of the `**/.git` pattern may be modified by\nadding exception patterns to the applicable .dockerignore file(s), for example\n`!mysubmodule/.git`. For documentation on pattern format, see:\n- https://docs.docker.com/engine/reference/builder/#dockerignore-file\n- https://www.npmjs.com/package/@balena/dockerignore\n\nNote: the --service and --env flags must come after the fleetOrDevice\nparameter, as per examples.",
3754
+ "description": "Build release images on balenaCloud servers or on a local mode device.\n\nBuild release images on balenaCloud servers or on a local mode device.\n\nWhen building on the balenaCloud servers, the given source directory will be\nsent to the remote server. This can be used as a drop-in replacement for the\n\"git push\" deployment method.\n\nWhen building on a local mode device, the given source directory will be\nbuilt on the device, and the resulting containers will be run on the device.\nLogs will be streamed back from the device as part of the same invocation.\nThe web dashboard can be used to switch a device to local mode:\nhttps://www.balena.io/docs/learn/develop/local-mode/\nNote that local mode requires a supervisor version of at least v7.21.0.\nThe logs from only a single service can be shown with the --service flag, and\nshowing only the system logs can be achieved with --system. Note that these\nflags can be used together.\n\nWhen pushing to a local device a live session will be started.\nThe project source folder is watched for filesystem events, and changes\nto files and folders are automatically synchronized to the running\ncontainers. The synchronization is only in one direction, from this machine to\nthe device, and changes made on the device itself may be overwritten.\nThis feature requires a device running supervisor version v9.7.0 or greater.\n\nREGISTRY SECRETS \nThe --registry-secrets option specifies a JSON or YAML file containing private\nDocker registry usernames and passwords to be used when pulling base images.\nSample registry-secrets YAML file:\n```\n\t'my-registry-server.com:25000':\n\t\tusername: ann\n\t\tpassword: hunter2\n\t'': # Use the empty string to refer to the Docker Hub\n\t\tusername: mike\n\t\tpassword: cze14\n\t'eu.gcr.io': # Google Container Registry\n\t\tusername: '_json_key'\n\t\tpassword: '{escaped contents of the GCR keyfile.json file}'\n```\nFor a sample project using registry secrets with the Google Container Registry,\ncheck: https://github.com/balena-io-examples/sample-gcr-registry-secrets\n\nIf the --registry-secrets option is not specified, and a secrets.yml or\nsecrets.json file exists in the balena directory (usually $HOME/.balena),\nthis file will be used instead.\n\nDOCKERIGNORE AND GITIGNORE FILES \nBy default, the balena CLI will use a single \".dockerignore\" file (if any) at\nthe project root (--source directory) in order to decide which source files to\nexclude from the \"build context\" (tar stream) sent to balenaCloud, Docker\ndaemon or balenaEngine. In a microservices (multicontainer) fleet, the\nsource directory is the directory that contains the \"docker-compose.yml\" file.\n\nThe --multi-dockerignore (-m) option may be used with microservices\n(multicontainer) fleets that define a docker-compose.yml file. When this\noption is used, each service subdirectory (defined by the `build` or\n`build.context` service properties in the docker-compose.yml file) is\nfiltered separately according to a .dockerignore file defined in the service\nsubdirectory. If no .dockerignore file exists in a service subdirectory, then\nonly the default .dockerignore patterns (see below) apply for that service\nsubdirectory.\n\nWhen the --multi-dockerignore (-m) option is used, the .dockerignore file (if\nany) defined at the overall project root will be used to filter files and\nsubdirectories other than service subdirectories. It will not have any effect\non service subdirectories, whether or not a service subdirectory defines its\nown .dockerignore file. Multiple .dockerignore files are not merged or added\ntogether, and cannot override or extend other files. This behavior maximizes\ncompatibility with the standard docker-compose tool, while still allowing a\nroot .dockerignore file (at the overall project root) to filter files and\nfolders that are outside service subdirectories.\n\nbalena CLI v11 also took .gitignore files into account. This behavior was\ndeprecated in CLI v12 and removed in CLI v13. Please use .dockerignore files\ninstead.\n\nDefault .dockerignore patterns \nA few default/hardcoded dockerignore patterns are \"merged\" (in memory) with the\npatterns found in the applicable .dockerignore files, in the following order:\n```\n **/.git\n < user's patterns from the applicable '.dockerignore' file, if any >\n !**/.balena\n !**/.resin\n !**/Dockerfile\n !**/Dockerfile.*\n !**/docker-compose.yml\n```\nThese patterns always apply, whether or not .dockerignore files exist in the\nproject. If necessary, the effect of the `**/.git` pattern may be modified by\nadding exception patterns to the applicable .dockerignore file(s), for example\n`!mysubmodule/.git`. For documentation on pattern format, see:\n- https://docs.docker.com/engine/reference/builder/#dockerignore-file\n- https://www.npmjs.com/package/@balena/dockerignore\n\nNote: the --service and --env flags must come after the fleetOrDevice\nparameter, as per examples.",
3755
3755
  "examples": [
3756
3756
  "$ balena push myFleet",
3757
3757
  "$ balena push myFleet --source <source directory>",
@@ -4328,67 +4328,6 @@
4328
4328
  "index.js"
4329
4329
  ]
4330
4330
  },
4331
- "support": {
4332
- "aliases": [],
4333
- "args": {
4334
- "action": {
4335
- "description": "enable|disable support access",
4336
- "name": "action",
4337
- "options": [
4338
- "enable",
4339
- "disable"
4340
- ]
4341
- }
4342
- },
4343
- "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).",
4344
- "examples": [
4345
- "balena support enable --device ab346f,cd457a --duration 3d",
4346
- "balena support enable --fleet myFleet --duration 12h",
4347
- "balena support disable -f myorg/myfleet"
4348
- ],
4349
- "flags": {
4350
- "device": {
4351
- "char": "d",
4352
- "description": "comma-separated list (no spaces) of device UUIDs",
4353
- "name": "device",
4354
- "hasDynamicHelp": false,
4355
- "multiple": false,
4356
- "type": "option"
4357
- },
4358
- "fleet": {
4359
- "char": "f",
4360
- "description": "comma-separated list (no spaces) of fleet names or slugs (preferred)",
4361
- "name": "fleet",
4362
- "hasDynamicHelp": false,
4363
- "multiple": false,
4364
- "type": "option"
4365
- },
4366
- "duration": {
4367
- "char": "t",
4368
- "description": "length of time to enable support for, in (h)ours or (d)ays, e.g. 12h, 2d",
4369
- "name": "duration",
4370
- "hasDynamicHelp": false,
4371
- "multiple": false,
4372
- "type": "option"
4373
- }
4374
- },
4375
- "hasDynamicHelp": false,
4376
- "hiddenAliases": [],
4377
- "id": "support",
4378
- "pluginAlias": "balena-cli",
4379
- "pluginName": "balena-cli",
4380
- "pluginType": "core",
4381
- "strict": true,
4382
- "enableJsonFlag": false,
4383
- "authenticated": true,
4384
- "isESM": false,
4385
- "relativePath": [
4386
- "build",
4387
- "commands",
4388
- "support",
4389
- "index.js"
4390
- ]
4391
- },
4392
4331
  "ssh-key:add": {
4393
4332
  "aliases": [],
4394
4333
  "args": {
@@ -4524,6 +4463,89 @@
4524
4463
  "rm.js"
4525
4464
  ]
4526
4465
  },
4466
+ "support": {
4467
+ "aliases": [],
4468
+ "args": {
4469
+ "action": {
4470
+ "description": "enable|disable support access",
4471
+ "name": "action",
4472
+ "options": [
4473
+ "enable",
4474
+ "disable"
4475
+ ]
4476
+ }
4477
+ },
4478
+ "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).",
4479
+ "examples": [
4480
+ "balena support enable --device ab346f,cd457a --duration 3d",
4481
+ "balena support enable --fleet myFleet --duration 12h",
4482
+ "balena support disable -f myorg/myfleet"
4483
+ ],
4484
+ "flags": {
4485
+ "device": {
4486
+ "char": "d",
4487
+ "description": "comma-separated list (no spaces) of device UUIDs",
4488
+ "name": "device",
4489
+ "hasDynamicHelp": false,
4490
+ "multiple": false,
4491
+ "type": "option"
4492
+ },
4493
+ "fleet": {
4494
+ "char": "f",
4495
+ "description": "comma-separated list (no spaces) of fleet names or slugs (preferred)",
4496
+ "name": "fleet",
4497
+ "hasDynamicHelp": false,
4498
+ "multiple": false,
4499
+ "type": "option"
4500
+ },
4501
+ "duration": {
4502
+ "char": "t",
4503
+ "description": "length of time to enable support for, in (h)ours or (d)ays, e.g. 12h, 2d",
4504
+ "name": "duration",
4505
+ "hasDynamicHelp": false,
4506
+ "multiple": false,
4507
+ "type": "option"
4508
+ }
4509
+ },
4510
+ "hasDynamicHelp": false,
4511
+ "hiddenAliases": [],
4512
+ "id": "support",
4513
+ "pluginAlias": "balena-cli",
4514
+ "pluginName": "balena-cli",
4515
+ "pluginType": "core",
4516
+ "strict": true,
4517
+ "enableJsonFlag": false,
4518
+ "authenticated": true,
4519
+ "isESM": false,
4520
+ "relativePath": [
4521
+ "build",
4522
+ "commands",
4523
+ "support",
4524
+ "index.js"
4525
+ ]
4526
+ },
4527
+ "util:available-drives": {
4528
+ "aliases": [],
4529
+ "args": {},
4530
+ "description": "List available drives.\n\nList available drives which are usable for writing an OS image to.\nDoes not list system drives.",
4531
+ "flags": {},
4532
+ "hasDynamicHelp": false,
4533
+ "hiddenAliases": [],
4534
+ "id": "util:available-drives",
4535
+ "pluginAlias": "balena-cli",
4536
+ "pluginName": "balena-cli",
4537
+ "pluginType": "core",
4538
+ "strict": true,
4539
+ "enableJsonFlag": false,
4540
+ "offlineCompatible": true,
4541
+ "isESM": false,
4542
+ "relativePath": [
4543
+ "build",
4544
+ "commands",
4545
+ "util",
4546
+ "available-drives.js"
4547
+ ]
4548
+ },
4527
4549
  "tag:list": {
4528
4550
  "aliases": [],
4529
4551
  "args": {},
@@ -4768,28 +4790,6 @@
4768
4790
  "whoami",
4769
4791
  "index.js"
4770
4792
  ]
4771
- },
4772
- "util:available-drives": {
4773
- "aliases": [],
4774
- "args": {},
4775
- "description": "List available drives.\n\nList available drives which are usable for writing an OS image to.\nDoes not list system drives.",
4776
- "flags": {},
4777
- "hasDynamicHelp": false,
4778
- "hiddenAliases": [],
4779
- "id": "util:available-drives",
4780
- "pluginAlias": "balena-cli",
4781
- "pluginName": "balena-cli",
4782
- "pluginType": "core",
4783
- "strict": true,
4784
- "enableJsonFlag": false,
4785
- "offlineCompatible": true,
4786
- "isESM": false,
4787
- "relativePath": [
4788
- "build",
4789
- "commands",
4790
- "util",
4791
- "available-drives.js"
4792
- ]
4793
4793
  }
4794
4794
  },
4795
4795
  "version": "23.0.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "balena-cli",
3
- "version": "23.0.0-build-v23-be207e82523b6e645e12c394a5c983a3fc1d720a-1",
3
+ "version": "23.0.0-build-v23-5b5d201bc754465e65747ccb63a7f732a0da02af-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-09-04T18:06:41.431Z"
265
+ "publishedAt": "2025-09-04T19:07:10.243Z"
266
266
  }
267
267
  }