Hey @samoud, I think the best way to do it is using resin supervisor api (It’s the agent that runs on the device alongside you application providing most of the resin functionality). Heres an overview of the api & documentation.