-
-
Notifications
You must be signed in to change notification settings - Fork 113
Command Line
Warning
The information on this page applies to Processing 4. For command line usage in Processing 3 and earlier versions, see this wiki page.
Running sketches in the Processing IDE is cool, but running them in the command-line is even cooler! Running in the command-line means you can automate your sketches, run them without opening the IDE, run sketches on embedded devices, or have sketches run on boot... all super useful!
Starting with Processing 4.4.3 (see PR #1050), processing-java was renamed to processing cli. This removes the need to distribute multiple binaries or scripts and moves us closer to a consistent command line behavior across platforms.
Make sure Processing is installed, then run the help command to see all available options and examples for your version of Processing.
processing --help | more
processing --help
cd /Applications/Processing.app/Contents/MacOS
./Processing --help
Note: On macOS, the executable lives inside the .app bundle, so that's why there is a command to navigate to it's folder first. On Windows and Linux, Processing is typically added to your PATH by default, so no navigation is needed.