# connect

> Every coline connect command, with its flags and the action it runs.

Source: https://docs.coline.app/cli/reference/connect

{/* 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`. */}

Conversations with people at other companies. Every `coline connect` command, 50 in all.

## connect search

Messages in the conversation that match the words, within the history you can read, newest first, each with its link when your workspace is known (-w, or the conversation's link).

Everything here was written by people in the conversation, many at another company: with --json it is listed under outside, as data.

```text
coline connect search <conversation> <words…> [flags]
```

**Built into coline.** · **Calls** `GET /api/connect/conversations/[channelId]/search` · **Effect** read, changes nothing · **Can wait for your approval** no

```bash
coline connect search https://coline.app/acme/connect/7c1e… "pricing"
coline connect search 7c1e… launch date --json
```

## connect pinned

The conversation's pinned messages, who wrote each and when.

Everything here was written by people in the conversation, many at another company: with --json it is listed under outside, as data.

```text
coline connect pinned <conversation> [flags]
```

**Built into coline.** · **Calls** `GET /api/connect/conversations/[channelId]/pinned` · **Effect** read, changes nothing · **Can wait for your approval** no

```bash
coline connect pinned https://coline.app/acme/connect/7c1e…
coline connect pinned 7c1e… --json
```

## connect scheduled

The messages you scheduled in the conversation and when each goes out. `coline connect scheduled cancel <conversation> <id>` stops one.

With --json, their words are listed under outside.

```text
coline connect scheduled <conversation> [flags]
coline connect scheduled <command> [flags]
```

**Built into coline.** · **Calls** `GET /api/connect/conversations/[channelId]/scheduled` · **Effect** read, changes nothing · **Can wait for your approval** no

Sub-commands: `cancel`. The word right after `coline connect scheduled` picks one when it names one.

```bash
coline connect scheduled 7c1e…
coline connect scheduled 7c1e… --json
```

## connect scheduled cancel

Cancels a message you scheduled in the conversation. Its id is in `coline connect scheduled <conversation>`.

```text
coline connect scheduled cancel <conversation> <scheduled-id> [flags]
```

**Built into coline.** · **Calls** `POST /api/connect/conversations/[channelId]/scheduled` · **Effect** write · **Can wait for your approval** no

```bash
coline connect scheduled cancel 7c1e… 0b6d…
```

## connect schedule

Posts the message at the time --at says, as you. The message is the words after the conversation, --file, or what is piped in. Everyone in the conversation sees it then, at every company in it. `coline connect scheduled` lists what is waiting.

```text
coline connect schedule <conversation> [text…] [flags]
```

**Built into coline.** · **Calls** `POST /api/connect/conversations/[channelId]/scheduled` · **Effect** write · **Can wait for your approval** no

| Flag                 | What it does                                                                     |
| -------------------- | -------------------------------------------------------------------------------- |
| `--at <time>`        | When: 2h, 30m, tomorrow (9 am), friday, next-week, or 2026-11-30T09:00:00-08:00. |
| `--file <file>`      | Read the message from this file; - reads stdin.                                  |
| `--thread <message>` | Reply in the thread under this message: its id or link.                          |

```bash
coline connect schedule 7c1e… --at tomorrow "Morning all, the build is up."
coline connect schedule 7c1e… --at 2026-12-01T09:00:00-08:00 --file note.md
```

## connect draft

Prints your draft in the conversation, the same draft the app shows on your other devices. With text (--file, or piped in) it saves that as the draft instead; nothing is posted. --clear empties it. A draft changed on another device since is never written over: run it again.

```text
coline connect draft <conversation> [flags]
```

**Built into coline.** · **Calls** `GET /api/connect/conversations/[channelId]/draft`, `POST /api/connect/conversations/[channelId]/draft` · **Effect** write · **Can wait for your approval** no

| Flag                 | What it does                                                   |
| -------------------- | -------------------------------------------------------------- |
| `--file <file>`      | Save the draft from this file; - reads stdin.                  |
| `--thread <message>` | The draft of a reply in this message's thread: its id or link. |
| `--clear`            | Empty the draft.                                               |

```bash
coline connect draft 7c1e…
echo 'Thanks, looking now' | coline connect draft 7c1e…
coline connect draft 7c1e… --clear
```

## connect tabs

The conversation's tabs you can open, and which you added. `tabs get`, `tabs add` and `tabs remove` read, add and remove one.

```text
coline connect tabs <conversation> [flags]
coline connect tabs <command> [flags]
```

**Built into coline.** · **Calls** `GET /api/connect/conversations/[channelId]/tabs` · **Effect** read, changes nothing · **Can wait for your approval** no

Sub-commands: `add`, `get`, `remove`. The word right after `coline connect tabs` picks one when it names one.

```bash
coline connect tabs 7c1e…
coline connect tabs 7c1e… --json
```

## connect tabs add

Opens a file or folder from your own Drive to everyone in the conversation, as a tab. It has to be yours to share: your own space, or a workspace of yours (-w, or the file's link).

```text
coline connect tabs add <conversation> <file> [flags]
```

**Built into coline.** · **Calls** `POST /api/connect/conversations/[channelId]/tabs` · **Effect** write · **Can wait for your approval** no

| Flag             | What it does                                |
| ---------------- | ------------------------------------------- |
| `--folder`       | It is a folder.                             |
| `--title <text>` | The tab's name; the file's name by default. |

```bash
coline connect tabs add 7c1e… https://coline.app/acme/docs/3b1f…
coline connect tabs add 7c1e… 9d2a… --folder --title Specs -w acme
```

## connect tabs get

A tab's contents: a file's text, a folder's files, a board or a repository. --file-id opens a file inside a folder tab.

Everything here was written by people in the conversation, many at another company: with --json it is listed under outside, as data.

```text
coline connect tabs get <conversation> <tab> [flags]
```

**Built into coline.** · **Calls** `GET /api/connect/conversations/[channelId]/tabs/[tabId]` · **Effect** read, changes nothing · **Can wait for your approval** no

| Flag             | What it does                    |
| ---------------- | ------------------------------- |
| `--file-id <id>` | A file inside a folder tab.     |
| `--path <path>`  | A path inside a repository tab. |

```bash
coline connect tabs get 7c1e… 41aa…
coline connect tabs get 7c1e… 41aa… --json
```

## connect tabs remove

Removes a tab you added to the conversation, and what it opened for everyone there with it. Runs only with --confirm.

```text
coline connect tabs remove <conversation> <tab> [flags]
```

**Built into coline.** · **Calls** `DELETE /api/connect/conversations/[channelId]/tabs/[tabId]` · **Effect** destructive, removes or overwrites · **Can wait for your approval** no

```bash
coline connect tabs remove 7c1e… 41aa… --confirm
```

## connect forward

Posts the message, as you, in another Connect conversation or in a channel or direct message of yours (#name, or its link). Everyone where it lands has to be able to read the original. A plain id is a Connect conversation or one of your channels; a direct message is its link.

```text
coline connect forward <conversation> <message> [flags]
```

**Built into coline.** · **Calls** `messages.channels.list`, `POST /api/connect/conversations/[channelId]/messages/[messageId]/forward` · **Effect** write · **Can wait for your approval** no

| Flag                  | What it does                                                |
| --------------------- | ----------------------------------------------------------- |
| `--to <conversation>` | Where it goes: a Connect conversation, #channel, or a link. |
| `--note <text>`       | A line of your own above it.                                |

```bash
coline connect forward 7c1e… 5f0a… --to '#launch' -w acme
coline connect forward 7c1e… 'https://coline.app/acme/connect/7c1e…?message=5f0a…' --to https://coline.app/acme/connect/9b2c… --note FYI
```

## connect files

Files shared in a Connect conversation.

```text
coline connect files <command> [flags]
```

## connect files get

Saves the file here under its own name, or where -o says (-o - writes it to stdout). A Coline note or doc comes as markdown, a sheet as text. Nothing is written over without --force.

```text
coline connect files get <conversation> <file> [flags]
```

**Built into coline.** · **Calls** `GET /api/connect/conversations/[channelId]/files/[fileId]` · **Effect** read, changes nothing · **Can wait for your approval** no

| Flag                  | What it does                                         |
| --------------------- | ---------------------------------------------------- |
| `-o, --output <path>` | Where to save it: a file, a folder, or - for stdout. |
| `--force`             | Replace a file that is already there.                |

```bash
coline connect files get 7c1e… 3b1f…
coline connect files get 7c1e… 3b1f… -o specs/
coline connect files get 7c1e… 3b1f… -o - | less
```

## connect files copy

Makes your own copy of a note, doc or sheet linked in a message, in your Drive in your workspace (-w, or --to's link). --to puts it in a folder; your default drive's top level otherwise.

```text
coline connect files copy <conversation> <message> <file> [flags]
```

**Built into coline.** · **Calls** `POST /api/connect/conversations/[channelId]/messages/[messageId]/shared-files/[fileId]/copy` · **Effect** write · **Can wait for your approval** no

| Flag            | What it does                                    |
| --------------- | ----------------------------------------------- |
| `--to <folder>` | A folder of yours: its Drive link or id.        |
| `--drive <id>`  | The drive the folder is in, when --to is an id. |
| `--name <text>` | The copy's name.                                |

```bash
coline connect files copy 7c1e… 5f0a… 3b1f… -w acme
coline connect files copy 7c1e… 5f0a… 3b1f… --to 'https://coline.app/acme/drive?driveId=d1&parentId=f9'
```

## connect calls

The conversation's past calls: when, how long, who joined, and the ids of their recordings and transcripts, for `coline connect calls artifact`. The catalog's connect calls commands are here too (coline connect calls get \<conversation>, a call going on now).

```text
coline connect calls <conversation> [flags]
coline connect calls <command> [flags]
```

**Built into coline.** · **Calls** `GET /api/connect/conversations/[channelId]/call/history` · **Effect** read, changes nothing · **Can wait for your approval** no

Sub-commands: `artifact`, `get`. The word right after `coline connect calls` picks one when it names one.

```bash
coline connect calls 7c1e…
coline connect calls https://coline.app/acme/connect/7c1e… --json
```

## connect calls artifact

A transcript or summary prints its text, or saves it with -o. A recording is saved here, or where -o says (-o - writes it to stdout); --track picks one of its tracks (a shared screen, a camera) instead of the meeting recording. Ids are in `coline connect calls <conversation>`. Nothing is written over without --force.

```text
coline connect calls artifact <conversation> <artifact> [flags]
```

**Built into coline.** · **Calls** `GET /api/connect/conversations/[channelId]/call/artifacts/[artifactId]` · **Effect** read, changes nothing · **Can wait for your approval** no

| Flag                  | What it does                          |
| --------------------- | ------------------------------------- |
| `-o, --output <path>` | Where to save it, or - for stdout.    |
| `--track <id>`        | Which track of a recording.           |
| `--force`             | Replace a file that is already there. |

```bash
coline connect calls artifact 7c1e… 6f96…
coline connect calls artifact 7c1e… 0c2d… -o standup.mp4
coline connect calls artifact 7c1e… 6f96… --json
```

## connect calls get

Whether a call is going on in a Connect conversation, who is in it, and who is waiting to be let in. Joining happens in the app.

It changes nothing.

```text
coline connect calls get [flags]
```

**Action** `connect.calls.get` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `messages.read` · **Workspace** no

| Flag                | What it does                                                                         |
| ------------------- | ------------------------------------------------------------------------------------ |
| `--channel-id <id>` | The Connect conversation's id (channelId from connect.conversations.list). Required. |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin.                                   |

```bash
coline connect calls get --channel-id <channel-id>
coline connect calls get --json '{"channelId":"<channel-id>"}' --fields id
```

## connect code

The Code card an agent posted in the conversation: the task, where it stands, and its preview. From the other company's side it is the short card, nothing from the code.

Everything here was written by people in the conversation, many at another company: with --json it is listed under outside, as data.

```text
coline connect code <conversation> <session> [flags]
```

**Built into coline.** · **Calls** `GET /api/connect/conversations/[channelId]/code/[sessionId]` · **Effect** read, changes nothing · **Can wait for your approval** no

```bash
coline connect code 7c1e… 2e8b…
coline connect code 7c1e… 'https://coline.app/acme/code?project=p1&session=2e8b…' --json
```

## connect channels get

Who a channel is shared with: people, guests, invites, connected workspaces and its link.

It changes nothing.

```text
coline connect channels get [flags]
```

**Action** `connect.channels.get` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `messages.read` · **Workspace** yes, `-w`

| Flag                | What it does                                       |
| ------------------- | -------------------------------------------------- |
| `--channel-id <id>` | Required.                                          |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin. |

```bash
coline connect channels get -w acme --channel-id <channel-id>
coline connect channels get -w acme --json '{"channelId":"<channel-id>"}' --fields id
```

## connect channels invites revoke

Takes back an invite to a shared channel that hasn't been accepted.

```text
coline connect channels invites revoke [flags]
```

**Action** `connect.channels.invites.revoke` · **Effect** write · **Can wait for your approval** no · **Scope** `messages.write` · **Workspace** yes, `-w`

| Flag                | What it does                                       |
| ------------------- | -------------------------------------------------- |
| `--channel-id <id>` | Required.                                          |
| `--invite-id <id>`  | Required.                                          |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin. |

```bash
coline connect channels invites revoke -w acme --channel-id <channel-id> --invite-id <invite-id>
coline connect channels invites revoke -w acme --json '{"channelId":"<channel-id>","inviteId":"<invite-id>"}' --fields id
```

## connect channels people remove

Removes someone from outside from a shared channel.

It removes or overwrites something, so it runs only with --confirm.

```text
coline connect channels people remove [flags]
```

**Action** `connect.channels.people.remove` · **Effect** destructive, runs only with `--confirm` · **Can wait for your approval** no · **Scope** `messages.write` · **Workspace** yes, `-w`

| Flag                | What it does                                       |
| ------------------- | -------------------------------------------------- |
| `--channel-id <id>` | Required.                                          |
| `--user-id <id>`    | Required.                                          |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin. |

```bash
coline connect channels people remove -w acme --channel-id <channel-id> --user-id <user-id> --confirm
coline connect channels people remove -w acme --json '{"channelId":"<channel-id>","userId":"<user-id>"}' --fields id --confirm
```

## connect channels stop

Stops sharing a channel outside the workspace; everyone from outside leaves it.

It removes or overwrites something, so it runs only with --confirm.

```text
coline connect channels stop [flags]
```

**Action** `connect.channels.stop` · **Effect** destructive, runs only with `--confirm` · **Can wait for your approval** no · **Scope** `messages.write` · **Workspace** yes, `-w`

| Flag                | What it does                                       |
| ------------------- | -------------------------------------------------- |
| `--channel-id <id>` | Required.                                          |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin. |

```bash
coline connect channels stop -w acme --channel-id <channel-id> --confirm
coline connect channels stop -w acme --json '{"channelId":"<channel-id>"}' --fields id --confirm
```

## connect channels update

Lets guests invite or not, and makes or revokes the channel's join link for a domain. Letting guests invite and making a join link are done in Coline, not from a terminal.

Set link with --json '\{…}' or --input.

```text
coline connect channels update [flags]
```

**Action** `connect.channels.update` · **Effect** write · **Can wait for your approval** no · **Scope** `messages.write` · **Workspace** yes, `-w`

| Flag                  | What it does                                       |
| --------------------- | -------------------------------------------------- |
| `--channel-id <id>`   | Required.                                          |
| `--guests-can-invite` |                                                    |
| `--input <file>`      | Read the input as JSON from a file; - reads stdin. |

```bash
coline connect channels update -w acme --channel-id <channel-id>
coline connect channels update -w acme --json '{"channelId":"<channel-id>"}' --fields id
```

## connect companies rename

Renames how an outside company shows in this workspace.

```text
coline connect companies rename [flags]
```

**Action** `connect.companies.rename` · **Effect** write · **Can wait for your approval** no · **Scope** `messages.write` · **Workspace** yes, `-w`

| Flag                | What it does                                       |
| ------------------- | -------------------------------------------------- |
| `--company-id <id>` | Required.                                          |
| `--name <text>`     | Required.                                          |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin. |

```bash
coline connect companies rename -w acme --company-id <company-id> --name "…"
coline connect companies rename -w acme --json '{"companyId":"<company-id>","name":"…"}' --fields id
```

## connect conversations get

One Connect conversation's header: its name and topic, the host company, everyone in it and their companies, what you may do there, and your notification settings.

It changes nothing.

```text
coline connect conversations get [flags]
```

**Action** `connect.conversations.get` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `messages.read` · **Workspace** no

| Flag                | What it does                                                                         |
| ------------------- | ------------------------------------------------------------------------------------ |
| `--channel-id <id>` | The Connect conversation's id (channelId from connect.conversations.list). Required. |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin.                                   |

```bash
coline connect conversations get --channel-id <channel-id>
coline connect conversations get --json '{"channelId":"<channel-id>"}' --fields id
```

## connect conversations leave

Leaves a shared channel or group chat at another company. You stop getting its messages; someone there has to add you again.

```text
coline connect conversations leave [flags]
```

**Action** `connect.conversations.leave` · **Effect** write · **Can wait for your approval** no · **Scope** `messages.write` · **Workspace** no

| Flag                | What it does                                                                         |
| ------------------- | ------------------------------------------------------------------------------------ |
| `--channel-id <id>` | The Connect conversation's id (channelId from connect.conversations.list). Required. |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin.                                   |

```bash
coline connect conversations leave --channel-id <channel-id>
coline connect conversations leave --json '{"channelId":"<channel-id>"}' --fields id
```

## connect conversations list

The shared channels, direct messages and group chats you are in at other companies, newest first, with unread and mention counts. For the people outside a workspace; a workspace's own conversations are in messages.conversations.list.

It changes nothing.

```text
coline connect conversations list [flags]
```

**Action** `connect.conversations.list` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `messages.read` · **Workspace** no

| Flag             | What it does                                       |
| ---------------- | -------------------------------------------------- |
| `--input <file>` | Read the input as JSON from a file; - reads stdin. |

```bash
coline connect conversations list
coline connect conversations list --json '{}' --fields id
```

## connect conversations mark-read

Marks a Connect conversation read (up to now, or up to a time), marks it unread, or marks it unread from one message on.

```text
coline connect conversations mark-read [flags]
```

**Action** `connect.conversations.markRead` · **Effect** write · **Can wait for your approval** no · **Scope** `messages.write` · **Workspace** no

| Flag                            | What it does                                                                         |
| ------------------------------- | ------------------------------------------------------------------------------------ |
| `--channel-id <id>`             | The Connect conversation's id (channelId from connect.conversations.list). Required. |
| `--through <text>`              | Mark read up to this time. Default: the newest message.                              |
| `--unread-from-message-id <id>` | Mark unread from this message on.                                                    |
| `--state <text>`                | unread marks the whole conversation unread. One of `read`, `unread`.                 |
| `--input <file>`                | Read the input as JSON from a file; - reads stdin.                                   |

```bash
coline connect conversations mark-read --channel-id <channel-id>
coline connect conversations mark-read --json '{"channelId":"<channel-id>"}' --fields id
```

## connect conversations remove

Takes an outside person out of a DM or group chat. Someone who never replied leaves nothing behind.

It removes or overwrites something, so it runs only with --confirm.

```text
coline connect conversations remove [flags]
```

**Action** `connect.conversations.remove` · **Effect** destructive, runs only with `--confirm` · **Can wait for your approval** no · **Scope** `messages.write` · **Workspace** yes, `-w`

| Flag             | What it does                                       |
| ---------------- | -------------------------------------------------- |
| `--dm-id <id>`   | Required.                                          |
| `--user-id <id>` | Required.                                          |
| `--input <file>` | Read the input as JSON from a file; - reads stdin. |

```bash
coline connect conversations remove -w acme --dm-id <dm-id> --user-id <user-id> --confirm
coline connect conversations remove -w acme --json '{"dmId":"<dm-id>","userId":"<user-id>"}' --fields id --confirm
```

## connect crew list

The crew members other companies brought into a shared conversation.

It changes nothing.

```text
coline connect crew list [flags]
```

**Action** `connect.crew.list` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `messages.read` · **Workspace** yes, `-w`

| Flag                | What it does                                       |
| ------------------- | -------------------------------------------------- |
| `--channel-id <id>` | Required.                                          |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin. |

```bash
coline connect crew list -w acme --channel-id <channel-id>
coline connect crew list -w acme --json '{"channelId":"<channel-id>"}' --fields id
```

## connect crew remove

Removes another company's crew member from a shared conversation. The host can remove any; that company's people remove their own.

It removes or overwrites something, so it runs only with --confirm.

```text
coline connect crew remove [flags]
```

**Action** `connect.crew.remove` · **Effect** destructive, runs only with `--confirm` · **Can wait for your approval** no · **Scope** `messages.write` · **Workspace** yes, `-w`

| Flag                   | What it does                                       |
| ---------------------- | -------------------------------------------------- |
| `--channel-id <id>`    | Required.                                          |
| `--agent-user-id <id>` | Required.                                          |
| `--input <file>`       | Read the input as JSON from a file; - reads stdin. |

```bash
coline connect crew remove -w acme --channel-id <channel-id> --agent-user-id <agent-user-id> --confirm
coline connect crew remove -w acme --json '{"channelId":"<channel-id>","agentUserId":"<agent-user-id>"}' --fields id --confirm
```

## connect dms open

Your side as someone outside a workspace: starts or reopens a direct message with someone you share a Connect conversation with (give channelId and userId), or a direct message or group chat in that company's workspace with people you've already met there and colleagues from your own company by email (give workspaceId with userIds, emails or both). New addresses get the chat by email, so emails are refused from the command line and added in Coline. Account-level; a workspace's own members use messages.dms.open.

It reaches people outside Coline right away.

```text
coline connect dms open [flags]
```

**Action** `connect.dms.open` · **Effect** external, reaches people outside Coline · **Can wait for your approval** no · **Scope** `messages.write` · **Workspace** no

| Flag                  | What it does                                                                        |
| --------------------- | ----------------------------------------------------------------------------------- |
| `--channel-id <id>`   | A Connect conversation you share with the person.                                   |
| `--user-id <id>`      | With channelId: the person to message.                                              |
| `--workspace-id <id>` | The host company's workspace id (host.workspaceId from connect.conversations.list). |
| `--user-ids <list>`   | With workspaceId: people you share a conversation with there, up to 20.             |
| `--emails <list>`     | With workspaceId: colleagues from your own company, up to 20.                       |
| `--name <text>`       | With workspaceId: a name for the group chat.                                        |
| `--input <file>`      | Read the input as JSON from a file; - reads stdin.                                  |

```bash
coline connect dms open
coline connect dms open --json '{}' --fields id
```

## connect dms start

Starts a direct message with someone from outside who shares one of the person's channels.

```text
coline connect dms start [flags]
```

**Action** `connect.dms.start` · **Effect** write · **Can wait for your approval** no · **Scope** `messages.write` · **Workspace** yes, `-w`

| Flag                | What it does                                       |
| ------------------- | -------------------------------------------------- |
| `--channel-id <id>` | Required.                                          |
| `--user-id <id>`    | Required.                                          |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin. |

```bash
coline connect dms start -w acme --channel-id <channel-id> --user-id <user-id>
coline connect dms start -w acme --json '{"channelId":"<channel-id>","userId":"<user-id>"}' --fields id
```

## connect invites accept

Joins a shared channel at another company through the invite you were emailed. You must be signed in with the address it was sent to.

```text
coline connect invites accept [flags]
```

**Action** `connect.invites.accept` · **Effect** write · **Can wait for your approval** no · **Scope** `messages.write` · **Workspace** no

| Flag                | What it does                                                                                       |
| ------------------- | -------------------------------------------------------------------------------------------------- |
| `--token <text>`    | The invite's token, from the link in the email. Required.                                          |
| `--timezone <text>` | Your time zone, e.g. Europe/Berlin, for the times in its emails. Used only if you haven't set one. |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin.                                                 |

```bash
coline connect invites accept --token "…"
coline connect invites accept --json '{"token":"…"}' --fields id
```

## connect links join

Joins a shared channel through the link a company shares with yours. With no email, you join if one of your verified addresses is at the link's domain; with an email at that domain, a join email goes to it instead (that is done in Coline, not from the command line).

It reaches people outside Coline right away.

```text
coline connect links join [flags]
```

**Action** `connect.links.join` · **Effect** external, reaches people outside Coline · **Can wait for your approval** no · **Scope** `messages.write` · **Workspace** no

| Flag             | What it does                                              |
| ---------------- | --------------------------------------------------------- |
| `--token <text>` | The link's token, from its URL. Required.                 |
| `--email <text>` | Send the join email to this address at the link's domain. |
| `--input <file>` | Read the input as JSON from a file; - reads stdin.        |

```bash
coline connect links join --token "…"
coline connect links join --json '{"token":"…"}' --fields id
```

## connect messages delete

Deletes one of your own messages in a Connect conversation, for everyone in it.

It removes or overwrites something, so it runs only with --confirm.

```text
coline connect messages delete [flags]
```

**Action** `connect.messages.delete` · **Effect** destructive, runs only with `--confirm` · **Can wait for your approval** no · **Scope** `messages.write` · **Workspace** no

| Flag                | What it does                                                                         |
| ------------------- | ------------------------------------------------------------------------------------ |
| `--channel-id <id>` | The Connect conversation's id (channelId from connect.conversations.list). Required. |
| `--message-id <id>` | The message's id, from connect.messages.list. Required.                              |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin.                                   |

```bash
coline connect messages delete --channel-id <channel-id> --message-id <message-id> --confirm
coline connect messages delete --json '{"channelId":"<channel-id>","messageId":"<message-id>"}' --fields id --confirm
```

## connect messages edit

Rewrites one of your own messages in a Connect conversation.

Set content with --json '\{…}' or --input.

```text
coline connect messages edit [flags]
```

**Action** `connect.messages.edit` · **Effect** write · **Can wait for your approval** no · **Scope** `messages.write` · **Workspace** no

| Flag                | What it does                                                                         |
| ------------------- | ------------------------------------------------------------------------------------ |
| `--channel-id <id>` | The Connect conversation's id (channelId from connect.conversations.list). Required. |
| `--message-id <id>` | The message's id, from connect.messages.list. Required.                              |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin.                                   |

```bash
coline connect messages edit --channel-id <channel-id> --message-id <message-id>
coline connect messages edit --json '{"channelId":"<channel-id>","messageId":"<message-id>","content":"…"}' --fields id
```

## connect messages list

A page of a Connect conversation's messages, oldest first: the newest page, the page before a message, or the messages around one. Only what you may read there.

It changes nothing.

```text
coline connect messages list [flags]
```

**Action** `connect.messages.list` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `messages.read` · **Workspace** no

| Flag                | What it does                                                                         |
| ------------------- | ------------------------------------------------------------------------------------ |
| `--channel-id <id>` | The Connect conversation's id (channelId from connect.conversations.list). Required. |
| `--before <text>`   | beforeCursor from the page before, for older messages.                               |
| `--around <text>`   | A message id to center the page on.                                                  |
| `--limit <number>`  | How many messages, 1 to 100. Default 50.                                             |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin.                                   |

```bash
coline connect messages list --channel-id <channel-id>
coline connect messages list --json '{"channelId":"<channel-id>"}' --fields id
```

## connect messages pin

Pins a message to its Connect conversation for everyone, or unpins it if it is pinned: each call switches it.

```text
coline connect messages pin [flags]
```

**Action** `connect.messages.pin` · **Effect** write · **Can wait for your approval** no · **Scope** `messages.write` · **Workspace** no

| Flag                | What it does                                                                         |
| ------------------- | ------------------------------------------------------------------------------------ |
| `--channel-id <id>` | The Connect conversation's id (channelId from connect.conversations.list). Required. |
| `--message-id <id>` | The message's id, from connect.messages.list. Required.                              |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin.                                   |

```bash
coline connect messages pin --channel-id <channel-id> --message-id <message-id>
coline connect messages pin --json '{"channelId":"<channel-id>","messageId":"<message-id>"}' --fields id
```

## connect messages react

Adds your emoji reaction to a message in a Connect conversation, or takes it back if you already reacted with it.

```text
coline connect messages react [flags]
```

**Action** `connect.messages.react` · **Effect** write · **Can wait for your approval** no · **Scope** `messages.write` · **Workspace** no

| Flag                | What it does                                                                         |
| ------------------- | ------------------------------------------------------------------------------------ |
| `--channel-id <id>` | The Connect conversation's id (channelId from connect.conversations.list). Required. |
| `--message-id <id>` | The message's id, from connect.messages.list. Required.                              |
| `--emoji <text>`    | An emoji, e.g. 👍. Required.                                                         |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin.                                   |

```bash
coline connect messages react --channel-id <channel-id> --message-id <message-id> --emoji "…"
coline connect messages react --json '{"channelId":"<channel-id>","messageId":"<message-id>","emoji":"…"}' --fields id
```

## connect messages save

Saves a message from a Connect conversation to your Later list, or unsaves it if it is saved (toggle); or changes how you saved it: its state, your note, when to remind you. Give toggle, or any of the other three.

```text
coline connect messages save [flags]
```

**Action** `connect.messages.save` · **Effect** write · **Can wait for your approval** no · **Scope** `messages.write` · **Workspace** no

| Flag                 | What it does                                                                         |
| -------------------- | ------------------------------------------------------------------------------------ |
| `--channel-id <id>`  | The Connect conversation's id (channelId from connect.conversations.list). Required. |
| `--message-id <id>`  | The message's id, from connect.messages.list. Required.                              |
| `--toggle`           | Save it, or unsave it if it is saved.                                                |
| `--state <text>`     | One of `saved`, `in_progress`, `completed`, `archived`.                              |
| `--note <text>`      | Your note on it; null clears it.                                                     |
| `--remind-at <text>` | When to remind you; null clears it.                                                  |
| `--input <file>`     | Read the input as JSON from a file; - reads stdin.                                   |

```bash
coline connect messages save --channel-id <channel-id> --message-id <message-id>
coline connect messages save --json '{"channelId":"<channel-id>","messageId":"<message-id>"}' --fields id
```

## connect messages send

Sends a message, or a reply in a thread, to a Connect conversation, with uploaded files or files linked from your own Drive. Everyone in the conversation sees it, at every company in it.

Set content, sharedFiles with --json '\{…}' or --input.

```text
coline connect messages send [flags]
```

**Action** `connect.messages.send` · **Effect** write · **Can wait for your approval** no · **Scope** `messages.write` · **Workspace** no

| Flag                            | What it does                                                                         |
| ------------------------------- | ------------------------------------------------------------------------------------ |
| `--channel-id <id>`             | The Connect conversation's id (channelId from connect.conversations.list). Required. |
| `--client-message-id <id>`      | An id you make, so a retry doesn't send twice. Required.                             |
| `--thread-root-message-id <id>` | Reply in the thread under this message.                                              |
| `--attachment-file-ids <list>`  | Uploaded files to attach, up to 10.                                                  |
| `--workspace-slug <text>`       | The workspace you use Coline in: an @Kairo in the message is that workspace's Kairo. |
| `--input <file>`                | Read the input as JSON from a file; - reads stdin.                                   |

```bash
coline connect messages send --channel-id <channel-id> --client-message-id <client-message-id>
coline connect messages send --json '{"channelId":"<channel-id>","clientMessageId":"<client-message-id>","content":"…"}' --fields id
```

## connect messages set-priority

Marks one of your own messages in a Connect conversation important or urgent, or normal again.

```text
coline connect messages set-priority [flags]
```

**Action** `connect.messages.setPriority` · **Effect** write · **Can wait for your approval** no · **Scope** `messages.write` · **Workspace** no

| Flag                | What it does                                                                         |
| ------------------- | ------------------------------------------------------------------------------------ |
| `--channel-id <id>` | The Connect conversation's id (channelId from connect.conversations.list). Required. |
| `--message-id <id>` | The message's id, from connect.messages.list. Required.                              |
| `--priority <text>` | Required. One of `normal`, `important`, `urgent`.                                    |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin.                                   |

```bash
coline connect messages set-priority --channel-id <channel-id> --message-id <message-id> --priority normal
coline connect messages set-priority --json '{"channelId":"<channel-id>","messageId":"<message-id>","priority":"normal"}' --fields id
```

## connect overview

The workspace's conversations shared with other workspaces, and the requests waiting on it.

It changes nothing.

```text
coline connect overview [flags]
```

**Action** `connect.overview` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `messages.read` · **Workspace** yes, `-w`

| Flag             | What it does                                       |
| ---------------- | -------------------------------------------------- |
| `--input <file>` | Read the input as JSON from a file; - reads stdin. |

```bash
coline connect overview -w acme
coline connect overview -w acme --json '{}' --fields id
```

## connect people known

Outside people this workspace already shares a conversation with, to pick from when starting a chat.

It changes nothing.

```text
coline connect people known [flags]
```

**Action** `connect.people.known` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `messages.read` · **Workspace** yes, `-w`

| Flag             | What it does                                       |
| ---------------- | -------------------------------------------------- |
| `--input <file>` | Read the input as JSON from a file; - reads stdin. |

```bash
coline connect people known -w acme
coline connect people known -w acme --json '{}' --fields id
```

## connect preferences update

Sets how much a Connect conversation notifies you, whether it emails you, or pauses its notifications until a time. Fields you leave out stay as they are.

```text
coline connect preferences update [flags]
```

**Action** `connect.preferences.update` · **Effect** write · **Can wait for your approval** no · **Scope** `messages.write` · **Workspace** no

| Flag                          | What it does                                                                                                                      |
| ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| `--channel-id <id>`           | The Connect conversation's id (channelId from connect.conversations.list). Required.                                              |
| `--notification-level <text>` | auto, all, mentions or nothing. A direct message notifies for everything or nothing. One of `auto`, `all`, `mentions`, `nothing`. |
| `--email-notifications`       | Email you about new messages.                                                                                                     |
| `--muted-until <text>`        | Pause notifications until then; null resumes them.                                                                                |
| `--input <file>`              | Read the input as JSON from a file; - reads stdin.                                                                                |

```bash
coline connect preferences update --channel-id <channel-id>
coline connect preferences update --json '{"channelId":"<channel-id>"}' --fields id
```

## connect profile get

Your name, email and photo as people at other companies see them, your personal space and the drive your uploads go to, and the team workspaces you're in.

It changes nothing.

```text
coline connect profile get [flags]
```

**Action** `connect.profile.get` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `tools.read` · **Workspace** no

| Flag             | What it does                                       |
| ---------------- | -------------------------------------------------- |
| `--input <file>` | Read the input as JSON from a file; - reads stdin. |

```bash
coline connect profile get
coline connect profile get --json '{}' --fields id
```

## connect settings get

Who may invite people from outside, from which domains, and whether the person can change it.

It changes nothing.

```text
coline connect settings get [flags]
```

**Action** `connect.settings.get` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `messages.read` · **Workspace** yes, `-w`

| Flag             | What it does                                       |
| ---------------- | -------------------------------------------------- |
| `--input <file>` | Read the input as JSON from a file; - reads stdin. |

```bash
coline connect settings get -w acme
coline connect settings get -w acme --json '{}' --fields id
```

## connect settings update

Changes who may invite people from outside and from which domains. From a terminal they only get stricter: anything that lets more people in or invite is done in Coline. Workspace admins only.

```text
coline connect settings update [flags]
```

**Action** `connect.settings.update` · **Effect** write · **Can wait for your approval** no · **Scope** `messages.write` · **Workspace** yes, `-w`

| Flag                             | What it does                                       |
| -------------------------------- | -------------------------------------------------- |
| `--invite-policy <text>`         | One of `everyone`, `channel_managers`, `admins`.   |
| `--guests-can-invite-colleagues` |                                                    |
| `--allowed-domains <list>`       |                                                    |
| `--blocked-domains <list>`       |                                                    |
| `--add-by-email`                 |                                                    |
| `--crew-answers`                 |                                                    |
| `--other-crew`                   |                                                    |
| `--input <file>`                 | Read the input as JSON from a file; - reads stdin. |

```bash
coline connect settings update -w acme
coline connect settings update -w acme --json '{}' --fields id
```

## connect shelf read

A live read view of something shared with a company, or of a repository opened as a conversation tab: text, a folder's files, a board's cards, a repository's files, history and change requests, or free times. Only for people who can open it themselves.

It changes nothing.

```text
coline connect shelf read [flags]
```

**Action** `connect.shelf.read` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `messages.read` · **Workspace** yes, `-w`

| Flag                   | What it does                                                                                       |
| ---------------------- | -------------------------------------------------------------------------------------------------- |
| `--item-id <id>`       |                                                                                                    |
| `--repository-id <id>` |                                                                                                    |
| `--action <text>`      | One of `overview`, `tree`, `file`, `log`, `commit`, `change_requests`, `change_request`, `search`. |
| `--path <text>`        |                                                                                                    |
| `--number <number>`    |                                                                                                    |
| `--file-id <id>`       | A folder or file inside a shared folder.                                                           |
| `--input <file>`       | Read the input as JSON from a file; - reads stdin.                                                 |

```bash
coline connect shelf read -w acme
coline connect shelf read -w acme --json '{}' --fields id
```

## connect threads get

A thread in a Connect conversation: the message it hangs on, its replies, and whether you follow it.

It changes nothing.

```text
coline connect threads get [flags]
```

**Action** `connect.threads.get` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `messages.read` · **Workspace** no

| Flag                     | What it does                                                                         |
| ------------------------ | ------------------------------------------------------------------------------------ |
| `--channel-id <id>`      | The Connect conversation's id (channelId from connect.conversations.list). Required. |
| `--root-message-id <id>` | The id of the message the thread hangs on. Required.                                 |
| `--input <file>`         | Read the input as JSON from a file; - reads stdin.                                   |

```bash
coline connect threads get --channel-id <channel-id> --root-message-id <root-message-id>
coline connect threads get --json '{"channelId":"<channel-id>","rootMessageId":"<root-message-id>"}' --fields id
```
