ARDUINO-CLI-UPLOAD(1)

πŸ“¦
version 1.5.1 Β· 2 versions
, in ubuntu stonking

πŸŽ€ ARDUINO-CLI-UPLOAD πŸ’…

okay bestie, welcome to the arduino-cli upload page from the ARDUINO COMMAND LINE MANUAL, section 1 ✨ buckle up, this one gets your sketch onto the board, no cap.


✨ NAME ✨

arduino-cli-upload β€” get your Arduino sketch onto the board. Uploading. Slay. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

arduino-cli upload [flags]

🌸 DESCRIPTION 🌸

So like, this command uploads your Arduino sketch. That's the whole vibe. 🫢

BUT β€” and this is the important part, bestie, don't skip it β€” this does NOT compile the sketch before uploading. It does not. Zero compiling. None. So if you haven't already built it, that's a you problem, and you need to go do that first. The upload command is just the last little hop. ✈️


πŸ’… OPTIONS πŸ’…

  • --board-options=[] β€” a list of board options, separated by commas. Or you can use it multiple times if you've got multiple options to set. Your call, girlie πŸŽ€
  • --build-path="" β€” the directory holding the binaries you wanna upload.
  • --discovery-timeout=1s β€” the max time to wait around for port discovery. like 30s, 1m, that kind of thing. don't leave it waiting forever, the port will show up when it shows up πŸ™ˆ
  • -b, --fqbn="" β€” the Fully Qualified Board Name. e.g. arduino:avr:uno. this is your board's whole government name, you gotta know it.
  • -h, --help[=false] β€” help for upload. the classic. 🀝
  • --input-dir="" β€” the directory holding binaries to upload.
  • -i, --input-file="" β€” the binary file to upload.
  • -p, --port="" β€” the upload port address, e.g. COM3 or /dev/ttyACM2. this is your board's address, where it lives.
  • -m, --profile="" β€” the sketch profile to use.
  • -P, --programmer="" β€” the programmer to use, e.g: atmel_ice.
  • -l, --protocol="" β€” the upload port protocol, e.g: serial.
  • -F, --upload-field= β€” set a value for a field that's required to upload. giving it exactly what it needs bestie πŸ’…
  • --upload-property=[] β€” override an upload property with a custom value. can be used multiple times for multiple properties. lowkey the power move ✨
  • -v, --verbose[=false] β€” optional! turns on verbose mode. if it's broken and you're nosey, this is your moment πŸ‘€
  • -t, --verify[=false] β€” verify the uploaded binary after the upload. double-checking is so valid.

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

these are the ones you got from the parent command, like inherited family drama but useful 🌈

  • --additional-urls=[] β€” a comma-separated list of additional URLs for the Boards Manager.
  • --config-dir="" β€” sets the default data directory (Arduino CLI will look for the configuration file in this directory).
  • --config-file="" β€” the custom config file (if it's not specified, the default one gets used).
  • --json[=false] β€” print the output in JSON format.
  • --log[=false] β€” print the logs on the standard output.
  • --log-file="" β€” path to the file where the logs will be written.
  • --log-format="text" β€” the output format for the logs. can be: text, json.
  • --log-level="info" β€” messages with this level and above will be logged. valid levels are: trace, debug, info, warn, error, fatal, panic.
  • --no-color[=false] β€” disable colored output. (me ?? giving up color ?? tragic but okay 😭)

πŸ”₯ EXAMPLE πŸ”₯

here's how the girlies actually run it, no cap:

debian/build/bin/arduino-cli upload /home/user/Arduino/MySketch -p /dev/ttyACM0 -b arduino:avr:uno
debian/build/bin/arduino-cli upload -p 192.168.10.1 -b arduino:avr:uno --upload-field password=abc

see? board, port, fqbn. the holy trinity 🫢


πŸ’œ SEE ALSO πŸ’œ


⭐ HISTORY ⭐

  • 15-Aug-2026 β€” Auto generated by spf13/cobra.
lowkey reminder: this page is auto generated by spf13/cobra, so don't come for me about the wording. the facts are the facts, bestie πŸ’€

and that's the whole page, fr fr! πŸ’– this came from the ARDUINO COMMAND LINE MANUAL, section 1, dated Aug 2026, and yes it was Auto generated by spf13/cobra β€” so go forth, upload your sketch, and be the main character of your own serial port βœ¨πŸ‘‘πŸ¦‹ periodt πŸŽ€

πŸ“¦ where this page comes from