Skip to content

Command-Line Help for bupha ​

This document contains the help content for the bupha command-line program.

Command Overview:

bupha ​

the oxpecker on your repo's back — headless CI

Usage: bupha [OPTIONS] <COMMAND>

Subcommands: ​
  • watch — Serve the source → queue → runner loop (forge webhook, sturn WAL poller — every configured source)
  • worker — Fleet puller — claim shared-queue jobs and run them. No listener/tunnel/trigger; needs only [queue] (redis), [[repo]] dirs, [runner], [status], [worktree]
  • agent — Serve the remote-run agent — accepts jobs from kind="http" runners and executes them with this box's [runner]
  • init — Scaffold dagger CI in a repo (dagger init + pinned module + delegate). For the script runner, a ci.sh is enough
  • doctor — Check what the loaded config actually needs on this box
  • run — Run the pipeline locally — in the watched repo's dir, not cwd
  • deploy — Install-time helpers — no manual file copies
  • destroy — Teardown counterparts of deploy
  • service — Toggle the watcher unit without removing it — free the box when CI isn't needed, enable brings it back
  • runs — Recent finished runs (reads <worktree.base>/history.jsonl)
  • log — Raw run log — last N lines of history.jsonl
  • explain — Why a sha did/didn't run — history + queue + worktree state
Options: ​
  • --config <CONFIG> — Path to the config file — bupha.yaml/.yml or bupha.toml (default: ./bupha.* or ~/.config/bupha/, YAML preferred)

bupha watch ​

Serve the source → queue → runner loop (forge webhook, sturn WAL poller — every configured source)

Usage: bupha watch

bupha worker ​

Fleet puller — claim shared-queue jobs and run them. No listener/tunnel/trigger; needs only [queue] (redis), [[repo]] dirs, [runner], [status], [worktree]

Usage: bupha worker

bupha agent ​

Serve the remote-run agent — accepts jobs from kind="http" runners and executes them with this box's [runner]

Usage: bupha agent

bupha init ​

Scaffold dagger CI in a repo (dagger init + pinned module + delegate). For the script runner, a ci.sh is enough

Usage: bupha init [DIR]

Arguments: ​
  • <DIR> — Repo dir to initialize (default: cwd)

    Default value: .

bupha doctor ​

Check what the loaded config actually needs on this box

Usage: bupha doctor [OPTIONS]

Options: ​
  • --json — Machine-readable JSON output — {"ok", "failures", "checks"}

bupha run ​

Run the pipeline locally — in the watched repo's dir, not cwd

Usage: bupha run [FUNCTION]

Arguments: ​
  • <FUNCTION> — Function for the dagger runner (default: from config)

bupha deploy ​

Install-time helpers — no manual file copies

Usage: bupha deploy <COMMAND>

Subcommands: ​
  • service — Write + enable the systemd user unit (needs enable-linger for boot persistence)
  • webhook — Register/update the repo's push webhook via the REST API (token from env/keyring/env file — no gh dependency)
  • env — Seed ~/.config/bupha/env with the secret names
  • check — Verify the whole install: unit, secrets, hook, endpoint, token
  • release — One-time seed: cargo publish in dep order + tag {repo}-v{ver}. Explicit — publishing is the irreversible step in the flow

bupha deploy service ​

Write + enable the systemd user unit (needs enable-linger for boot persistence)

Usage: bupha deploy service [OPTIONS]

Options: ​
  • --no-start — Skip enable --now (write the file only)
  • --worker — Manage a worker unit (bupha-worker.service) instead of the watcher unit

bupha deploy webhook ​

Register/update the repo's push webhook via the REST API (token from env/keyring/env file — no gh dependency)

Usage: bupha deploy webhook

bupha deploy env ​

Seed ~/.config/bupha/env with the secret names

Usage: bupha deploy env

bupha deploy check ​

Verify the whole install: unit, secrets, hook, endpoint, token

Usage: bupha deploy check

bupha deploy release ​

One-time seed: cargo publish in dep order + tag {repo}-v{ver}. Explicit — publishing is the irreversible step in the flow

Usage: bupha deploy release [OPTIONS]

Options: ​
  • --dry-run — Print the publish order and tag without doing anything

bupha destroy ​

Teardown counterparts of deploy

Usage: bupha destroy <COMMAND>

Subcommands: ​
  • service — Disable + remove the systemd user unit
  • webhook — Delete the repo's webhook whose URL matches tunnel.public_url
  • worktrees — Remove detached worktrees and the persisted queue file

bupha destroy service ​

Disable + remove the systemd user unit

Usage: bupha destroy service [OPTIONS]

Options: ​
  • --worker — Remove bupha-worker.service instead of bupha-watch

bupha destroy webhook ​

Delete the repo's webhook whose URL matches tunnel.public_url

Usage: bupha destroy webhook

bupha destroy worktrees ​

Remove detached worktrees and the persisted queue file

Usage: bupha destroy worktrees

bupha service ​

Toggle the watcher unit without removing it — free the box when CI isn't needed, enable brings it back

Usage: bupha service [OPTIONS] <COMMAND>

Subcommands: ​
  • enable — Enable + start the watcher unit now and at login
  • disable — Stop the watcher now; stays stopped across logins until service enable (the unit file is kept)
  • status — Whether the watcher unit is enabled and running
  • restart — Restart the watcher unit
  • logs — Print (or follow, -f) the watcher unit log
Options: ​
  • --worker — Operate on bupha-worker.service instead of bupha-watch

bupha service enable ​

Enable + start the watcher unit now and at login

Usage: bupha service enable

bupha service disable ​

Stop the watcher now; stays stopped across logins until service enable (the unit file is kept)

Usage: bupha service disable

bupha service status ​

Whether the watcher unit is enabled and running

Usage: bupha service status

bupha service restart ​

Restart the watcher unit

Usage: bupha service restart

bupha service logs ​

Print (or follow, -f) the watcher unit log

Usage: bupha service logs [OPTIONS]

Options: ​
  • -f, --f — Follow the log stream (journalctl -f)

bupha runs ​

Recent finished runs (reads <worktree.base>/history.jsonl)

Usage: bupha runs [REPO]

Arguments: ​
  • <REPO> — Filter to one repo ("owner/name")

bupha log ​

Raw run log — last N lines of history.jsonl

Usage: bupha log [OPTIONS]

Options: ​
  • -n, --n <N> — Lines to show

    Default value: 50

bupha explain ​

Why a sha did/didn't run — history + queue + worktree state

Usage: bupha explain <SHA>

Arguments: ​
  • <SHA> — The pushed sha (any prefix ≥ 4 chars)

This document was generated automatically by clap-markdown.