> Markdown version of https://tuna.am/en/docs/cli/service/edit/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# tuna service edit

Change the command of a service and restart it.

The service keeps its name, user, environment and autostart. The tunnel type cannot change: reinstall the service for that. When the address changes (`--subdomain`, `--domain`, `--port`), a new key is issued from the login session and the old one is revoked.

Usage

```bash
tuna service edit -- tuna [type] [flags]

```

Examples

```bash
tuna service edit -- tuna http 8081 --subdomain=web
tuna service edit --name db -- tuna tcp 5433

```

| Flag            | Description                    |
| --------------- | ------------------------------ |
| `--name string` | Service name. Default: `tuna`. |

[Global flags](https://tuna.am/en/docs/cli.md#global-flags) work too.

## History

|        |                |
| ------ | -------------- |
| 0.39.0 | Command added. |
