← 返回命令列表

Linux command

pio-lib 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Search for libraries

pio lib search [mqtt]

Install library

pio lib install [PubSubClient]

Install specific version

pio lib install "[email protected]"

List installed libraries

pio lib list

Uninstall library

pio lib uninstall [PubSubClient]

Update all installed libraries

pio lib update

说明

pio lib manages PlatformIO libraries. Search, install, and update libraries from the PlatformIO registry. Handles dependencies automatically for embedded projects. This command is deprecated since PlatformIO 6.0; use pio pkg instead.

参数

search _query_
Search library registry.
install _library_
Install library.
uninstall _library_
Remove library.
list
List installed libraries.
update
Update installed libraries.
show _library_
Show library details.
builtin
Show built-in libraries.
register
Register a library in the PlatformIO registry.
stats
Show library statistics.
-d, --storage-dir _dir_
Manage custom library storage directory.
-g, --global
Work with global PlatformIO library storage.
-e, --environment _name_
Target a specific project build environment.

FAQ

What is the pio-lib command used for?

pio lib manages PlatformIO libraries. Search, install, and update libraries from the PlatformIO registry. Handles dependencies automatically for embedded projects. This command is deprecated since PlatformIO 6.0; use pio pkg instead.

How do I run a basic pio-lib example?

Run `pio lib search [mqtt]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does search _query_ do in pio-lib?

Search library registry.