Is there a way around this? There don’t seem to be any posts about this so far, so might it be an issue limited to me personally? I think that I have had this issue with several different machines though.
I believe it’s intended to work that way. Colours (and other formatting) are usually not passed when copying the terminal output of some other application - basically what CLI is doing.
For example, here’s Vite with CLI:
Here’s Vite when running normally:
Notice how the colour of the text Vite v3.1.4 is lost.
If you think this is a bug, feel free to open an issue on the CLI GitHub repo.