Check version of mbed-os with mbed-cli

I work with 2-3 versions of mbed-os. “mbed --version” shows the version of mbed-cli. Is there anyway to determine which version of mbed-os is installed?

Hi,

mbed ls shows list of imported libraries with version hash.

[mbed] Working path "/Users/toywat01/test/mbed-os-example-blinky" (program)
mbed-os-example-blinky (#880ed00bff63)
`- mbed-os (#0063e5de32fc, tag: mbed-os-5.12.1)

You can also find the version from mbed-os/platform/mbed_version.h.

2 Likes

Exactly what I was looking for. Thanks for your help!

I found my mbed version file via this PATH:
mbed-os/platform/include/platform/mbed_version.h
This was for ver 6.17