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

# ravion gitlab

> Connect GitLab.com or self-hosted GitLab to Ravion, manage tokens, and inspect connected projects with the `ravion gitlab` commands.

## `ravion gitlab`

GitLab integration

### `ravion gitlab connect`

Open the GitLab OAuth flow in a browser

```bash theme={null}
ravion gitlab connect [flags]
```

**Flags:**

| Flag                      | Required | Description                                                  |
| ------------------------- | -------- | ------------------------------------------------------------ |
| `--no-browser`            |          | Print the URL instead of opening a browser                   |
| `--redirect-url <string>` |          | URL to redirect to after auth                                |
| `--self-hosted <string>`  |          | Self-hosted server id (uses self-hosted login flow when set) |

### `ravion gitlab repos`

List GitLab repositories in a namespace

```bash theme={null}
ravion gitlab repos [flags]
```

**Flags:**

| Flag                        | Required | Description                                               |
| --------------------------- | -------- | --------------------------------------------------------- |
| `--namespace <string>`      | yes      | Namespace id (required)                                   |
| `--json`                    |          | emit response as JSON                                     |
| `--namespace-type <string>` |          | Filter by namespace type                                  |
| `--self-hosted <string>`    |          | Self-hosted server id (use self-hosted endpoint when set) |
