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

# Connect CI with the CLI

> Connect GitHub from the terminal, then run workflows on BoxLite.

Use this path if you prefer terminal setup or connect from an SSH session. GitHub authorization still requires a browser.

For console setup, follow the [Quickstart](https://docs.boxlite.ai/cloud/ci/quickstart.md).

## Before you start

* [Install the BoxLite CLI](https://docs.boxlite.ai/reference/cli.md#install-and-verify).
* Use a BoxLite organization where you are an owner.
* Use a GitHub account that owns the target personal account or is an owner of the target GitHub organization.

## Sign in

Sign in as an owner of the target BoxLite organization:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
boxlite --context cloud auth login
```

## Connect GitHub

Connect the repository owner. For a repository named `octo-labs/demo`, use `octo-labs`:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
boxlite --context cloud ci connect octo-labs
```

Follow the browser authorization instructions. If the CLI asks you to install the GitHub app, complete installation and run the connection command again.

| Option | When to use it |
| - | - |
| `--allow-private-repositories` | Permit private repositories; the GitHub app must also have access to them. |
| `--no-browser` | Connect from an SSH session and complete browser authorization on another device. |

> [!NOTE]
>
> `BOXLITE_API_KEY` takes precedence over saved login credentials. To use the saved `cloud` identity when that variable is set, run `env -u BOXLITE_API_KEY boxlite --context cloud ci connect octo-labs`.

## Run a job

In [GitHub connections](https://app.boxlite.ai/dashboard/ci/connects), confirm **Listener** is **Ready** and your repository appears under the connected account.

Then [change an existing job](https://docs.boxlite.ai/cloud/ci/quickstart.md#change-an-existing-job) or run the [connection test](https://docs.boxlite.ai/cloud/ci/quickstart.md#verify-a-new-connection). The workflow uses the same `runs-on` labels regardless of how you connected GitHub.


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