# ipa-hub service install

Install and start a LaunchAgent that also starts at user login (global installs only).

## Usage

```shell
ipa-hub service install [options]
```

## Options

| Option | Description |
| --- | --- |
| `--data-dir PATH` | Directory for downloads, app records, and server state. Defaults to `~/.ipa-hub`; the `IPA_HUB_HOME` environment variable sets an alternative default. `(string)` |
| `--json` | Print results as JSON `(boolean)` |
| `-h`, `--help` | Show help for this command `(boolean)` |
| `-v`, `--version` | Show the installed version `(boolean)` |
| `--host HOST` | Bind address. Defaults to the saved server host, or `0.0.0.0` `(string)` |
| `--port PORT` | TCP port for HTTP and UDP port for WebRTC. Uses the `IPA_HUB_PORT` environment variable, saved server port, or `19464`, in that order. `(number)` |
| `--allow-host HOST` | Allow network clients to fetch from this trusted private download host `(string[])` May be repeated. |
| `--setup-manager` | Choose a device to set up App Manager, with an option to skip `(boolean)` |

## Examples

```shell
ipa-hub service install --setup-manager
```

