---
title: Run scripts
project: Code
version: 2.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/code/2-0/guides/run-scripts/
updated: 2026-11-19T04:32:09.378Z
---

# Run scripts

> Start JavaScript and shell scripts from the editor.

You can run a `.js` or `.sh` file of a project and read its output in a window.

## Allow scripts in the project

An administrator turns this on once for each project.

1. Open **Projects** in the main bar and click the project.
2. Check **Enable service mode** and **Allow scripts**.
3. Click **SAVE**.

## Run a script

1. Open the `.js` or `.sh` file.
2. Press `Ctrl+B`, or `Cmd+B` on macOS. You can also right-click in the code and choose **Run script**.

A window shows the output of the script. `--END--` and the running time appear when it finishes.

![A window with the output of a script, the END mark and the running time](/files/Janvsb31R60f.webp)

A script runs on the server with the same rights as Code. Run only scripts you trust.
