As @Moors7 mentioned you could use particle-cli for terminal based development using Particle's Servers to compile your code.
I would also suggest trying po-util. Its a tool that I created to provide a local workflow for Particle development. It allows you to easily compile locally and work offline. po-util can be installed with Homebrew on Mac:
$ brew tap nrobinson2000/po
$ brew install po
$ po install
po-util can work with your preferred terminal based environment or with Atom, the editor Particle Dev is based on.
po-util has its own library manager, so you can easily download and use the libraries used on the Web IDE.
po-util operates with project directories, so that you can have as many separated projects as you want.
Here are the commands to create and build a po-util project for a photon:
$ mkdir particleProject
$ cd particleProject
$ po init photon
$ po photon build
All firmware is kept in the
firmware/ directory, primarily in the
Another feature of po-util is that it supports automatic flashing over USB using dfu-util.
To build and flash you can do:
$ po photon flash
To just flash you can do:
$ po photon dfu
Po-util supports build keyboard shortcuts for Atom. For example, to
build you would do CTRL+ALT+1
The rest of the keyboard shortcuts can be found in the manpage for