# integrations

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

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

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

Integrations: connect a service and every integrations action. Every `coline integrations` command, 19 in all.

## integrations connect

Connect a service for the workspace (admins only), as the Connect button in Coline does. A service that signs in with a key asks for each value it needs, without showing what you type; --values-file or --values-stdin read them as a JSON object instead, like \{"token": "…"}. Any other service gives you its sign-in link to open in a browser.

`coline integrations services list` lists the services and the values each one asks for.

```text
coline integrations connect <service> [flags]
```

**Built into coline.** · **Calls** `integrations.services.list`, `integrations.connect`, `integrations.connectKey` · **Effect** write · **Can wait for your approval** no

| Flag                   | What it does                                                                |
| ---------------------- | --------------------------------------------------------------------------- |
| `--label <text>`       | A name for the connection; default the service's name.                      |
| `--connection-id <id>` | Connect this existing connection again.                                     |
| `--values-file <path>` | Read the service's values, a secret JSON object of strings, from this file. |
| `--values-stdin`       | Read the service's values, a secret JSON object of strings, from stdin.     |
| `--service-key <key>`  | The service, when it isn't given as the argument.                           |

```bash
coline integrations connect twilio
coline integrations connect monday --values-file monday.json --label 'Ops boards'
coline integrations connect github
```

## integrations attempts cancel

Cancels connecting a service for the workspace while it still waits for sign-in.

```text
coline integrations attempts cancel [flags]
```

**Action** `integrations.attempts.cancel` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                | What it does                                       |
| ------------------- | -------------------------------------------------- |
| `--attempt-id <id>` | The attempt's id, from the connect call. Required. |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin. |

```bash
coline integrations attempts cancel -w acme --attempt-id <attempt-id>
coline integrations attempts cancel -w acme --json '{"attemptId":"<attempt-id>"}' --fields id
```

## integrations attempts get

How connecting a service for the workspace is going: connecting, completing, connected, error, expired or cancelled.

It changes nothing.

```text
coline integrations attempts get [flags]
```

**Action** `integrations.attempts.get` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

| Flag                | What it does                                       |
| ------------------- | -------------------------------------------------- |
| `--attempt-id <id>` | The attempt's id, from the connect call. Required. |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin. |

```bash
coline integrations attempts get -w acme --attempt-id <attempt-id>
coline integrations attempts get -w acme --json '{"attemptId":"<attempt-id>"}' --fields id
```

## integrations connect-key

Connects a service that signs in with an API key or other values you paste, for the workspace. The service checks them before anything is saved. A custom API's key can only be replaced here, with its connectionId. They are secret: nobody can read them back, and only a person connects, never an agent. Admins only.

values is secret, a JSON object of strings like \{"\<name>": "…"}: pass it with --values-file \<path> or --values-stdin, in --input. Never as text on the command line or in --json. `coline integrations services list` lists the names it takes.

```text
coline integrations connect-key [flags]
```

**Action** `integrations.connectKey` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                   | What it does                                                                                                                                                                                                                                                                                                                                             |
| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--service-key <text>` | The service, from the services list, e.g. github. Required.                                                                                                                                                                                                                                                                                              |
| `--label <text>`       | A name for the connection. Required.                                                                                                                                                                                                                                                                                                                     |
| `--connection-id <id>` | To connect an existing connection again, its id.                                                                                                                                                                                                                                                                                                         |
| `--values-file <path>` | Read values, a secret JSON object of strings, from this file. The values the service asks for, by the input names in its keyInputs from integrations.services.list (account.connections.services.list for your own): most built-in services take \{"token": "\<the key>"}, a custom API takes \{"value": "\<the key>"}, and some ask for more. Required. |
| `--values-stdin`       | Read values, a secret JSON object of strings, from stdin.                                                                                                                                                                                                                                                                                                |
| `--input <file>`       | Read the input as JSON from a file; - reads stdin.                                                                                                                                                                                                                                                                                                       |

```bash
coline integrations connect-key -w acme --service-key "…" --label "…" --values-file values.json
cat values.json | coline integrations connect-key -w acme --json '{"serviceKey":"…","label":"…"}' --values-stdin --fields id
```

## integrations connections disconnect

Disconnects a team connection: Coline asks the service to revoke access where it can, removes its webhooks and deletes the stored credential. Admins only.

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

```text
coline integrations connections disconnect [flags]
```

**Action** `integrations.connections.disconnect` · **Effect** destructive, runs only with `--confirm` · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

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

```bash
coline integrations connections disconnect -w acme --connection-id <connection-id> --confirm
coline integrations connections disconnect -w acme --json '{"connectionId":"<connection-id>"}' --fields id --confirm
```

## integrations connections get

One team connection: its service, status, account, crew, tool counts and webhook setup.

It changes nothing.

```text
coline integrations connections get [flags]
```

**Action** `integrations.connections.get` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

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

```bash
coline integrations connections get -w acme --connection-id <connection-id>
coline integrations connections get -w acme --json '{"connectionId":"<connection-id>"}' --fields id
```

## integrations connections list

The workspace's connections to outside services, with the crew members who may use each.

It changes nothing.

```text
coline integrations connections list [flags]
```

**Action** `integrations.connections.list` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

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

```bash
coline integrations connections list -w acme
coline integrations connections list -w acme --json '{}' --fields id
```

## integrations connections rename

Gives a team connection a new name. Admins only.

```text
coline integrations connections rename [flags]
```

**Action** `integrations.connections.rename` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                   | What it does                                       |
| ---------------------- | -------------------------------------------------- |
| `--connection-id <id>` | The connection's id. Required.                     |
| `--label <text>`       | A name for the connection. Required.               |
| `--input <file>`       | Read the input as JSON from a file; - reads stdin. |

```bash
coline integrations connections rename -w acme --connection-id <connection-id> --label "…"
coline integrations connections rename -w acme --json '{"connectionId":"<connection-id>","label":"…"}' --fields id
```

## integrations connections tools list

The tools a team connection offers the crew, each with what it does and whether it is allowed or blocked.

It changes nothing.

```text
coline integrations connections tools list [flags]
```

**Action** `integrations.connections.tools.list` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

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

```bash
coline integrations connections tools list -w acme --connection-id <connection-id>
coline integrations connections tools list -w acme --json '{"connectionId":"<connection-id>"}' --fields id
```

## integrations connections webhook get

A team connection's webhook setup and polling: its address, state and last delivery. Admins only.

It changes nothing.

```text
coline integrations connections webhook get [flags]
```

**Action** `integrations.connections.webhook.get` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

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

```bash
coline integrations connections webhook get -w acme --connection-id <connection-id>
coline integrations connections webhook get -w acme --json '{"connectionId":"<connection-id>"}' --fields id
```

## integrations custom create

Adds a custom integration from a preview you checked, and connects it when it needs no key. Its tools stay blocked until someone reviews them in the app. Admins only.

```text
coline integrations custom create [flags]
```

**Action** `integrations.custom.create` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                     | What it does                                                                                                                                              |
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--kind <text>`          | What the address describes: an OpenAPI document, a GraphQL endpoint or an MCP server. Required. One of `openapi`, `graphql`, `mcp`.                       |
| `--url <text>`           | The https address. Required.                                                                                                                              |
| `--oauth-client-id <id>` | With oauth: the client id.                                                                                                                                |
| `--auth-kind <text>`     | How it signs in: none (default) or oauth with oauthClientId. An integration that needs a key or bearer token is added in the app. One of `none`, `oauth`. |
| `--name <text>`          | Its name. Required.                                                                                                                                       |
| `--service-key <text>`   | A key for it, starting with custom-, e.g. custom-billing. Required.                                                                                       |
| `--preview-hash <text>`  | From integrations.custom.preview. Required.                                                                                                               |
| `--input <file>`         | Read the input as JSON from a file; - reads stdin.                                                                                                        |

```bash
coline integrations custom create -w acme --kind openapi --url "…" --name "…" --service-key "…" --preview-hash "…"
coline integrations custom create -w acme --json '{"kind":"openapi","url":"…","name":"…","serviceKey":"…","previewHash":"…"}' --fields id
```

## integrations custom delete

Removes a custom integration and its connection. Admins only.

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

```text
coline integrations custom delete [flags]
```

**Action** `integrations.custom.delete` · **Effect** destructive, runs only with `--confirm` · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                   | What it does                                       |
| ---------------------- | -------------------------------------------------- |
| `--definition-id <id>` | The custom integration's id. Required.             |
| `--input <file>`       | Read the input as JSON from a file; - reads stdin. |

```bash
coline integrations custom delete -w acme --definition-id <definition-id> --confirm
coline integrations custom delete -w acme --json '{"definitionId":"<definition-id>"}' --fields id --confirm
```

## integrations custom get

A custom integration: its source, connection and tools. Admins only.

