ModernCI
Sign in

Docs · Agents and API

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.

Commands available today

CommandWhat it doesAuth
mci healthIs this install upnone
mci health detailHealth with the engine lease holder, server version and standing alarmstoken
mci auth methodsWhich sign-in methods this install offersnone
mci tokens createCreate a person or agent with a token (shown once)token
mci support grantLet the platform operator support this tenant for a limited timetoken
mci support revokeEnd operator support access to this tenanttoken
mci auditRead a tenant's audit logtoken
mci delegated setTurn delegated-approval mode on or off for the named tenanttoken
mci prs listList PRs with their status and wait reasontoken
mci prs showShow one PR: diff, checks, logs, approvals, cost, wait reasontoken
mci prs doneSubmit a pushed branch as a PR and leavetoken
mci prs claimClaim an unclaimed PRtoken
mci workMy open work: reds, conflicts, approvalstoken
mci work claimClaim a work itemtoken
mci work releaseLet go of a claimed work itemtoken
mci prs dequeueTake my PR out of the merge queuetoken
mci prs why-leftWhy a PR left the merge queuetoken
mci prs activityActivity log of a PR: pushes, checks, approvals, queue exitstoken
mci request pauseAsk a person to pause or resume runs in a projecttoken
mci config checkCheck .ci files: schema errors with file and linetoken
mci config simulateWhat a .ci change would run, and whether it changes the gatetoken
mci savingsSpend, waste and agent spend for a projecttoken
mci watchStream my events with replay from a sequence numbertoken
mci logRead a run's logtoken
mci passkeys listMy passkeys in this region and whether each is confirmed; for a tenant admin, members' passkeys waiting for confirmationtoken
mci settings getEffective value of a setting, where it comes from, and its locktoken
mci settings setSet or lock a setting at a leveltoken
mci tenants createCreate a tenanttoken
mci projects createCreate a projecttoken
mci repos addAdd a repo to a projecttoken
mci forges connectChoose the forge plugin for a tenant or project, with its configtoken
mci computes connectChoose the compute plugin for a tenant or project, with its config and overflow classestoken
mci roles grantGrant a roletoken
mci roles revokeTake a role awaytoken
mci membersList a tenant's people and agents with their rolestoken
mci pausePause new runs at a scopetoken
mci resumeResume runs at a scopetoken
mci stopStop: pause and cancel running jobstoken
mci meWho I am: identity, tenant, roles, passkeystoken
mci users linkLink a globally signed-in user to an identity of this tenanttoken
mci repos listRepos I can see, with open and red PR countstoken
mci prs searchSearch PRs across the repos I can seetoken
mci prs diffA PR's diff against its target, guarded files markedtoken
mci promotion listList promotion, revert and reconcile PRs: kind, source, target, promoted commit, hold reason, checkstoken
mci promotion showShow one promotion, revert or reconcile PR with its checks, approvals and hold reasontoken
mci promotion statusEach promotion pair of a repo (dev -> qa -> main): tips, what is ahead, held and whytoken
mci promotion approveApprove a promotion, or reject it with a reason (which opens the revert), with a person's passkeytoken + passkey
mci settings listEvery setting and feature at a level, with value, source and locktoken
mci statsMerge queue flow: PRs arrived, landed and red, cost, time to landtoken
mci ackAcknowledge my events up to a sequence numbertoken
mci computeRunners, pools, cloud accounts, placement and spend at a glancetoken
mci runners enrolmentA runner enrolment by its code: the machine, its scope and statustoken
mci runners tokenCreate a one-time registration token for unattended runners (shown once)token + passkey
mci runners showOne runner: health, jobs, capabilities, policytoken
mci runners drainLet a runner finish its jobs and take no new onestoken
mci runners resumeLet a drained runner take jobs againtoken
mci runners removeRemove a runner (it must be idle)token
mci log searchSearch a run's whole logtoken

Client commands, built, release coming

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

CommandWhat it does
mci run <cmd>Run any command on your compute, on demand
mci runner up, status, drain, deregisterRegister and manage this machine as a runner
mci mcpA stdio MCP bridge for agents
mci agents installWrite the MCP config for Claude Code, Codex and Cursor
mci importImport GitHub Actions, GitLab CI and Forgejo or Gitea workflows (server build only for now)
mci attestation verifyVerify an artifact's signature and provenance (server build only for now)

Coming

CommandWhat it will do
mci checks rerunRe-run a check with a stated reason
mci secrets putWrite a secret (write-only)
mci planJobs and worst-case cost that would start now
mci reproReproduce a CI failure locally
mci self-updateUpdate the client, verified before install

See Install the CLI.

View this page as Markdown