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

πŸ“¦ version 1.5.1, in ubuntu stonking

πŸ’– NAME πŸ’–

arduino-cli-profile-lib-remove β€” bestie, this one removes a library from a sketch profile, and it takes the dependencies along with it if nothing else needs them anymore. Yes, it's a spring cleaning command. Yes, she's thorough. ✨

Oh and hey β€” welcome to the ARDUINO COMMAND LINE MANUAL(1), the section 1 of Unix manuals, where all the CLI magic lives. 🫢


🌸 SYNOPSIS 🌸

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

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so real talk: this command removes a library from a sketch profile. And the main character detail here is that it also yeets the dependencies that came with it β€” but only if they're no longer needed by anybody else in there. Not me being considerate about your dependency graph?? πŸ’…

So like, if the library was the last thing keeping some other package alive, that package gets packed up too. If someone else still needs it, it stays. Iconic behaviour honestly.


✨ OPTIONS ✨

  • -h, --help[=false] β€” help for remove. Your little safety blanket. Defaults to false, obvi.
  • --no-deps[=false] β€” "Do not remove unused dependencies." So you're telling her to leave the leftover deps alone, no cleanup, no sweeping, we move messy. Defaults to false.
  • -m, --profile="" β€” Sketch profile to use. Empty string is the default, bestie.
  • --sketch-path="" β€” Location of the sketch. Also defaults to empty string.

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

These ones get handed down from the parent commands like family heirlooms. Every single one, no skips:

  • --additional-urls=[] β€” Comma-separated list of additional URLs for the Boards Manager. Defaults to an empty list, she starts with nothing.
  • --config-dir="" β€” Sets the default data directory. Heads up: Arduino CLI will look for the configuration file in this directory. Default is empty string.
  • --config-file="" β€” The custom config file. If you don't specify one, the default will be used. Defaults to empty string.
  • --json[=false] β€” Print the output in JSON format. For when you want it machine-readable. Defaults to false.
  • --log[=false] β€” Print the logs on the standard output. Defaults to false.
  • --log-file="" β€” Path to the file where logs will be written. Default empty string.
  • --log-format="text" β€” The output format for the logs, can be: text, json. Defaults to "text".
  • --log-level="info" β€” Messages with this level and above will be logged. Valid levels are: trace, debug, info, warn, error, fatal, panic. Defaults to "info".
  • --no-color[=false] β€” Disable colored output. 😭 (sad but sometimes necessary, like in CI). Defaults to false.

🌈 EXAMPLE 🌈

Steal these, they're yours:

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

See how the second one pins a version with @0.2.0? Yeah. That's the LIBRARY[@VERSION_NUMBER]... situation in action, and yes you can pass more than one. Periodt. πŸ’…


πŸŽ€ SEE ALSO πŸŽ€


πŸ’€ HISTORY πŸ’€

15-Aug-2026 β€” Auto generated by spf13/cobra. Not a human, not a vibe curator, just a robot doing its little robot thing. πŸ’€


lowkey a reminder that this whole page was Auto generated by spf13/cobra from Aug 2026, filed under ARDUINO COMMAND LINE MANUAL(1). Go forth, remove libraries, and hydrate. πŸ“πŸ§šπŸ’–
πŸ“¦ where this page comes from