ARDUINO-CLI-PROFILE-LIB-REMOVE(1)
π 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 forremove. Your little safety blanket. Defaults tofalse, 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 tofalse.-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 tofalse.--log[=false]β Print the logs on the standard output. Defaults tofalse.--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 tofalse.
π 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 π
arduino-cli-profile-lib(1)β her sister page, go read it too, they're a set. π
π 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
- ubuntu stonking: arduino-cli 1.5.1-4 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms