# notebook

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

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

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

## notebook correct

Replaces one line of the crew notebook with corrected text; the old line stays in its history.

```text
coline notebook correct [flags]
```

**Action** `notebook.correct` · **Effect** write · **Can wait for your approval** no · **Scope** `files.write` · **Workspace** yes, `-w`

| Flag              | What it does                                       |
| ----------------- | -------------------------------------------------- |
| `--handle <text>` | A note's handle, e.g. m:3f9a1c2e. Required.        |
| `--text <text>`   | Required.                                          |
| `--input <file>`  | Read the input as JSON from a file; - reads stdin. |

```bash
coline notebook correct -w acme --handle "…" --text "…"
coline notebook correct -w acme --json '{"handle":"…","text":"…"}' --fields id
```

## notebook forget

Removes lines from the crew notebook for good, so nobody learns them again. Use it only when asked.

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

```text
coline notebook forget [flags]
```

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

| Flag               | What it does                                                            |
| ------------------ | ----------------------------------------------------------------------- |
| `--handles <list>` | Required.                                                               |
| `--about <text>`   | A short neutral description, e.g. "Sam's leave". Never the line's text. |
| `--input <file>`   | Read the input as JSON from a file; - reads stdin.                      |

```bash
coline notebook forget -w acme --handles "…" --confirm
coline notebook forget -w acme --json '{"handles":"…"}' --fields id --confirm
```

## notebook read

Lists the crew notebook's current lines in this workspace, newest first, a page at a time; set topic to read one topic.

It changes nothing.

```text
coline notebook read [flags]
```

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

| Flag                | What it does                                       |
| ------------------- | -------------------------------------------------- |
| `--topic <text>`    |                                                    |
| `--offset <number>` | Default 0.                                         |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin. |

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

## notebook search

Searches the crew's shared notebook in this workspace: what the crew and connected agents learned and wrote down, such as decisions, owners, dates and conventions. You see only lines your person may see.

It changes nothing.

```text
coline notebook search [flags]
```

**Action** `notebook.search` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `files.read` · **Workspace** yes, `-w`

| Flag               | What it does                                       |
| ------------------ | -------------------------------------------------- |
| `--query <text>`   | Required.                                          |
| `--limit <number>` | Default 10.                                        |
| `--input <file>`   | Read the input as JSON from a file; - reads stdin. |

```bash
coline notebook search -w acme --query "…"
coline notebook search -w acme --json '{"query":"…"}' --fields id
```

## notebook write

Adds one line to the crew's shared notebook, for every agent here to know: a fact, a decision or something that happened, in one short line with absolute dates. It records you as its author and the person you act for.

```text
coline notebook write [flags]
```

**Action** `notebook.write` · **Effect** write · **Can wait for your approval** no · **Scope** `files.write` · **Workspace** yes, `-w`

| Flag             | What it does                                                                         |
| ---------------- | ------------------------------------------------------------------------------------ |
| `--text <text>`  | One short line, e.g. "Invoices go out on the 3rd from billing\@." Required.          |
| `--kind <text>`  | Default fact. One of `fact`, `decision`, `event`.                                    |
| `--topic <text>` | One or two words that group it, e.g. Billing. Reuse a topic already in the notebook. |
| `--input <file>` | Read the input as JSON from a file; - reads stdin.                                   |

```bash
coline notebook write -w acme --text "…"
coline notebook write -w acme --json '{"text":"…"}' --fields id
```
