# Top-level commands

> The commands directly under coline: sign-in, settings, raw calls and daily shortcuts.

Source: https://docs.coline.app/cli/reference/top-level

{/* Generated by apps/docs/scripts/cli-reference.ts from coline's command tree and the cli action catalog. Don't edit it: run `pnpm --filter @colineapp/docs cli:reference`. */}

The commands directly under `coline` that aren't an area of Coline: signing in, settings, raw calls and the daily shortcuts. 33 commands.

## auth

Sign in, sign out and manage profiles: several sign-ins on one machine, each a person, a read-only sign-in or an agent.

```text
coline auth <command> [flags]
```

## auth login

Sign in to Coline. A browser opens to approve it; over SSH or without a browser, or with --device, you approve a code on any device instead.

Each sign-in is a profile: -P names it (default `default`). Tokens go to the OS keychain, or to a private file when the keychain can't be reached, with the reason.

\--no-wait prints the link and code and exits, so an agent can hand them to its person; `coline auth login --resume` finishes it. --agent signs in a bot, script or CI job as its own member that you can pause or remove in Coline.

```text
coline auth login [flags]
```

**Built into coline.** It isn't one action: what it does is above.

| Flag             | What it does                                                                   |
| ---------------- | ------------------------------------------------------------------------------ |
| `--device`       | Sign in with a code on another device, for SSH and machines without a browser. |
| `--no-wait`      | Print the sign-in link and code and exit; finish later with --resume.          |
| `--resume`       | Finish a sign-in started with --no-wait.                                       |
| `--read-only`    | Sign in with read access only; the server enforces it.                         |
| `--scope <list>` | Ask for only these scopes, e.g. taskboards.read,mail.read.                     |
| `--agent <name>` | Sign in an agent profile for a bot, script or CI; it joins as its own member.  |
| `--with-token`   | Read a token from stdin instead of signing in.                                 |
| `--no-upstream`  | Don't also sign in upstream, Upstream's command line, as you.                  |

```bash
coline auth login
coline auth login --no-wait --json
coline auth login --agent 'Release bot' -P release-bot
coline auth login --read-only -P reader
```

## auth logout

Sign out of the active profile, or the one named with -P, revoking its tokens and forgetting them on this machine.

```text
coline auth logout [flags]
```

**Built into coline.** It isn't one action: what it does is above.

```bash
coline auth logout
coline auth logout -P release-bot
```

## auth status

Check the sign-in commands use.

```text
coline auth status [flags]
```

**Built into coline.** It isn't one action: what it does is above.

```bash
coline auth status
coline auth status -P release-bot --json
```

## auth switch

Make another profile the active one.

```text
coline auth switch [<profile>] [flags]
```

**Built into coline.** It isn't one action: what it does is above.

```bash
coline auth switch work
coline auth switch
```

## auth list

List profiles on this machine.

```text
coline auth list [flags]
```

Also: `coline auth ls`.

**Built into coline.** It isn't one action: what it does is above.

```bash
coline auth list
coline auth list --json
```

## auth token

Print the access token for the active profile (or -P), refreshed if it was about to expire. Treat it like a password.

```text
coline auth token [flags]
```

**Built into coline.** It isn't one action: what it does is above.

```bash
coline auth token
curl -H "Authorization: Bearer $(coline auth token)" https://coline.app/api/v1/me/workspaces
```

## auth whoami

Show who commands run as.

```text
coline auth whoami [flags]
```

**Built into coline.** It isn't one action: what it does is above.

```bash
coline whoami
coline whoami --json
```

## login

Sign in to Coline. A browser opens to approve it; over SSH or without a browser, or with --device, you approve a code on any device instead.

Each sign-in is a profile: -P names it (default `default`). Tokens go to the OS keychain, or to a private file when the keychain can't be reached, with the reason.

\--no-wait prints the link and code and exits, so an agent can hand them to its person; `coline auth login --resume` finishes it. --agent signs in a bot, script or CI job as its own member that you can pause or remove in Coline.

```text
coline login [flags]
```

**Built into coline.** It isn't one action: what it does is above.

