> ## Documentation Index
> Fetch the complete documentation index at: https://orphelix.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# orphelix restart

> Restart Orphelix application

# orphelix restart

Restart the Orphelix application without rebuilding. This is a quick restart that only restarts the PM2 process.

## Usage

```bash theme={null}
orphelix restart [options]
```

## What it does

The `restart` command:

1. Syncs static assets to standalone build
2. Restarts the PM2 process

This is much faster than `rebuild` (1-2 seconds vs 30-60 seconds).

## Options

| Option | Alias | Description |
| - | - | - |
| `--port` | `-p` | Custom port |
| `--name` | `-n` | Instance name |

## Example

```bash theme={null}
orphelix restart
orphelix restart --port 8080
orphelix restart --name prod
```

## When to use

Use `restart` when:

* You've changed configuration files (`.env.local`)
* You want to reload without code changes
* You need a quick restart

For code changes, use [`rebuild`](https://orphelix.mintlify.site/cli/commands/rebuild) instead.

## Difference from rebuild

| Command | What it does | Time | Use case |
| - | - | - | - |
| `restart` | Restart PM2 only | \~1s | Config changes |
| `rebuild` | Build + restart | \~30-60s | Code changes |

## Related Commands

* [rebuild](https://orphelix.mintlify.site/cli/commands/rebuild.md) - Rebuild and restart
* [start](https://orphelix.mintlify.site/cli/commands/start.md) - Start Orphelix
* [stop](https://orphelix.mintlify.site/cli/commands/stop.md) - Stop Orphelix


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.