ARDUINO-CLI-BOARD-ATTACH(1)

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

πŸ’– arduino-cli-board-attach(1) πŸ’–

okay bestie, pull up a chair, because this is a page from the ARDUINO COMMAND LINE MANUAL and it's literally all about gluing a sketch to a board. no cap. πŸŽ€


✨ NAME ✨

arduino-cli-board-attach β€” Attaches a sketch to a board. πŸ’…

that's it. that's the whole job. iconic behaviour honestly.


🌸 SYNOPSIS 🌸

arduino-cli board attach [-p ] [-b ] [-P ] [sketchPath] [flags]

yes the brackets got their little blank spaces, that's just how the original rolls, we don't touch it, we respect it. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

So what's actually going on here? This command Sets the default values for port and FQBN. (and programmer, she's invited to the party too πŸ’–)

But here's the cute part β€” If no port, FQBN or programmer are specified, the current default port, FQBN and programmer are displayed.

so it's giving "set the vibe" or "tell me the vibe", depending on whether you actually pass her anything. lowkey multi-talented. πŸ‘‘


πŸŽ€ OPTIONS πŸŽ€

  • --board-options=[] β€” List of board options separated by commas. Or can be used multiple times for multiple options. (so commas or spam it, both work, we love flexibility ✨)
  • --discovery-timeout=1s β€” Max time to wait for port discovery, e.g.: 30s, 1m. don't ghost your ports for too long bestie.
  • -b, --fqbn="" β€” Fully Qualified Board Name, e.g.: arduino:avr:uno β€” this is THE board's government name, say it with your chest.
  • -h, --help[=false] β€” help for attach. the "explain it to me again" button. πŸ™ˆ
  • -p, --port="" β€” Upload port address, e.g.: COM3 or /dev/ttyACM2. where your board actually lives.
  • -P, --programmer="" β€” Programmer to use, e.g: atmel_ice. the specialist. the professional. the main character. πŸ’€
  • -l, --protocol="" β€” Upload port protocol, e.g: serial. how you two are gonna communicate.

🌈 OPTIONS INHERITED FROM PARENT COMMANDS 🌈

these are the hand-me-downs, the family heirlooms, the flags your parent command already had, and they're all still valid here. πŸ‘‘

  • --additional-urls=[] β€” Comma-separated list of additional URLs for the Boards Manager.
  • --config-dir="" β€” Sets the default data directory (Arduino CLI will look for configuration file in this directory).
  • --config-file="" β€” The custom config file (if not specified the default will be 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 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. 😭 (why would you, but okay, your choice, we support you)

⭐ EXAMPLE ⭐

here's the vibe check, copied exactly, character for character, do not @ me:

debian/build/bin/arduino-cli board attach -p /dev/ttyACM0
debian/build/bin/arduino-cli board attach -p /dev/ttyACM0 HelloWorld
debian/build/bin/arduino-cli board attach -b arduino:samd:mkr1000  debian/build/bin/arduino-cli board attach -P atmel_ice

ate. periodt. πŸ”₯


πŸ’œ SEE ALSO πŸ’œ


πŸ“œ HISTORY πŸ“œ

15-Aug-2026 β€” Auto generated by spf13/cobra. the robots did this one, we're just vibing on top of it. 🧚


heads up bestie: this whole page was Auto generated by spf13/cobra, dated Aug 2026, from the ARDUINO COMMAND LINE MANUAL, section 1. so if something's weird, blame the generator, not me. πŸ’–

k bye, go attach a sketch, you're doing amazing sweetie πŸŒΈβœ¨πŸ“πŸ¦‹πŸŽ€πŸ’…

πŸ“¦ where this page comes from