In this section, you will find a path to how run formulas using Ritchie.

There are two ways to run formulas on Ritchie :

Locally

Using Docker

The **default formulas execution method** has been defined during the initialization step with the** rit init**command. It can be changed executing the following command:

rit set formula-runner

To run a formula locally it is necessary to have the formula programming languages dependencies installed on the computer.

**Example**: a** **formula written in **Node **will need **Node installed** on the computer, so it will be able to run locally.

All formulas can run regardless the programming language used from the moment you have

installed and running.**DOCKER**

Check out on the following example **how to run a "Hello World" formula ******

You can force Ritchie CLI to execute a formula with a specific method using flags.

The

flag will execute a formula with locally (if the default method is Docker).**--local**The

flag will execute a formula with Docker (if the default method is local).**--docker**

All formulas templates contain a **Dockerfile** which creates a container with **Ritchie CLI** installed.

On this section, you saw how to run a formula on Ritchie. To keep learning:

👉 Go to **Hello World formula** to see different ways to run a formula on Ritchie.

👉 Go to the **create formulas** section to understand how to create your first automation with Ritchie.