---
title: "Local service and upgrades"
description: "Executor CLI 2.0.0-beta.79 usage, arguments, flags and examples for local service and upgrades."
---

These commands come from Executor CLI `2.0.0-beta.79` and cover `executor serve` through `executor upgrade`. See [global flags and command groups](/docs/reference/cli#global-flags).

## `executor serve`

Start without opening a browser

```text
executor serve [flags]
```

## `executor service`

Manage the background Executor server that local clients share

```text
executor service <subcommand> [flags]
```

## `executor service start`

Start the background server, or confirm that it runs, and print its URL

```text
executor service start [flags]
```

## `executor service stop`

Stop the background server

```text
executor service stop [flags]
```

## `executor service restart`

Stop the background server and start it again

```text
executor service restart [flags]
```

## `executor service status`

Print the background server's URL, version and process, `starting` or `stopping` before them while it starts or stops, or `stopped`

```text
executor service status [flags]
```

## `executor service get`

Print the background server's settings, or one setting

```text
executor service get [flags] [<key>] [<name>]
```

| Option | Description |
| --- | --- |
| `key choice` | Setting name: port, env or disabled (optional) |
| `name string` | Variable name, for env (optional) |

## `executor service set`

Change a setting. Stops the background server so it restarts with it

```text
executor service set [flags] <key> <value> [<env-value>]
```

| Option | Description |
| --- | --- |
| `key choice` | Setting name: port, env or disabled |
| `value string` | New value; for env, the variable name |
| `env-value string` | Variable value, for env (optional) |

## `executor service unset`

Remove a setting. Stops the background server so it restarts without it

```text
executor service unset [flags] <key> [<name>]
```

| Option | Description |
| --- | --- |
| `key choice` | Setting name: port, env or disabled |
| `name string` | Variable name, for env (optional) |

## `executor service pair`

Print a new connection link for the running server

```text
executor service pair [flags]
```

## `executor service rotate-key`

Replace the saved local API key. Run `executor service restart` to use it, then update clients that used the old key

```text
executor service rotate-key [flags]
```

## `executor upgrade`

Install the newest Executor release on this installation's channel, or the given version. A standalone install keeps the previous version for --rollback

```text
executor upgrade [flags] [<version>]
```

| Option | Description |
| --- | --- |
| `version string` | Release to install, such as 2.0.0-beta.16. Default: the newest (optional) |

| Option | Description |
| --- | --- |
| `--method choice` | Package manager to install with, instead of the detected one (choices: npm, pnpm, bun, yarn) |
| `--yes, -y` | Do not ask for confirmation; required to downgrade without a terminal |
| `--rollback` | Switch a standalone install back to the version it ran before its last upgrade |
