pio pkg update

Usage

pio pkg update [OPTIONS]

Description

Update the project dependencies, custom packages from the PlatformIO Registry, or external sources.

If no custom packages (--library, --platform, or --tool) are specified, the command will update the following project dependencies based on “platformio.ini” (Project Configuration File):

  • Library dependencies declared using the lib_deps option

  • Development platform declared using the platform option and its dependencies (toolchain, framework, SDKs, debugging server, etc)

  • Custom tools declared using the platform_packages option.

See pio pkg install command for package specification.

Options

-d, --project-dir

Specify the path to project directory. By default, --project-dir is equal to current working directory (CWD).

-e, --environment

Update project dependencies only for the specified environments. Multiple environments are allowed.

-p, --platform

Update specified development platform. Multiple items are allowed.

Examples

pio pkg update -p "aceinna/aceinna_imu@^1.3.8" -p "platformio/atmelavr"
pio pkg update --platform "https://github.com/platformio/platform-sifive.git"
-t, --tool

Update specified tool. Multiple items are allowed.

Examples

pio pkg update -t "platformio/tool-openocd"
pio pkg update --tool https://github.com/platformio/platform-sifive.git
-l, --library

Update specified library. Multiple items are allowed.

Examples

pio pkg update -l "bblanchon/ArduinoJson@^6.19.2" -l "milesburton/DallasTemperature@^3.9.1"
pio pkg update --library https://github.com/Makuna/NeoPixelBus.git
--no-save

Prevent saving specified packages to “platformio.ini” (Project Configuration File).

--skip-dependencies

Update a package but skip its dependencies declared in the manifest dependencies field.

-g, --global

Update packages from the global storage:

--storage-dir

Specify a custom Package Manager storage for global packages.

-s, --silent

Suppress progress reporting.

See Also