It was always unclear for me what mbed version is used when generating a new mbed program with mbed new. I figured out it uses mbed OS 5. For using mbed OS 6, the documentation recommends using mbed-tools (mbed CLI 2). However mbed-tools seems buggy and lacks some features that I need, like target mocking.
Is there a way to use the old mbed CLI with the latest mbed OS 6?