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

Detect ports and prepare tuna commands.

Guide with examples: [Port Detection](https://tuna.am/en/docs/tunnels/guides/detect.md).

Usage

```bash
tuna detect -- [COMMAND] [ARGUMENTS] [flags]

```

Examples

```bash
tuna detect -- /path/to/binary

```

| Flag            | Description                        |
| --------------- | ---------------------------------- |
| `--seconds int` | Seconds to wait for. Default: `5`. |

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