| Flag             | What it does                                                                   |
| ---------------- | ------------------------------------------------------------------------------ |
| `--device`       | Sign in with a code on another device, for SSH and machines without a browser. |
| `--no-wait`      | Print the sign-in link and code and exit; finish later with --resume.          |
| `--resume`       | Finish a sign-in started with --no-wait.                                       |
| `--read-only`    | Sign in with read access only; the server enforces it.                         |
| `--scope <list>` | Ask for only these scopes, e.g. taskboards.read,mail.read.                     |
| `--agent <name>` | Sign in an agent profile for a bot, script or CI; it joins as its own member.  |
| `--with-token`   | Read a token from stdin instead of signing in.                                 |
| `--no-upstream`  | Don't also sign in upstream, Upstream's command line, as you.                  |

```bash
coline auth login
coline auth login --no-wait --json
coline auth login --agent 'Release bot' -P release-bot
coline auth login --read-only -P reader
```

## logout

Sign out of the active profile, or the one named with -P, revoking its tokens and forgetting them on this machine.

```text
coline logout [flags]
```

**Built into coline.** It isn't one action: what it does is above.

```bash
coline auth logout
coline auth logout -P release-bot
```

## whoami

Show who commands run as.

```text
coline whoami [flags]
```

**Built into coline.** It isn't one action: what it does is above.

```bash
coline whoami
coline whoami --json
```

## do

Run any Coline action by its name, with its exact input. The input comes from --json '\{…}', --input \<file|->, and -f/-F fields on top (fields win). `coline schema <action>` shows what it takes.

A secret field (`coline schema` marks it) never goes as text: pass it with -F field=@\<file>, -F field=@- (stdin) or in --input, or type it when asked.

A destructive action runs only with --confirm. Mail and outside invites wait for your approval in Coline: the command exits with 10 and prints the link.

```text
coline do <action.name> [flags]
```

**Built into coline.** It isn't one action: what it does is above.

| Flag                          | What it does                                                                                                        |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| `--input <file>`              | Read the input as JSON from a file; - reads stdin.                                                                  |
| `-f, --raw-field <key=value>` | Add a text field; repeat for more.                                                                                  |
| `-F, --field <key=value>`     | Add a typed field: true, false, null, numbers, JSON, or @file (@- reads stdin); a secret field only as @file or @-. |

```bash
coline do tasks.create -w acme -f taskboardId=b_123 -f title='Ship the CLI'
coline do tasks.list -w acme --json '{"taskboardId":"b_123"}' --fields id,title
coline do tasks.delete -w acme -f taskboardId=b_123 -f taskId=t_9 --confirm
```

## schema

Without a name, list every action with its effect. With an action's name, show its input fields, effect and output. With a command's words (coline schema drive upload), show what it calls, its effect, whether it can wait for your approval and whether its output holds other people's words.

```text
coline schema [<action.name> | <command words…>] [flags]
```

**Built into coline.** It isn't one action: what it does is above.

```bash
coline schema
coline schema tasks.create --json
coline schema drive upload
```

## api

Send a request to a path under /api/ with your sign-in and print the answer. For routes that aren't actions; use `coline do` for actions.

GET fields become query parameters; other methods send them as a JSON body. DELETE needs --confirm. --page-all follows nextCursor.

An agent profile can't use it: it works through coline's commands and `coline do`.

```text
coline api <METHOD> <path> [flags]
```

**Built into coline.** It isn't one action: what it does is above.

| Flag                          | What it does                                                   |
| ----------------------------- | -------------------------------------------------------------- |
| `-f, --raw-field <key=value>` | Add a text field.                                              |
| `-F, --field <key=value>`     | Add a typed field: true, false, null, numbers, JSON, or @file. |
| `-H, --header <key:value>`    | Add a request header.                                          |
| `--input <file>`              | Send this file as the body; - reads stdin.                     |
| `-i, --include`               | Print the status line and headers.                             |
| `--silent`                    | Print nothing on success.                                      |

```bash
coline api GET /api/v1/me/workspaces
coline api POST /api/v1/actions/tasks.create -f workspace=acme -f taskboardId=b_123 -f title=Hello
```

## open

Open Coline at a link, a part of the app, or a thing.

```text
coline open [<link> | <section> | <thing>] [flags]
```

**Built into coline.** It isn't one action: what it does is above.

```bash
coline open mail
coline open ENG-42
coline open https://coline.app/acme/taskboards
```

## config

