Getting started
This guide takes a repository from nothing to its first run on BareCI. You need the repository on GitHub, a local clone, and permission to install a GitHub App on its owner.
1. Install the CLI
Section titled “1. Install the CLI”The bareci CLI is one static binary. Check it is on your path:
bareci --version2. Set the repository up
Section titled “2. Set the repository up”Run init in the repository’s root:
bareci initinit does every step of setup and shows you what it changed:
- Signs you in with a one-time code in the browser, as
gh auth logindoes. No token is pasted anywhere. The token goes to the operating system’s keychain. - Checks the GitHub App on the repository’s owner and links you to install it if it is missing.
- Opts the repository in, so its jobs can run on BareCI.
- Writes
.bareci/config.ymland.bareci/image.shfrom what it detects in the repository: Bun or Node, Playwright, Postgres, Docker. The image script is what the repository’s machine image is baked from. - Points
runs-on:at BareCI through a repository variable with a fallback, for example${{ vars.BARECI_RUNNER_4 || 'ubuntu-latest' }}, so any job can return to its previous runner by changing one variable. - Opens a pull request with all of it.
Useful flags:
| Flag | What it does |
|---|---|
--dry-run |
Show the diff and what would happen; change nothing |
--no-pr |
Write the files into this checkout instead of opening a pull request |
--label bareci-8 |
The default pool size (default bareci-4) |
--repo owner/name |
The repository, when it is not the origin remote |
3. Check the setup
Section titled “3. Check the setup”bareci doctordoctor checks each step of init and prints the one fix for each failure.
4. Run the tests on BareCI
Section titled “4. Run the tests on BareCI”bareci run -- bun testrun packs your worktree as it is, uncommitted changes included, runs the command on a fresh machine built from the repository’s image, streams the output, and exits with the command’s exit code. With no command, it runs the install and test commands from .bareci/config.yml.
Bring files back with --collect and test reports with --junit:
bareci run --junit junit.xml -- bun test --reporter=junit --reporter-outfile=junit.xml5. Push, and ask whether it is ready
Section titled “5. Push, and ask whether it is ready”After you merge the init pull request, CI jobs run on BareCI. On any pull request:
bareci ready --waitready gives the Gate’s verdict: ready, or every reason it is not yet with the command that fixes it. --wait holds until nothing is pending.
- Connect your agent with MCP setup.
- Read the CLI reference.
- See how the modules fit in the pull request lifecycle.