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

# CLI reference

> Commands, flags, keybindings, and common workflows.

## Commands

### Install (optional)

```bash theme={null}
wrapper install
wrapper install --dry-run
wrapper install --all
wrapper install --shell=zsh,bash
wrapper install --interactive
wrapper install --yes
wrapper uninstall
wrapper uninstall --all
wrapper init <shell>   # zsh | bash | fish
```

### Auth

```bash theme={null}
wrapper auth login
wrapper auth login --client-id <id> --scope <scope>
wrapper auth whoami
wrapper auth logout
```

### Sessions

```bash theme={null}
wrapper share
wrapper share --writable
wrapper share -- claude
wrapper run -- claude
wrapper run --share -- claude
wrapper run --share --writable -- claude
wrapper status
wrapper notify
wrapper attach
wrapper attach --id <sessionId>
wrapper attach --port <port>
wrapper attach --host 127.0.0.1
wrapper attach --relay --id <sessionId>
# Automation only:
wrapper attach --relay --id <sessionId> --code "$WRAPPER_SHARE_CODE"
wrapper logs
wrapper logs --follow
wrapper logs --tail 200
```

### Telemetry

```bash theme={null}
wrapper telemetry status
wrapper telemetry enable
wrapper telemetry disable
```

### Internal / development

```bash theme={null}
wrapper shell-host
wrapper shell-host --shell /bin/zsh
wrapper shell-host --port <number>
wrapper shell-host --share
bun run --cwd apps/cli dev:host
```

### Meta

```bash theme={null}
wrapper --help
wrapper --version
```

## Keybindings

Prefix defaults to `Ctrl+\` (armed for about 1.5 seconds). Override with
`WRAPPER_PREFIX` or `prefix` in `~/.config/wrapper/config.json`. See
[Environment](https://docs.wrapper.sh/configuration/environment.md).

### Host

| Keys | Action |
| - | - |
| `Ctrl+\` `s` | Share and print share code |
| `Ctrl+\` `u` | Unshare and revoke access |
| `Ctrl+\` `?` | Status overlay |
| `Ctrl+\` `Ctrl+\` | Send literal control byte |
| `Ctrl+\` `Esc` | Cancel prefix mode |

### Viewer

| Keys | Action |
| - | - |
| `Ctrl+\` `d` | Detach viewer |
| `Ctrl+\` `?` | Viewer status |

## HUD

The terminal title shows role, short session id, and transport:

`local` · `connecting` · `relay` · `p2p` · `offline`

Disable with `WRAPPER_HUD=off`. Wrapper does not draw a permanent bottom bar
because that conflicts with alternate-screen tools.

## Typical flows

Local:

```bash theme={null}
wrapper auth login
wrapper share
wrapper status
wrapper attach
```

Remote (Pro):

```bash theme={null}
wrapper share
wrapper attach --relay --id <sessionId>
wrapper notify
```

`wrapper notify` rings the wrapped session so your phone can ping you. Run it
inside that terminal. Alerts name the session and do not include the screen.

Remote share requires Pro. See [Pricing](https://docs.wrapper.sh/reference/pricing.md).


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