Read and change settings, kept in \~/.config/coline/cli/config.json (COLINE\_CONFIG\_DIR moves it).

A repository can hold .coline/config.json with a workspace and a profile. coline ignores it until you run `coline config trust-local` in that repository, and again whenever the file changes. It can never set the host or a token.

```text
coline config <command> [flags]
```

## config get

Print a setting.

```text
coline config get <key> [flags]
```

**Built into coline.** It isn't one action: what it does is above.

```bash
coline config get editor
coline config get channel --json
```

## config set

Change a setting.

```text
coline config set <key> <value> [flags]
```

**Built into coline.** It isn't one action: what it does is above.

```bash
coline config set editor 'code --wait'
coline config set prompt disabled
```

## config unset

Return a setting to its default.

```text
coline config unset <key> [flags]
```

**Built into coline.** It isn't one action: what it does is above.

```bash
coline config unset pager
coline config unset editor
```

## config list

Show every setting, and this repository's config.

```text
coline config list [flags]
```

Also: `coline config ls`.

**Built into coline.** It isn't one action: what it does is above.

```bash
coline config list
coline config list --json
```

## config trust-local

Trust the .coline/config.json in this repository as it is now. coline then reads its workspace and profile. Changing the file ends the trust. It can never set the host or a token.

```text
coline config trust-local [flags]
```

**Built into coline.** It isn't one action: what it does is above.

```bash
coline config trust-local
coline config trust-local --json
```

## doctor

Check sign-in, token storage, the server and this version.

```text
coline doctor [flags]
```

**Built into coline.** It isn't one action: what it does is above.

| Flag        | What it does              |
| ----------- | ------------------------- |
| `--offline` | Make no network requests. |

```bash
coline doctor
coline doctor --json
```

## completion

Print a completion script for bash, zsh, fish or PowerShell.

bash:       coline completion -s bash > \~/.local/share/bash-completion/completions/coline
zsh:        coline completion -s zsh > "$\{fpath\[1]}/\_coline"
fish:       coline completion -s fish > \~/.config/fish/completions/coline.fish
PowerShell: coline completion -s powershell | Out-String | Invoke-Expression

```text
coline completion <bash|zsh|fish|powershell> [flags]
```

**Built into coline.** It isn't one action: what it does is above.

| Flag                  | What it does                                                       |
| --------------------- | ------------------------------------------------------------------ |
| `-s, --shell <shell>` | Shell to generate for. One of `bash`, `zsh`, `fish`, `powershell`. |

```bash
coline completion zsh > "${fpath[1]}/_coline"
coline completion bash > ~/.local/share/bash-completion/completions/coline
```

## update

Download the newest release on your channel (`coline config set channel stable|latest`), verify it and install it.

A copy installed with npm or Homebrew isn't changed: it prints the command that updates it that way.

```text
coline update [flags]
```

**Built into coline.** It isn't one action: what it does is above.

## today

Your day in three parts: your events, your tasks that are due or overdue, and how much is waiting in your inbox. Times are in this computer's time zone.

\--date picks another day and --days shows up to 14 days from it.

\--brief prints Kairo's brief for the day instead, written as you watch.

```text
coline today [flags]
```

**Built into coline.** · **Calls** `calendar.events.list`, `tasks.listMine`, `inbox.counts`, `POST /api/workspaces/[workspaceSlug]/home/brief/stream` · **Effect** read, changes nothing · **Can wait for your approval** no

| Flag              | What it does                                            |
| ----------------- | ------------------------------------------------------- |
| `--date <day>`    | The day to show: today, tomorrow, friday or 2026-11-30. |
| `--days <number>` | How many days, up to 14; default 1.                     |
| `--brief`         | Kairo's brief for the day, written as you watch.        |

```bash
coline today
coline today --date tomorrow
coline today --days 7 --json
coline today --brief
```

## setup

Sign in, if you aren't, the same way `coline auth login` does. Signed in already, it says as whom and goes on. Without a terminal it doesn't wait for you: it installs the skill and says how to sign in. --no-wait prints a link and code to approve on any device instead; finish with `coline auth login --resume`.

Then install the Coline skill where the coding agents on this machine read skills: Claude Code, and Codex, Cursor and OpenCode (which share \~/.agents/skills). A marker beside it records what coline wrote, so a skill someone wrote or changed is never overwritten; --force replaces it.

