ARDUINO-CLI-PROFILE-LIB-ADD(1)

πŸ“¦ version 1.5.1, in ubuntu stonking

πŸ’– arduino-cli-profile-lib-add(1) πŸ’–

okay bestie, welcome to the Arduino Command Line Manual β€” yes that's the whole manual name, it's giving very official πŸŽ€. We're doing arduino-cli profile lib add today and it's genuinely so good.


✨ NAME ✨

arduino-cli-profile-lib-add β€” adds a library to a sketch profile. that's it. that's the job. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

arduino-cli profile lib add LIBRARY[@VERSION_NUMBER]... [flags]

see how LIBRARY[@VERSION_NUMBER]... has the little ... at the end? that means you can stack multiple ones. iconic behavior honestly.


🌸 DESCRIPTION 🌸

Adds a library to a sketch profile. 🫢

that's the whole thing! you point it at a library (or a whole bunch of libraries, no cap) and it goes into the profile. main character energy for your dependencies.


πŸ‘‘ OPTIONS πŸ‘‘

  • -h, --help[=false] β€” help for add. your emergency bestie when you forget what you're doing. πŸ™ˆ
  • --no-deps[=false] β€” do not add dependencies. just the one library, nothing that comes along with it. 🚫
  • --no-overwrite[=false] β€” do not overwrite already added libraries. if it's already in there, leave it alone. πŸ’€
  • -m, --profile="" β€” sketch profile to use. (default is empty string, so like… tell it which one, bestie) 🌈
  • --sketch-path="" β€” location of the sketch. where the sketch actually lives on your filesystem. πŸ“

🧚 OPTIONS INHERITED FROM PARENT COMMANDS 🧚

these ones come from the parent command, so they're not technically this command's, but they work here too and you deserve to know about all of them:

  • --additional-urls=[] β€” comma-separated list of additional URLs for the Boards Manager. πŸŽ€
  • --config-dir="" β€” sets the default data directory. heads up: Arduino CLI will look for the configuration file in this directory. ⭐
  • --config-file="" β€” the custom config file. if you don't specify one, the default will be used. πŸ’œ
  • --json[=false] β€” print the output in JSON format. for the parser girlies. πŸ€–
  • --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. (sad, but sometimes you gotta 😭)

πŸ’« EXAMPLE πŸ’«

copy these exactly, they're verbatim:

debian/build/bin/arduino-cli profile lib add AudioZero -m my_profile
debian/build/bin/arduino-cli profile lib add Arduino_JSON@0.2.0 --profile my_profile

see the second one? Arduino_JSON@0.2.0 β€” that @ is how you pin a VERSION_NUMBER. ate. πŸ’…


πŸ”₯ SEE ALSO πŸ”₯


πŸ“œ HISTORY πŸ“œ

15-Aug-2026 β€” auto generated by spf13/cobra. not a human, just a generator being its little generator self. πŸ¦‹


ngl bestie, this whole page was auto generated by spf13/cobra and it's dated Aug 2026, and the manual it belongs to is ARDUINO COMMAND LINE MANUAL(1). that's the whole vibe check, periodt. πŸ’–βœ¨πŸŽ€
πŸ“¦ where this page comes from