Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1.17 KB

README.md

File metadata and controls

25 lines (19 loc) · 1.17 KB

Proxy Action Client Scripts

Provides scripts to perform actions on a device via the public device API.

hup-device.sh

Perform a host OS update via the device API. This command works similarly to the balenaCLI command balena device os-update. However, it executes the update via the device API rather than the Node SDK.

The example below includes the output from following update progress to completion. Run hup-device.sh -h to see all of the options.

$ ./hup-device.sh -u 3a6c9251d533e064f34ca924458d7e23 \
   -v 6.0.10 -f -a $(cat < ${HOME}/.balena/token)
[INFO] code: 202
[INFO] response: {"status":"triggered","lastRun":1724944519887,"parameters":{"target_version":"6.0.10"},"action":"resinhup"}

  Time       Status     Pct         Detail                 
--------  ------------  ---  ------------------------------
19:11:38  Idle                                             
19:11:41  configuring    25  Preparing OS update           
19:11:44  configuring    50  Running OS update             
19:13:06  configuring   100  Update successful, rebooting  
19:13:16  configuring   100  Reboot in progress            
19:14:24  Idle