Test and debug state scripts

Hi all, i’m using mender in standalone mode ,is possible to “manually” run the state scripts via mender client cli?? … i need to debug the scripts without restart the entire update process every time.

Thanks in advance

Hello @dimant ,

Some state scripts are run if you use Mender in standalone mode (mender -install …). Take a look here: State scripts | Mender documentation

Though you cannot run state scripts individually, all those that should be run during the update are run, when there is the right state transition.

Depending on what you are trying to debug you might simply add more standard error output from your state scripts. This will be captured in the deployment log: State scripts | Mender documentation