pio-init

initializes a new PlatformIO project

TLDR

Initialize project in current directory
$ pio init
Initialize with specific board
$ pio init --board [uno]
Initialize with IDE support
$ pio init --ide [vscode]
Initialize in specific directory
$ pio init -d [project_dir]

SYNOPSIS

pio init [options]

DESCRIPTION

pio init initializes a new PlatformIO project. Creates project structure with platformio.ini configuration file. Supports multiple boards and IDE integrations for embedded development.

PARAMETERS

-b, --board id

Board ID to initialize for.
-d, --project-dir dir
Project directory.
--ide ide
Generate IDE project files (vscode, atom, etc.).
-O option
Project option in format section.option=value.
-e, --environment name
Default environment name.

INSTALL

yay -S pio

SEE ALSO

pio-run(1), pio-boards(1), pio-lib(1)