# URL scheme

Any app that can open a link can drive Ferry through ferry:// links, with no command-line tool needed.

## Open a link

```
ferry://open?url=https%3A%2F%2Flinear.app%2Facme
```

The link in `url` goes through your rules exactly as if you had clicked it. Percent-encode it so its own `?` and `&` survive.

## Parameters

| Parameter | Example | Effect |
| --- | --- | --- |
| `url` | `https%3A%2F%2Fexample.com` | The link to route. Repeat it to route several. |
| `intent` | `work` | Skip the rules and use this intent |
| `browser` | `com.google.Chrome` | Open in this browser |
| `profile` | `Profile%201` | With `browser`: this profile directory |
| `private` | `1` | With `browser`: a private window |

Cleaning still runs when you name a destination. An explicit browser is checked the same way a saved binding is, so an impossible combination is refused rather than quietly changed.

## Always ask

```
ferry://ask?url=https%3A%2F%2Fexample.com
```

Shows the picker no matter what your rules say.

## From a launcher

Most launchers can open a link with a placeholder for what you typed or copied. A quick link like this opens anything you paste in your work profile:

```
ferry://open?intent=work&url={argument}
```

## From the terminal

```bash
open "ferry://open?intent=personal&url=https%3A%2F%2Fexample.com"
```

For scripts, the [command-line tool](/cli) is easier: it prints the trace and returns an exit code.

## If the intent doesn't exist

Ferry doesn't guess. It shows the picker and says what was wrong:

<pre class="trace">URL scheme → ? unknown intent @wrok</pre>
