In order to download an ESR or private balenaOS image, you need to provide your bearer token. The deviceType and version parameters are required. Add an --output flag to provide a path for the image to be downloaded.
Usage Variations
Download public balenaOS images
GET /download?deviceType=<DEVICE NAME>&version=<BALENAOS VERSION>&fileType=.gz'
Same as above but the auth header is optional to use. The deviceType and version parameters are required. These releases also available for download on balena.io/os and the dashboard.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.