From fc751d4b8259b9b5176abe6f76d20266ab8e3797 Mon Sep 17 00:00:00 2001 From: Tonz Date: Mon, 4 Aug 2025 17:44:32 -0700 Subject: [PATCH 1/3] Mention CLI on Processing website --- content/pages/environment/index.mdx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/content/pages/environment/index.mdx b/content/pages/environment/index.mdx index 6a05ee187..1a2acbddf 100644 --- a/content/pages/environment/index.mdx +++ b/content/pages/environment/index.mdx @@ -565,3 +565,12 @@ Add contributed Examples by first opening the "Examples..." submenu from the Fil ## Export The [Export information and Tips](https://github.com/processing/processing/wiki/Export-Info-and-Tips) page on the Processing Wiki covers the details of exporting Applications from Java mode. + +## Command Line Interface (CLI) + +Run sketches from the terminal using Processing's Command Line Interface (CLI). +To view a list of available commands, open a terminal and run: +``` +./Processing --help +``` +Run this command from the directory containing the Processing executable. For example, on macOS, the executable is usually located at /Applications/Processing.app/Contents/MacOS/Processing. From eb231d6e72ac8ae09127b6e5e434c2757bcf6f37 Mon Sep 17 00:00:00 2001 From: Tonz Date: Tue, 19 Aug 2025 09:44:14 -0700 Subject: [PATCH 2/3] per platform specifications --- content/pages/environment/index.mdx | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/content/pages/environment/index.mdx b/content/pages/environment/index.mdx index 1a2acbddf..25a4863da 100644 --- a/content/pages/environment/index.mdx +++ b/content/pages/environment/index.mdx @@ -569,8 +569,21 @@ The [Export information and Tips](https://github.com/processing/processing/wiki/ ## Command Line Interface (CLI) Run sketches from the terminal using Processing's Command Line Interface (CLI). -To view a list of available commands, open a terminal and run: + +*Windows (PowerShell)* +``` +processing.exe --help +``` + +*Linux* ``` +processing --help +``` + +*macOS* +``` +cd /Applications/Processing.app/Contents/MacOS ./Processing --help ``` -Run this command from the directory containing the Processing executable. For example, on macOS, the executable is usually located at /Applications/Processing.app/Contents/MacOS/Processing. + +_**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. _ From fa6292d35aeb932b83d9a44e1cd192b1996c6617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20de=20Courville?= Date: Fri, 24 Oct 2025 10:03:53 +0200 Subject: [PATCH 3/3] Enhance CLI section: minor edits for clarity --- content/pages/environment/index.mdx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/content/pages/environment/index.mdx b/content/pages/environment/index.mdx index 25a4863da..4507d9bc2 100644 --- a/content/pages/environment/index.mdx +++ b/content/pages/environment/index.mdx @@ -568,7 +568,9 @@ The [Export information and Tips](https://github.com/processing/processing/wiki/ ## Command Line Interface (CLI) -Run sketches from the terminal using Processing's Command Line Interface (CLI). +Processing includes a Command Line Interface (CLI) to run sketches from the terminal. This is helpful for automation, testing, and headless setups. + +Make sure Processing is installed, then run the help command to see all available options and examples. *Windows (PowerShell)* ``` @@ -586,4 +588,4 @@ 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. _ +_**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._