# Tables commands

Read the warehouse tables people asked for that the context does not describe, the most asked first, and dismiss the ones the team will not add.

These requests are not issues, so [`cassis issues list`](/reference/cli/issues/#issues-list) does not print them: they are one list for the project, one line per table. It is the list the [Issues page](/curate/issues/#tables-to-add) shows under **Tables to add**. Both commands also take the [shared options](/reference/cli/#shared-options): `--project`, `--path`, `--api-key`, `--api-url`, and `--base-path`.

## tables list

Lists the tables, the most asked first.

```bash
cassis tables list

# Only the modeled tables suggested for one domain
cassis tables list --layer modeled --domain finance

# Next page
cassis tables list --offset 50
```

### Arguments and options

| Name | Type | Default | Notes |
| --- | --- | --- | --- |
| `--layer` | `modeled` or `raw` | Both | Only the modeled tables, or only the raw ones |
| `--domain` | domain path | Any | Only the tables suggested for this domain or a domain under it |
| `--search` | text | None | Only the tables whose name contains this text |
| `--limit` | number, 1 to 200 | `50` | How many tables to print |
| `--offset` | number | `0` | How many tables to skip, to page through the list |
| `--json` | flag | Off | Prints the page as JSON |

### Output

- **Each line** How many conversations asked for the table (`x3`), how many users, its layer (`modeled`, `raw`, or `-` when the project does not draw that line), its suggested domain, and its name as `SCHEMA.TABLE`.

- **Suggested domain** A suggestion, not a placement. It ends with `?` when it rests on one conversation, and reads `-` when the conversations disagree.

- **Footer** `N more (--offset M).` when the list continues.

- **JSON** The page, with `items` and `total`, without null or default keys. Each item carries every candidate domain with its count, and the owners the table goes to.

- **Leaving the list** A table leaves the list once it is published in the context, or when the team dismisses it.

## tables dismiss

Records that the team will not add the tables, or restores them with `--undo`. A dismissed table leaves the list for everyone on the project. A table you add needs no command: once the pull request that describes it is merged and published, it leaves the list on its own. Requires the editor or admin role.

```bash
# Dismiss several tables at once
cassis tables dismiss CORE.PAYMENTS RAW.SESSION

# Restore one
cassis tables dismiss RAW.SESSION --undo
```

### Arguments and options

| Name | Type | Default | Notes |
| --- | --- | --- | --- |
| `table` | `SCHEMA.TABLE`, one or more | Required | As `tables list` prints it |
| `--undo` | flag | Off | Takes the tables back into the list |

### Output

Each table is handled in turn, one line per table: `✓ SCHEMA.TABLE is dismissed.`, or with `--undo`, that it is back in the list. A table that is not in the list is reported and the others still go through; the command then exits 1.
