Skip to content

CLI Reference

The oore CLI is a client for interacting with the Oore server.

Installation

Terminal window
cargo build --release -p oore-cli
sudo cp ./target/release/oore /usr/local/bin/

Global Options

OptionEnvironmentDefaultDescription
--server <URL>-http://localhost:8080Server URL
--admin-token <TOKEN>OORE_ADMIN_TOKEN-Admin token

oore health

Check if the server is running.

Terminal window
oore health
# Server status: ok

oore version

Show version information.

Terminal window
oore version
# CLI version: 0.1.0
# Server version: 0.1.0 (oored)

oore setup

Show setup status.

Terminal window
oore setup --admin-token YOUR_TOKEN

oore repo

Repository management commands.

oore repo list

Terminal window
oore repo list
ID PROVIDER NAME ACTIVE
--------------------------------------------------------------------
01HNJX5Q9T3WP2V6Z8K4M7YRBF github my-flutter-app yes
01HNJX7K2N4RM8P3Y5W6T9HSVE gitlab backend-api yes

oore repo add

Terminal window
oore repo add --provider <PROVIDER> --owner <OWNER> --repo <REPO> [OPTIONS]

Required:

ArgumentDescription
--providergithub or gitlab
--ownerRepository owner
--repoRepository name

Optional:

OptionDefaultDescription
--nameowner/repoDisplay name
--branchmainDefault branch
--webhook-secret-GitLab webhook secret
--github-repo-id-GitHub repository ID
--github-installation-id-GitHub App installation ID
--gitlab-project-id-GitLab project ID
Terminal window
oore repo add --provider github --owner myorg --repo my-app

oore repo show

Terminal window
oore repo show <REPO_ID>

oore repo remove

Terminal window
oore repo remove <REPO_ID>

oore repo webhook-url

Terminal window
oore repo webhook-url <REPO_ID>

oore build

Build management commands.

oore build list

Terminal window
oore build list [--repo <REPO_ID>]
ID STATUS TRIGGER BRANCH COMMIT
------------------------------------------------------------------
01HNJX9P2K4TM8Q6V5W3Y7ZRAD running webhook main abc1234
01HNJXA3N7RP5M2K8T4W6Y9HBC success manual develop def5678

oore build show

Terminal window
oore build show <BUILD_ID>

oore build trigger

Terminal window
oore build trigger <REPO_ID> [--branch <BRANCH>] [--commit <SHA>]
Terminal window
# Build default branch
oore build trigger 01HNJX5Q9T3WP2V6Z8K4M7YRBF
# Build specific branch
oore build trigger 01HNJX5Q9T3WP2V6Z8K4M7YRBF --branch feature/login

oore build cancel

Terminal window
oore build cancel <BUILD_ID>

oore webhook

oore webhook list

Terminal window
oore webhook list

oore webhook show

Terminal window
oore webhook show <EVENT_ID>

oore github

GitHub App management commands.

oore github setup

Initiate GitHub App setup via manifest flow. Opens a URL to create the GitHub App.

Terminal window
oore github setup --admin-token YOUR_TOKEN

oore github callback

Complete GitHub App setup with the callback URL from GitHub.

Terminal window
oore github callback "<REDIRECT_URL>" --admin-token YOUR_TOKEN

oore github status

Show current GitHub App configuration.

Terminal window
oore github status --admin-token YOUR_TOKEN

oore github installations

List GitHub App installations.

Terminal window
oore github installations --admin-token YOUR_TOKEN

oore github sync

Sync installations and repositories from GitHub.

Terminal window
oore github sync --admin-token YOUR_TOKEN

oore github remove

Remove GitHub App credentials.

Terminal window
oore github remove --force --admin-token YOUR_TOKEN

oore gitlab

GitLab OAuth management commands.

oore gitlab connect

Initiate GitLab OAuth flow.

Terminal window
oore gitlab connect --admin-token YOUR_TOKEN
oore gitlab connect --instance https://gitlab.mycompany.com --admin-token YOUR_TOKEN
oore gitlab connect --instance https://gitlab.com --replace --admin-token YOUR_TOKEN
OptionDefaultDescription
--instancehttps://gitlab.comGitLab instance URL
--replacefalseReplace existing credentials for this instance

oore gitlab callback

Complete GitLab OAuth with the callback URL.

Terminal window
oore gitlab callback "<REDIRECT_URL>" --admin-token YOUR_TOKEN

oore gitlab status

Show current GitLab credentials.

Terminal window
oore gitlab status --admin-token YOUR_TOKEN

oore gitlab projects

List accessible GitLab projects.

Terminal window
oore gitlab projects --admin-token YOUR_TOKEN
oore gitlab projects --instance https://gitlab.mycompany.com --page 2 --per_page 50 --admin-token YOUR_TOKEN
OptionDefaultDescription
--instancehttps://gitlab.comGitLab instance URL
--page1Page number
--per_page20Results per page

oore gitlab enable

Enable CI for a GitLab project.

Terminal window
oore gitlab enable <PROJECT_ID> --admin-token YOUR_TOKEN
oore gitlab enable 12345678 --instance https://gitlab.mycompany.com --admin-token YOUR_TOKEN

oore gitlab disable

Disable CI for a GitLab project.

Terminal window
oore gitlab disable <PROJECT_ID> --admin-token YOUR_TOKEN
oore gitlab disable 12345678 --instance https://gitlab.mycompany.com --admin-token YOUR_TOKEN

oore gitlab refresh

Refresh OAuth token for a GitLab instance.

Terminal window
oore gitlab refresh --admin-token YOUR_TOKEN
oore gitlab refresh --instance https://gitlab.mycompany.com --admin-token YOUR_TOKEN

oore gitlab register

Register OAuth app for self-hosted GitLab.

Terminal window
oore gitlab register \
--instance https://gitlab.mycompany.com \
--client-id YOUR_CLIENT_ID \
--client-secret YOUR_CLIENT_SECRET \
--admin-token YOUR_TOKEN

oore gitlab remove

Remove GitLab credentials.

Terminal window
oore gitlab remove <CREDENTIALS_ID> --force --admin-token YOUR_TOKEN

Complete Workflow

Terminal window
# 1. Check server
oore health
# 2. Add repository
oore repo add --provider github --owner myorg --repo my-app
# 3. Get webhook URL
oore repo webhook-url 01HNJX5Q9T3WP2V6Z8K4M7YRBF
# 4. Trigger build
oore build trigger 01HNJX5Q9T3WP2V6Z8K4M7YRBF
# 5. Watch build
oore build list --repo 01HNJX5Q9T3WP2V6Z8K4M7YRBF

Custom Server

Terminal window
oore --server https://ci.example.com repo list
# Or with environment variable
export OORE_ADMIN_TOKEN="your-token"
oore --server https://ci.example.com setup