Custom targets with CLI2

Is it possible to create a custom target with mbed-tools instead of using the mbed cli1?