---
title: "CLI reference: ModernCI docs"
description: "Every mci command available today, and the client commands that are coming."
url: https://modernci.dev/docs/cli/
---

# CLI reference

> Generated from the operation table in the ModernCI source (`crates/mci-api/src/ops.rs`, commit `32cae87556`), so the REST API, MCP tools and CLI stay in step. ModernCI is pre-launch: names and fields may change.

Every command below is also a REST operation; see the [API reference](/docs/api.md).

## Commands available today

| Command | What it does | Auth |
|---|---|---|
| `mci health` | Is this install up | none |
| `mci health detail` | Health with the engine lease holder, server version and standing alarms | token |
| `mci auth methods` | Which sign-in methods this install offers | none |
| `mci tokens create` | Create a person or agent with a token (shown once) | token |
| `mci support grant` | Let the platform operator support this tenant for a limited time | token |
| `mci support revoke` | End operator support access to this tenant | token |
| `mci audit` | Read a tenant's audit log | token |
| `mci delegated set` | Turn delegated-approval mode on or off for the named tenant | token |
| `mci prs list` | List PRs with their status and wait reason | token |
| `mci prs show` | Show one PR: diff, checks, logs, approvals, cost, wait reason | token |
| `mci prs done` | Submit a pushed branch as a PR and leave | token |
| `mci prs claim` | Claim an unclaimed PR | token |
| `mci work` | My open work: reds, conflicts, approvals | token |
| `mci work claim` | Claim a work item | token |
| `mci work release` | Let go of a claimed work item | token |
| `mci prs dequeue` | Take my PR out of the merge queue | token |
| `mci prs why-left` | Why a PR left the merge queue | token |
| `mci prs activity` | Activity log of a PR: pushes, checks, approvals, queue exits | token |
| `mci request pause` | Ask a person to pause or resume runs in a project | token |
| `mci config check` | Check .ci files: schema errors with file and line | token |
| `mci config simulate` | What a .ci change would run, and whether it changes the gate | token |
| `mci savings` | Spend, waste and agent spend for a project | token |
| `mci watch` | Stream my events with replay from a sequence number | token |
| `mci log` | Read a run's log | token |
| `mci passkeys list` | My passkeys in this region and whether each is confirmed; for a tenant admin, members' passkeys waiting for confirmation | token |
| `mci settings get` | Effective value of a setting, where it comes from, and its lock | token |
| `mci settings set` | Set or lock a setting at a level | token |
| `mci tenants create` | Create a tenant | token |
| `mci projects create` | Create a project | token |
| `mci repos add` | Add a repo to a project | token |
| `mci forges connect` | Choose the forge plugin for a tenant or project, with its config | token |
| `mci computes connect` | Choose the compute plugin for a tenant or project, with its config and overflow classes | token |
| `mci roles grant` | Grant a role | token |
| `mci roles revoke` | Take a role away | token |
| `mci members` | List a tenant's people and agents with their roles | token |
| `mci pause` | Pause new runs at a scope | token |
| `mci resume` | Resume runs at a scope | token |
| `mci stop` | Stop: pause and cancel running jobs | token |
| `mci me` | Who I am: identity, tenant, roles, passkeys | token |
| `mci users link` | Link a globally signed-in user to an identity of this tenant | token |
| `mci repos list` | Repos I can see, with open and red PR counts | token |
| `mci prs search` | Search PRs across the repos I can see | token |
| `mci prs diff` | A PR's diff against its target, guarded files marked | token |
| `mci promotion list` | List promotion, revert and reconcile PRs: kind, source, target, promoted commit, hold reason, checks | token |
| `mci promotion show` | Show one promotion, revert or reconcile PR with its checks, approvals and hold reason | token |
| `mci promotion status` | Each promotion pair of a repo (dev -> qa -> main): tips, what is ahead, held and why | token |
| `mci promotion approve` | Approve a promotion, or reject it with a reason (which opens the revert), with a person's passkey | token + passkey |
| `mci settings list` | Every setting and feature at a level, with value, source and lock | token |
| `mci stats` | Merge queue flow: PRs arrived, landed and red, cost, time to land | token |
| `mci ack` | Acknowledge my events up to a sequence number | token |
| `mci compute` | Runners, pools, cloud accounts, placement and spend at a glance | token |
| `mci runners enrolment` | A runner enrolment by its code: the machine, its scope and status | token |
| `mci runners token` | Create a one-time registration token for unattended runners (shown once) | token + passkey |
| `mci runners show` | One runner: health, jobs, capabilities, policy | token |
| `mci runners drain` | Let a runner finish its jobs and take no new ones | token |
| `mci runners resume` | Let a drained runner take jobs again | token |
| `mci runners remove` | Remove a runner (it must be idle) | token |
| `mci log search` | Search a run's whole log | token |

## Client commands, built, release coming

These work in the `mci` client build; the public download is coming.

| Command | What it does |
|---|---|
| `mci run <cmd>` | Run any command on your compute, on demand |
| `mci runner up`, `status`, `drain`, `deregister` | Register and manage this machine as a runner |
| `mci mcp` | A stdio MCP bridge for agents |
| `mci agents install` | Write the MCP config for Claude Code, Codex and Cursor |
| `mci import` | Import GitHub Actions, GitLab CI and Forgejo or Gitea workflows (server build only for now) |
| `mci attestation verify` | Verify an artifact's signature and provenance (server build only for now) |

## Coming

| Command | What it will do |
|---|---|
| `mci checks rerun` | Re-run a check with a stated reason |
| `mci secrets put` | Write a secret (write-only) |
| `mci plan` | Jobs and worst-case cost that would start now |
| `mci repro` | Reproduce a CI failure locally |
| `mci self-update` | Update the client, verified before install |

See [Install the CLI](/docs/install.md).
