# contacts

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

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

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

Every `coline contacts` command, 6 in all.

## contacts block

Blocks someone from contacting the person.

```text
coline contacts block [flags]
```

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

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

```bash
coline contacts block -w acme --user-id <user-id>
coline contacts block -w acme --json '{"userId":"<user-id>"}' --fields id
```

## contacts list

The person's contacts, and the requests waiting on them or on others.

It changes nothing.

```text
coline contacts list [flags]
```

**Action** `contacts.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 contacts list -w acme
coline contacts list -w acme --json '{}' --fields id
```

## contacts remove

Removes someone from the person's contacts.

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

```text
coline contacts remove [flags]
```

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

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

```bash
coline contacts remove -w acme --user-id <user-id> --confirm
coline contacts remove -w acme --json '{"userId":"<user-id>"}' --fields id --confirm
```

## contacts requests accept

Accepts a request someone sent the person.

```text
coline contacts requests accept [flags]
```

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

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

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

## contacts requests cancel

Takes back a request the person sent.

```text
coline contacts requests cancel [flags]
```

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

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

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

## contacts requests decline

Declines a request someone sent the person.

```text
coline contacts requests decline [flags]
```

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

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

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