# views

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

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

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

## views build-layout

Asks Kairo to build a layout for a view from a sentence ("a map of who is overloaded", "a burn-up by week"). It is built once in the background and runs on the view's live tasks.

```text
coline views build-layout [flags]
```

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

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

```bash
coline views build-layout -w acme --view-id <view-id> --request "…"
coline views build-layout -w acme --json '{"viewId":"<view-id>","request":"…"}' --fields id
```

## views create

Saves a view: which tasks (filters and an optional plain-language filter), from where (some boards, all boards, a project or a cycle) and how (layout, grouping, sorting).

Set scope, query with --json '\{…}' or --input.

```text
coline views create [flags]
```

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

| Flag                  | What it does                                                                          |
| --------------------- | ------------------------------------------------------------------------------------- |
| `--name <text>`       | Required.                                                                             |
| `--visibility <text>` | personal (default) or workspace. One of `personal`, `workspace`.                      |
| `--layout <text>`     | One of `board`, `list`, `timeline`, `built`.                                          |
| `--sentence <text>`   | A plain-language filter, e.g. "anything a customer is waiting on".                    |
| `--home-kind <text>`  | Show it as a tab on this board, project or cycle. One of `board`, `project`, `cycle`. |
| `--home-id <id>`      |                                                                                       |
| `--input <file>`      | Read the input as JSON from a file; - reads stdin.                                    |

```bash
coline views create -w acme --name "…"
coline views create -w acme --json '{"name":"…","scope":"…"}' --fields id
```

## views delete

Moves a view to the trash, where it can be restored.

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

```text
coline views delete [flags]
```

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

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

```bash
coline views delete -w acme --view-id <view-id> --confirm
coline views delete -w acme --json '{"viewId":"<view-id>"}' --fields id --confirm
```

## views duplicate

Copies a view as a new personal view.

```text
coline views duplicate [flags]
```

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

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

```bash
coline views duplicate -w acme --view-id <view-id>
coline views duplicate -w acme --json '{"viewId":"<view-id>"}' --fields id
```

## views get

Reads one saved view: its name, filters, grouping, sorting, plain-language filter and layout.

It changes nothing.

```text
coline views get [flags]
```

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

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

```bash
coline views get -w acme --view-id <view-id>
coline views get -w acme --json '{"viewId":"<view-id>"}' --fields id
```

## views list

Lists the task views the person can open: their own, the team's, and the built-in ones (My tasks, Assigned to crew, Waiting on, Recently done). Optionally only views saved on one board, project or cycle.

It changes nothing.

```text
coline views list [flags]
```

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

| Flag                 | What it does                                       |
| -------------------- | -------------------------------------------------- |
| `--home-kind <text>` | One of `board`, `project`, `cycle`.                |
| `--home-id <id>`     |                                                    |
| `--input <file>`     | Read the input as JSON from a file; - reads stdin. |

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

## views preview

Runs filters, grouping and sorting over tasks without saving a view: on some boards, all boards, a project or a cycle.

It changes nothing.

Set scope, query with --json '\{…}' or --input.

```text
coline views preview [flags]
```

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

| Flag                | What it does                                          |
| ------------------- | ----------------------------------------------------- |
| `--offset <number>` | Where the page starts (the last answer's nextOffset). |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin.    |

```bash
coline views preview -w acme
coline views preview -w acme --json '{"scope":"…","query":"…"}' --fields id
```

## views reorder

Sets the person's own order for views.

```text
coline views reorder [flags]
```

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

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

```bash
coline views reorder -w acme --view-ids "…"
coline views reorder -w acme --json '{"viewIds":"…"}' --fields id
```

## views set-task

For a view with a plain-language filter: puts a task in or takes it out by hand. That choice is final; included null hands it back to the filter.

```text
coline views set-task [flags]
```

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

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

```bash
coline views set-task -w acme --view-id <view-id> --task-id <task-id> --included
coline views set-task -w acme --json '{"viewId":"<view-id>","taskId":"<task-id>","included":"true"}' --fields id
```

## views step-back-layout

Puts a view's previous built layout back.

```text
coline views step-back-layout [flags]
```

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

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

```bash
coline views step-back-layout -w acme --view-id <view-id>
coline views step-back-layout -w acme --json '{"viewId":"<view-id>"}' --fields id
```

## views tasks

Lists the tasks in a saved or built-in view (builtin:my-tasks, builtin:assigned-to-crew, builtin:waiting-on, builtin:recently-done), across every board the person can open.

It changes nothing.

```text
coline views tasks [flags]
```

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

| Flag                | What it does                                          |
| ------------------- | ----------------------------------------------------- |
| `--view-id <id>`    | Required.                                             |
| `--offset <number>` | Where the page starts (the last answer's nextOffset). |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin.    |

```bash
coline views tasks -w acme --view-id <view-id>
coline views tasks -w acme --json '{"viewId":"<view-id>"}' --fields id
```

## views update

Renames a view or changes its filters, plain-language filter, layout, scope or who sees it (owner or admin only).

Set scope, query with --json '\{…}' or --input.

```text
coline views update [flags]
```

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

| Flag                  | What it does                                                       |
| --------------------- | ------------------------------------------------------------------ |
| `--view-id <id>`      | Required.                                                          |
| `--name <text>`       |                                                                    |
| `--visibility <text>` | One of `personal`, `workspace`.                                    |
| `--layout <text>`     | One of `board`, `list`, `timeline`, `built`.                       |
| `--sentence <text>`   | A plain-language filter, e.g. "anything a customer is waiting on". |
| `--input <file>`      | Read the input as JSON from a file; - reads stdin.                 |

```bash
coline views update -w acme --view-id <view-id>
coline views update -w acme --json '{"viewId":"<view-id>"}' --fields id
```
