How do I change Board Options with CLI?

"board details" gives me the options for a board, but how do I change these when uploading? I tried
arduino-cli compile -u --board-options "USBMode=hwcdc,FlashSize=16M,PartitionScheme=app3M_fat9M_16MB,CDCOnBoot=cdc" but there is no indication it is doing anything and I don't think it's working because the serial monitor reads nothing when I upload from CLI but it acts normally when I upload from the IDE, and I think it's because of the board settings.

Thanks.

I chose the board at random, but something like:

arduino-cli compile -b esp32:esp32:nano32:USBMode=hwcdc,FlashSize=16M,PartitionScheme=app3M_fat9M_16MB,CDCOnBoot=cdc ...

That's excellent. Thank you. Now the serial monitor is working.