It changes nothing.

```text
coline integrations custom get [flags]
```

**Action** `integrations.custom.get` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

| Flag                   | What it does                                       |
| ---------------------- | -------------------------------------------------- |
| `--definition-id <id>` | The custom integration's id. Required.             |
| `--input <file>`       | Read the input as JSON from a file; - reads stdin. |

```bash
coline integrations custom get -w acme --definition-id <definition-id>
coline integrations custom get -w acme --json '{"definitionId":"<definition-id>"}' --fields id
```

## integrations custom preview

Reads an OpenAPI, GraphQL or MCP address and lists the tools a custom integration from it would have. Nothing is saved. Admins only.

It changes nothing.

```text
coline integrations custom preview [flags]
```

**Action** `integrations.custom.preview` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `tools.read` · **Workspace** yes, `-w`

| Flag                     | What it does                                                                                                                        |
| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------- |
| `--kind <text>`          | What the address describes: an OpenAPI document, a GraphQL endpoint or an MCP server. Required. One of `openapi`, `graphql`, `mcp`. |
| `--url <text>`           | The https address. Required.                                                                                                        |
| `--auth-kind <text>`     | How it signs in. Default none. A key or client secret is added in the app. One of `none`, `bearer`, `api_key`, `oauth`.             |
| `--auth-header <text>`   | With api\_key: the header the key goes in.                                                                                          |
| `--oauth-client-id <id>` | With oauth: the client id.                                                                                                          |
| `--name <text>`          | A name for it.                                                                                                                      |
| `--input <file>`         | Read the input as JSON from a file; - reads stdin.                                                                                  |

```bash
coline integrations custom preview -w acme --kind openapi --url "…"
coline integrations custom preview -w acme --json '{"kind":"openapi","url":"…"}' --fields id
```

## integrations custom refresh

Reads a custom integration's source again and updates its tools. New or changed tools stay blocked until someone reviews them in the app. Admins only.

```text
coline integrations custom refresh [flags]
```

**Action** `integrations.custom.refresh` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                    | What it does                                                                                            |
| ----------------------- | ------------------------------------------------------------------------------------------------------- |
| `--definition-id <id>`  | The custom integration's id. Required.                                                                  |
| `--preview-hash <text>` | From integrations.custom.preview: the refresh is refused if the integration's tools no longer match it. |
| `--input <file>`        | Read the input as JSON from a file; - reads stdin.                                                      |

```bash
coline integrations custom refresh -w acme --definition-id <definition-id>
coline integrations custom refresh -w acme --json '{"definitionId":"<definition-id>"}' --fields id
```

## integrations requests get

One request from your crew to connect a service.

It changes nothing.

```text
coline integrations requests get [flags]
```

**Action** `integrations.requests.get` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

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

```bash
coline integrations requests get -w acme --request-id <request-id>
coline integrations requests get -w acme --json '{"requestId":"<request-id>"}' --fields id
```

## integrations requests list

The services your crew asked you to connect, newest first, up to 100.

It changes nothing.

```text
coline integrations requests list [flags]
```

**Action** `integrations.requests.list` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

| Flag             | What it does                                                             |
| ---------------- | ------------------------------------------------------------------------ |
| `--run-id <id>`  | Only requests from this crew run.                                        |
| `--state <text>` | open: still waiting (default); all: every request. One of `open`, `all`. |
| `--input <file>` | Read the input as JSON from a file; - reads stdin.                       |

```bash
coline integrations requests list -w acme
coline integrations requests list -w acme --json '{}' --fields id
```

## integrations services list

The services the workspace can connect, by category, with how each one connects.

It changes nothing.

```text
coline integrations services list [flags]
```

**Action** `integrations.services.list` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `tools.read` · **Workspace** yes, `-w`

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

```bash
coline integrations services list -w acme
coline integrations services list -w acme --json '{}' --fields id
```

## integrations services tools list

A service's tools across all the workspace's connections to it, each allowed or blocked.

It changes nothing.

```text
coline integrations services tools list [flags]
```

**Action** `integrations.services.tools.list` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

| Flag                   | What it does                                       |
| ---------------------- | -------------------------------------------------- |
| `--service-key <text>` | The service, e.g. github. Required.                |
| `--input <file>`       | Read the input as JSON from a file; - reads stdin. |

```bash
coline integrations services tools list -w acme --service-key "…"
coline integrations services tools list -w acme --json '{"serviceKey":"…"}' --fields id
```
