Forrest logo
back to the pio tool

pio-ci:tldr:c3ef4

pio-ci: Build a PlatformIO project and don't delete the build directory.
$ pio ci --keep-build-dir ${path-to-project}
try on your machine

The command "pio ci --keep-build-dir ${path-to-project}" is used to build a PlatformIO project and retain the build directory.

Here's a breakdown of the command:

  • "pio": This is the command-line interface (CLI) for PlatformIO, an open-source ecosystem for embedded development.
  • "ci": This is a sub-command of PlatformIO, used for continuous integration. It allows you to build and test your projects automatically.
  • "--keep-build-dir": This is an option that tells PlatformIO to retain the build directory, instead of cleaning it up after the build process. This can be useful for analyzing build artifacts or for debugging purposes.
  • "${path-to-project}": This is a placeholder for the path to your project directory. You need to replace it with the actual path to your project.

By running this command, you will trigger the continuous integration process for your PlatformIO project, building it with the specified build directory retained.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pio tool