Build a sketch, put the build results in the build directory, and reuse any previous build results in that directory

arduino

  • Arduino Studio - Integrated Development Environment for the Arduino platform.
    More information: <https://github.com/arduino/Arduino/blob/master/build/shared/manpage.adoc>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

arduino --pref build.path={{path/to/build_directory}} --verify {{path/to/file.ino}}

click the source code to copy install arduino on any operating system with command-not-found.com