Arduino IDE: Question regarding uploading to the arduino

  • File > Preferences > Show verbose output during: > compilation (check) > OK
  • Sketch > Verify/Compile
  • After the compilation finishes, examine the contents of the black console window at the bottom of the Arduino IDE window. There you will find all the commands the Arduino ran to compile the code

You can find a description of the process here:

If you prefer to still use the Arduino IDE then you will find the CLI reference useful: