> Markdown version of https://tuna.am/en/docs/cli/service/install/. 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 install

Install and start a service.

Usage

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

```

Examples

```bash
tuna service install -- tuna http 8080
tuna service install --name db -- tuna tcp 5432
tuna service install -- tuna ssh
tuna service install -- tuna trigger webhook /tmp/trigger.sh
sudo tuna service install --user www-data -- tuna http 8080

```

| Flag            | Description                        |
| --------------- | ---------------------------------- |
| `--name string` | Service name. Default: `tuna`.     |
| `--user string` | Run a system service as this user. |

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