Skip to content

Official Structure Support

Compare
Choose a tag to compare
@nrobinson2000 nrobinson2000 released this 19 Jan 23:56
· 22 commits to master since this release
1e18085

I have added support for Particle's official project structure to po-util. Any project created with Particle CLI or Particle Workbench can now be built using po-util.

To get the update you'll need to run the following:

po update
po install

There are a few new commands that allow you to build the official structure:

First you must have a Particle project you want to build. If you need to make one you can do:

particle project create . --name myProject
cd myProject

The new commands are build-beta, flash-beta, and clean-beta. You can run them like so:

po PLATFORM build-beta
po PLATFORM flash-beta
po PLATFORM clean-beta

In addition, all of the options from Particle Workbench are supported:

clean-user
clean-all
clean-debug

compile-user
compile-all
compile-debug

flash-user
flash-all
flash-debug

To use the options you can use the run command.

Example: if you want to build the user firmware for a photon you could do:

po photon run compile-user

If you forget any of these options you can press the TAB key after run to autocomplete the different options. In case you didn't know, po-util has TAB completion for nearly all commands, making it much easier to choose the arguments you want.