# Run Processing code from the terminal

**URL:** <https://discourse.processing.org/t/run-processing-code-from-the-terminal/43673>\
**Category:** Processing\
**Created:** [January 11, 2024, 12:28am UTC](https://discourse.processing.org/t/run-processing-code-from-the-terminal/43673 "2024-01-11T00:28:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noodlybanan](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noodlybanan/32/18897_2.png) [@Noodlybanan](https://discourse.processing.org/u/Noodlybanan)\
**Post date:** [January 11, 2024, 12:28am UTC](https://discourse.processing.org/t/run-processing-code-from-the-terminal/43673/1 "2024-01-11T00:28:17Z")

</div>

Hey, I was wondering if it is possible to run processing code through a terminal by specfying one .pde file and compiling and launching that way. Thanks for any answers!

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [January 11, 2024, 1:07am UTC](https://discourse.processing.org/t/run-processing-code-from-the-terminal/43673/2 "2024-01-11T01:07:05Z")

</div>

Look under the Tools menu. Reference: [https://github.com/processing/processing/wiki/Command-Line](https://github.com/processing/processing/wiki/Command-Line)

 ![cmdLine](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/b/7/b702c878399df9bf97657c2bc7d3458e656d3123.png)

1. Install “processing-java”
2. Type the following command in Terminal, substituting the path to your sketch folder (don’t include fileName):

`processing-java --sketch=/full/path/to/your/sketch/folder --run`

---

<div class="post-metadata">

**Author:** ![Noodlybanan](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noodlybanan/32/18897_2.png) [@Noodlybanan](https://discourse.processing.org/u/Noodlybanan)\
**Post date:** [January 13, 2024, 3:11am UTC](https://discourse.processing.org/t/run-processing-code-from-the-terminal/43673/3 "2024-01-13T03:11:53Z")

</div>

When running through command line, how does one install libraries and change maximum ram? I didn’t find these options. Also maybe you have to install libraries through the editor.

A clearup would be nice 😃

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [January 13, 2024, 3:17am UTC](https://discourse.processing.org/t/run-processing-code-from-the-terminal/43673/4 "2024-01-13T03:17:37Z")

</div>

I believe you would need to do both of these things by making changes to the editor.
