Leonardo serial port

Hi, just to confirm I understand correctly: Will the Leonardo board’s USB port act as a serial port that I can use within my project or is it only for programming the board? or is it both? My understanding is it will act as 2 devices.

Thank you.

When connected to a PC, it shows up as both a virtual serial port for programming/debugging, as well an HID device so that it can emulate a keyboard and/or mouse.

thank you. So when you say “debugging”, you mean I can use that serial port to make a CLI within my application?

Yes.