![Forrest logo](/images/logo.png)
arduino:tldr:0af8f
This command is used to verify an Arduino sketch (in the form of a .ino file) and specify the path to the build directory where the compiled files will be stored.
Let's break down the command:
-
arduino
: This is the command-line tool used to interact with the Arduino environment via the terminal. -
--pref build.path=${path-to-build_directory}
: This option is used to specify the path to the build directory. The${path-to-build_directory}
placeholder should be replaced with the actual path to the directory where you want the build files to be stored. The build directory stores the compiled files, such as object files (.o) and the final executable file. -
--verify
: This option is used to compile and verify the code in the specified Arduino sketch (.ino file) without uploading it to the Arduino board. The code is checked for any syntax errors or compiler warnings. -
${filename-ino}
: This placeholder should be replaced with the actual name of the Arduino sketch file (.ino) you want to verify. This file should reside in the current working directory or the specified path.
By using this command, the Arduino sketch will be compiled, and if there are no errors or warnings, you will receive a verification message indicating that the code passed the compilation process.