With Arduino IDE 1.8 we are able to change the build output path (where the hex files will be located) using the preferences.txt file, like in this example:
This facilitates a lot when simulating circuits with SimulIDE.
I'm willing to move from IDE 1.8 to 2.0 for my classes, but as far as I understand, IDE 2.0 is not using the preferences.txt file anymore, but it uses the arduino-cli.yaml file.
However, I'm not aware of any parameter that I can easily specify where I want to store the hex files.
Do you have any idea?