---
name: collabops
description: Work in CollabOps from the terminal with the `co` CLI. Use when the user mentions CollabOps, an issue or change request (CR) key, a CollabOps workspace, project, milestone, sprint, doc or CI run, or asks to install, log in to, or use `co`.
---

# CollabOps (`co` CLI)

CollabOps is a DevOps platform: repositories, change requests (CRs, the CollabOps name for pull requests), CI runs, issues, projects, sprints and docs live in one workspace. The `co` CLI drives all of it from a terminal. Prefer `co` over guessing web URLs or calling the API by hand.

## Read the guide first

`co guide` prints situation → command recipes written for agents, matching the installed co version. Read it before running co commands you have not used in this session.

```bash
co guide                # every topic in one read
co guide --list         # topics only
co guide <topic>        # one topic, e.g. cr, ci, issue, docs
co <command> --help     # every option of one command
```

Use `co api` (raw API calls) only when the guide and `--help` show no command for the task.

## Setup

```bash
co --version || curl -fsSL https://docs.collabops.ai/install.sh | bash   # install (Windows: irm https://docs.collabops.ai/install.ps1 | iex)
co auth status          # logged in? which host and user?
co doctor               # checks git, SSH and login; offers fixes
```

- `co auth login` is interactive. Do not run it yourself in a non-interactive shell; ask the user to run it in their own terminal, then re-check with `co auth status`.
- Act on another workspace for one command with `-W <slug>`.
- Add `--json` when you need to parse a command's output.

## Ground rules

- Ask the user before anything that deletes or closes, before commenting or reviewing on their behalf, and before merging unless they told you to.
- Do not use `co cr merge --admin`: it bypasses repository rules and needs a reason and privileges the user must decide on.
- Never guess a key, workspace slug or flag. Look it up with `list`, `search` or `--help`.
- If a command fails with an auth error, stop and ask the user to run `co auth login`.