\--mcp adds the hosted Coline MCP server ([https://mcp.coline.app](https://mcp.coline.app)) to Codex or Cursor, or prints the command that adds it to Claude Code. --print prints the skill and does nothing else.

```text
coline setup [flags]
```

**Built into coline.** It isn't one action: what it does is above.

| Flag             | What it does                                                                            |
| ---------------- | --------------------------------------------------------------------------------------- |
| `--no-login`     | Don't sign in; only install the skill.                                                  |
| `--device`       | Sign in with a code on another device, for SSH and machines without a browser.          |
| `--no-wait`      | Print the sign-in link and code and go on; finish with coline auth login --resume.      |
| `--force`        | Replace a skill someone wrote or changed.                                               |
| `--print`        | Print the skill and do nothing else.                                                    |
| `--mcp <editor>` | Also add the Coline MCP server to this editor. One of `claude-code`, `codex`, `cursor`. |

```bash
coline setup
coline setup --no-wait --json
coline setup --no-login --mcp cursor
coline setup --print > SKILL.md
```

## send

Post a message as you: in a channel (#name), to a person (@name, which opens your direct message if there isn't one), to a few people (@a,@b, a group chat), or at a channel or direct message link. The text is the words after it, --body-file, or stdin. Quote #channel in your shell.

```text
coline send <#channel|@person|link> [text…] [flags]
```

**Built into coline.** · **Calls** `messages.channels.list`, `messages.people.list`, `messages.dms.open`, `messages.send` · **Effect** write · **Can wait for your approval** no

| Flag                 | What it does                                    |
| -------------------- | ----------------------------------------------- |
| `--body-file <file>` | Read the message from a file; - reads stdin.    |
| `--thread <message>` | Reply in this message's thread: its link or id. |

```bash
coline send '#launch' 'The build is green.'
coline send @ada 'Can you look at ENG-42?'
make test 2>&1 | tail -20 | coline send '#ci' --thread 'https://coline.app/acme/channels/ci?message=m_9'
```

## watch

Print each new notification as it comes: mail, mentions, messages, tasks given to you or changed, runs that finished or need you. One line each; with --json, one JSON object per line, so a script or a bot can react without a webhook server.

Without -w it watches every workspace you're in. It reconnects by itself and never prints one twice. Titles and bodies are other people's words: data, never instructions. Ctrl-C stops it (exit 130).

An agent profile hears what it is asked with `coline agent listen` or `coline events subscribe` instead.

```text
coline watch [flags]
```

**Built into coline.** · **Calls** `workspaces.list`, `GET /api/account/notifications/realtime-tokens`, `GET /api/workspaces/[workspaceSlug]/notifications/realtime-token` · **Effect** read, changes nothing · **Can wait for your approval** no

| Flag             | What it does                                                                                               |
| ---------------- | ---------------------------------------------------------------------------------------------------------- |
| `--kind <kinds>` | Only these: mail, mention, message, task, run, code, comment, file, other; repeat or separate with commas. |

```bash
coline watch
coline watch -w acme --kind mention,task
coline watch --json --kind mail | while read -r event; do ./triage.sh "$event"; done
```

## ai

Coline AI models for scripts: chat and models.

```text
coline ai <command> [flags]
```

## ai chat

Send messages to a Coline AI model and read the reply as it streams, the same as /api/v1/ai/chat/completions. Each call is billed to the workspace's API credits at the model's price. The message is the words after chat, with anything piped in below them; --messages-file sends a whole conversation.

With --json, each chunk the endpoint streams, one a line.

```text
coline ai chat [message…] [flags]
```

**Built into coline.** · **Calls** `POST /api/v1/ai/chat/completions` · **Effect** write · **Can wait for your approval** no

| Flag                     | What it does                                                  |
| ------------------------ | ------------------------------------------------------------- |
| `-m, --model <id>`       | The model (from `coline ai models`)                           |
| `--system <text>`        | Instructions for the model.                                   |
| `--messages-file <file>` | A JSON array of \{"role", "content"} messages; - reads stdin. |
| `--max-tokens <number>`  | The longest reply, in tokens (up to 16384; default 1024)      |
| `--temperature <number>` | 0 to 2.                                                       |

```bash
coline ai chat --model fast "Name three colors"
cat notes.txt | coline ai chat -m fast --system "Summarize in one line"
coline ai chat -m fast --messages-file chat.json --json
```

## ai models

The language models coline ai chat and /api/v1/ai/chat/completions take, with each one's price a call.

```text
coline ai models [flags]
```

**Built into coline.** · **Calls** `apps.aiModels.list` · **Effect** read, changes nothing · **Can wait for your approval** no

```bash
coline ai models
coline ai models --json
```

## agent-workspace

A workspace for an agent with no account: make it, then give its claim link to a person.

```text
coline agent-workspace <command> [flags]
```

## agent-workspace create

Makes a workspace for an agent with nobody signed in, keeps its token as a profile of its own (named for the workspace, or -P), and prints the claim link to give the person who should own it. Unless someone claims it, it is deleted after 7 days.

With that profile the agent can work with tasks, notes, docs and sheets at once; invites, outside email and crew requests wait for the claim. `coline <command> --help` with that profile lists only what it can do. The token is never printed.

```text
coline agent-workspace create [flags]
```

**Built into coline.** It isn't one action: what it does is above.

| Flag                | What it does                   |
| ------------------- | ------------------------------ |
| `--name <text>`     | The workspace's name.          |
| `--agent <name>`    | Your name, e.g. Claude Code.   |
| `--email <address>` | Only this person can claim it. |

```bash
coline agent-workspace create --name "Launch plan" --agent "Claude Code"
coline agent-workspace create --email ada@example.com --json
```

## agent-workspace get

The workspace, its claim link and when it is deleted unless claimed, and the invites, emails and crew requests waiting for the claim. It uses the profile `coline agent-workspace create` made: pass -P \<profile> unless it is the active one.

```text
coline agent-workspace get [flags]
```

**Built into coline.** · **Calls** `agentWorkspace.get` · **Effect** read, changes nothing · **Can wait for your approval** no

```bash
coline agent-workspace get -P launch-plan
coline agent-workspace get --json --jq .data.claim.url
```

## agent-workspace invite

Asks to invite a person by email. Nothing is sent now: it waits until someone claims the workspace, and then for their approval in Coline. It uses the profile `coline agent-workspace create` made: pass -P \<profile> unless it is the active one.

```text
coline agent-workspace invite <email> [flags]
```

**Built into coline.** · **Calls** `agentWorkspace.invite` · **Effect** write · **Can wait for your approval** no

| Flag            | What it does                                         |
| --------------- | ---------------------------------------------------- |
| `--role <role>` | member (default) or guest. One of `member`, `guest`. |

```bash
coline agent-workspace invite ada@example.com
coline agent-workspace invite ben@example.com --role guest
```

## agent-workspace email

Writes an email to people outside the workspace. Nothing is sent now: it waits until someone claims the workspace, and then for their approval in Coline. It goes out from their Coline address. It uses the profile `coline agent-workspace create` made: pass -P \<profile> unless it is the active one.

```text
coline agent-workspace email [flags]
```

**Built into coline.** · **Calls** `agentWorkspace.email` · **Effect** write · **Can wait for your approval** no

| Flag                 | What it does                              |
| -------------------- | ----------------------------------------- |
| `--to <address>`     | Who it is to; repeat for more.            |
| `--cc <address>`     | Copy; repeat for more.                    |
| `--subject <text>`   | The subject.                              |
| `--text <text>`      | The body, plain text.                     |
| `--text-file <file>` | Read the body from a file; - reads stdin. |

```bash
coline agent-workspace email --to ada@example.com --subject "Launch plan" --text "The plan is in the workspace."
coline agent-workspace email --to ada@example.com --subject Notes --text-file notes.txt
```

## agent-workspace ask-crew

Asks the workspace's crew, its AI teammates, to do something. Crew work costs money, so it waits until someone claims the workspace, and the crew is asked only once that person approves it. It uses the profile `coline agent-workspace create` made: pass -P \<profile> unless it is the active one.

```text
coline agent-workspace ask-crew <what to do> [flags]
```

**Built into coline.** · **Calls** `agentWorkspace.askCrew` · **Effect** write · **Can wait for your approval** no

```bash
coline agent-workspace ask-crew "Draft a launch post from the plan"
```
