# promises

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

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

{/* 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 promises` command, 3 in all.

## promises list

The promises Coline noticed you made in chat or mail in this workspace, by status.

It changes nothing.

```text
coline promises list [flags]
```

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

| Flag              | What it does                                                                      |
| ----------------- | --------------------------------------------------------------------------------- |
| `--status <text>` | Only promises in this state. One of `open`, `completed`, `dismissed`, `canceled`. |
| `--input <file>`  | Read the input as JSON from a file; - reads stdin.                                |

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

## promises make-task

Makes a task from an open promise made in chat or mail that has no task yet, assigned to the person who promised it.

```text
coline promises make-task [flags]
```

**Action** `promises.makeTask` · **Effect** write · **Can wait for your approval** no · **Scope** `taskboards.write` · **Workspace** yes, `-w`

| Flag                  | What it does                                       |
| --------------------- | -------------------------------------------------- |
| `--promise-id <id>`   | Required.                                          |
| `--taskboard-id <id>` | Board for the task; defaults to one Coline picks.  |
| `--input <file>`      | Read the input as JSON from a file; - reads stdin. |

```bash
coline promises make-task -w acme --promise-id <promise-id>
coline promises make-task -w acme --json '{"promiseId":"<promise-id>"}' --fields id
```

## promises update

Marks one of your promises done, or dismisses it.

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

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

| Flag                   | What it does                                       |
| ---------------------- | -------------------------------------------------- |
| `--commitment-id <id>` | The promise's id, from promises.list. Required.    |
| `--status <text>`      | Required. One of `completed`, `dismissed`.         |
| `--input <file>`       | Read the input as JSON from a file; - reads stdin. |

```bash
coline promises update -w acme --commitment-id <commitment-id> --status completed
coline promises update -w acme --json '{"commitmentId":"<commitment-id>","status":"completed"}' --fields id
```
