time of last deploy

Hi

is there a way to know the last time a balena app has been deployed with the balena cli?
thanks

Matteo

Hi @matteopeluso, could you please clarify the question? Would you like to know the last time you made a new release to an app? Or is it more about identifying the last time you provisioned a new device running a specific app?

You could find the answers to either of these questions by querying balena API:

First you’d find the commit hash that a device or application is running. Then you could query the release end point with this commit value to get created_at timestamp. Does this help?

If you’d like balena CLI to support such use case, we could raise it on the repo as a feature request.

Hi

I wanted to know the last time I made a new release to an app but both sound useful thanks for the answer and the resources!
Matteo

Nice to hear this helps Matteo : )