> ## Documentation Index
> Fetch the complete documentation index at: https://getpullrequest.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI

> Reference for the gpr command-line interface.

Binary name: `gpr`\
Install: [Install GPR](https://getpullrequest.com/docs/get-started/install-gpr.md)

## Commands

| Command | Purpose |
| - | - |
| `gpr setup [path]` | Create/pair workspace, install startup service, start daemon |
| `gpr daemon` | Run daemon in the foreground |
| `gpr start` | Alias for `gpr daemon` |
| `gpr restart` | Restart via OS startup service |
| `gpr reconnect` | Reconnect after offline |
| `gpr uninstall` | Stop service; `--purge` / `--force` also deletes `~/.gpr` |
| `gpr logs` | Show logs (`-f` / `--follow`, `-n` / `--lines`, default 50) |
| `gpr status` | Print local daemon state |
| `gpr doctor` | Health checks and suggested fixes |
| `gpr discover` | Detect ACP coding agents |
| `gpr update` | Download and install the latest release |
| `gpr --version` | Print version |

Root also accepts `--setup` as an alias for `gpr setup`.

## `gpr setup` flags

```bash theme={null}
gpr setup --force
gpr setup --server-url wss://api.getpullrequest.com/gpr/ws/daemon
gpr setup /path/to/repo
```

| Flag | Meaning |
| - | - |
| `--force` | Regenerate pairing credentials |
| `--server-url` | Override backend websocket URL |

## Global flags

```bash theme={null}
gpr -v status
```

`-v` / `--verbose` enables debug logging.

## Examples

```bash theme={null}
cd ~/code/my-repo
gpr setup
gpr discover
gpr status
gpr logs -f
gpr doctor
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.