> For the complete documentation index, see [llms.txt](https://en.docs.monaca.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://en.docs.monaca.io/products_guide/new-monaca-cloud-ide/terminal.md).

# Terminal

## IDE Terminal

The IDE provides two types of terminals: **Preview Terminal** and **Terminal**.

***

### Preview Terminal

The **Preview Terminal** is a specialized terminal that runs automatically when the IDE starts. It executes the **`monaca:preview`** script, which is defined in the project to create a development server for previewing content.

<figure><img src="https://3091308003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfWe1U2tFctp8FkP9W8%2Fuploads%2FpbzIoo3MhhKxWlHzeqzu%2Fpreview-terminal-introduction.png?alt=media&amp;token=37b628d8-ea22-47e8-b636-1158b0a810c0" alt="" width="563"><figcaption></figcaption></figure>

#### Identifying the Preview Terminal

* The **Preview Terminal** can be distinguished from a standard terminal by its title: **monaca:preview**.
* It is recommended to keep the **Preview Terminal** running, as it is essential for providing content to the **previewer**.

#### Restarting the Preview Terminal

If the **Preview Terminal** is accidentally closed or fails to start, you can reopen it by following these steps:

1. Open the **Command Palette**.
2. Search for **"Monaca: Open Previewer Terminal"** and select it.

<figure><img src="https://3091308003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfWe1U2tFctp8FkP9W8%2Fuploads%2FFtQ4gGgKCn739fZttk5p%2Fopen-previewer-terminal.png?alt=media&amp;token=2fb25ff1-b756-471f-8bea-efbca0b33a1b" alt="" width="563"><figcaption></figcaption></figure>

***

### Terminal

The standard **Terminal** allows you to execute commands and manage your project environment.

#### Creating a New Terminal

To create a new terminal:

1. Click the **"+"** icon in the terminal panel.

<figure><img src="https://3091308003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfWe1U2tFctp8FkP9W8%2Fuploads%2FKZI5y5ura1q0dCAZ6Cal%2Fcreate-new-terminal.png?alt=media&amp;token=19b0cb74-d5c6-46bf-9f86-a3e25a12bb90" alt="" width="563"><figcaption></figcaption></figure>

2. A new **Bash terminal** will be created alongside the existing **Preview Terminal**.

<figure><img src="https://3091308003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfWe1U2tFctp8FkP9W8%2Fuploads%2F64snB9tzCuuzoATtrVMC%2Fterminal.png?alt=media&amp;token=56e4917d-0554-4af9-b890-3836693a3070" alt="" width="563"><figcaption></figcaption></figure>

#### Initial Setup

* When a new terminal is opened, it automatically executes **`.monacarc`** to set up the environment, such as configuring the Node.js version.
* You can run standard **Bash commands** in this terminal.\
  *(Example: Running the `ls` command to list project files and directories.)*

#### Deleting a Terminal

To close a terminal:

1. Hover over the terminal title (e.g., **Bash**).
2. Click the **delete (trash bin)** icon.

***

### Notes

* Free-plan users may have certain limitations when using the terminal.
