Linux command
pio-pkg 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Install package
pio pkg install -l [library_name]
Install platform
pio pkg install -p [espressif32]
Install tool
pio pkg install -t [openocd]
List installed packages
pio pkg list
Update packages
pio pkg update
说明
pio pkg is the unified package manager for PlatformIO. Manages libraries, platforms, and tools through a single interface. Replaces legacy pio lib and pio platform commands.
参数
- install
- Install packages.
- uninstall
- Remove packages.
- update
- Update packages.
- list
- List installed packages.
- show
- Show package details.
- -l, --library _name_
- Library package.
- -p, --platform _name_
- Platform package.
- -t, --tool _name_
- Tool package.
FAQ
What is the pio-pkg command used for?
pio pkg is the unified package manager for PlatformIO. Manages libraries, platforms, and tools through a single interface. Replaces legacy pio lib and pio platform commands.
How do I run a basic pio-pkg example?
Run `pio pkg install -l [library_name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does install do in pio-pkg?
Install packages.