---
title: CLI reference
description: All Queria CLI commands and options
---

## Global options

| Option | Description |
|---|---|
| `--storage-url URL` | Base URL of the catalog (default: `https://data.queria.io`) |
| `--token TOKEN` | API token (takes precedence over `QUERIA_TOKEN` and the config file) |
| `--version` | Show the version |

## Output options (shared by list / search / info / schema / columns / summarize / sql)

| Option | Description |
|---|---|
| `--format {table,csv,json,jsonl,markdown}` | stdout format (default: `table`) |
| `--out PATH` | Write results to a `.csv` / `.parquet` / `.json` / `.jsonl` file |

The extension decides what `--out` writes. Passing a `--format` that contradicts it (say `--format json --out result.csv`) is an error; a matching one (`--format json --out result.json`) is fine.

`.csv` and `.parquet` can hold a result larger than memory. `.json` and `.jsonl` go through the same rendering as stdout, so `--out result.json` and `--format json > result.json` produce the same content.

`table` never truncates a value. Anything too wide for its column is folded onto further lines.

Folding to the terminal width is there for people to read, so it happens only when the output is displayed in a terminal (or when `COLUMNS` asks for a width). Piped or redirected output stays on one line per row.

## Environment variables

| Variable | Description |
|---|---|
| `QUERIA_TOKEN` | API token. Setting it to an empty value ignores any saved token and reads anonymously |
| `QUERIA_EXTRA_HEADERS` | Headers to add to requests to the queria.io API, one `Name: value` per line (for example, when going through an authenticating proxy) |
| `QUERIA_ERROR_FORMAT` | Set to `json` to write errors to stderr as JSON (exit codes are unchanged) |
| `DO_NOT_TRACK` / `QUERIA_NO_TELEMETRY` | Turn telemetry off |

The shape of an error under `QUERIA_ERROR_FORMAT=json`:

```json
{"error": {"message": "No dataset named 'zipcodes' in the catalog. ...", "command": "info"}}
```

## queria list

Lists all published datasets.

```bash
queria list [--format FMT] [--out PATH]
```

The `handle` column names the account that published each dataset, and `datasource` is the dataset name — what you write as `<datasource>.<schema>.<table>` in a query. Names are unique per account, so two accounts can publish the same one and the handle is what tells them apart.

## queria search

Keyword search across datasets, tables, and columns (case-insensitive substring match). Datasets match on title and description; tables and columns match on name, title, and description.

**Whitespace narrows.** Only entries containing every word come back, and the words may sit in different places.

```bash
queria search population              # broad
queria search population small area   # only entries with all three
```

You can also search by the columns a table holds. `--column` asks for a matching column per condition, so repeating it finds tables that hold all of them. With any column condition, key or location filter, the keyword may be left out.

```bash
queria search --column 町丁目 --column 人口    # tables with a town block column and a population column
queria search park --key city --geo           # among tables keyed by municipality and holding a location
```

```bash
queria search [<keyword>] [--column TEXT ...] [--key ENTITY ...] [--geo] [--type {dataset,table,column}] [--limit N] [--format FMT] [--out PATH]
```

| Option | Description |
|---|---|
| `--column` | Keep tables with a column (name, title or description) matching this text. Repeat it to require a matching column for every condition |
| `--key` | Keep tables whose rows are identified by this key: `prefecture` / `city` / `small_area` / `town` / `mesh` / `corporate_number` / `postal_code`. Repeat it to accept any of several |
| `--geo` | Keep tables with a geometry column or a latitude/longitude pair |
| `--type` | Filter by entry kind (default: all) |
| `--limit` | Maximum number of results (default: 50) |

Without a keyword, no column entries come back: you get the matching tables and their datasets.

The `period` column of the result holds a table's first and last period (`2015..2020`), and the `keys` column the keys it has (`city,small_area` and so on, plus `location` when it has a location column).

## queria info

Shows a dataset's metadata (license, source URL, repository, schema list, updated-at, and so on) as two columns, `field` / `value`. Fields whose value is NULL are omitted.

```bash
queria info <dataset> [--format FMT] [--out PATH]
```

`<dataset>` takes either a dataset name (`e_stat`) or one qualified with the account (`queria/e_stat`), and the `handle` field says which account the name landed on. The same goes for `schema` and `columns`.

## queria schema

Lists a dataset's tables and views.

```bash
queria schema <dataset> [--format FMT] [--out PATH]
```

## queria columns

Lists a dataset's columns. Give a table name to narrow down.

```bash
queria columns <dataset> [table] [--format FMT] [--out PATH]
```

The dotted form used in SQL, such as `e_stat.ssds.a_municipal_population`, also works: the last name is taken as the table (stopping at a schema, as in `e_stat.ssds`, narrows to that schema's columns). Given to `info` or `schema`, only the leading dataset name is used.

## queria summarize

Shows column statistics for a table (counts, min/max, NULL rate, approximate unique counts, and so on — DuckDB's `SUMMARIZE`). It scans the whole table, so large tables take time and bandwidth.

```bash
queria summarize <dataset>.<schema>.<table> [--format FMT] [--out PATH]
```

`<dataset>.<table>` without a schema is interpreted as the `main` schema.

## queria sql

Runs SQL. Datasets referenced as `<dataset>.<schema>.<table>` are attached automatically.

```bash
queria sql "<query>" [--datasets DS1,DS2] [--format FMT] [--out PATH]
queria sql -f PATH [--datasets DS1,DS2] [--format FMT] [--out PATH]
```

| Option | Description |
|---|---|
| `-f`, `--file` | Read the SQL from a file (`-` for stdin) |
| `--datasets` | Datasets to ATTACH beforehand (normally unnecessary thanks to auto-detection). `alice/sales as a` gives one another name in SQL. `alice/sales@<version ID or tag>` reads an earlier version |

The query comes from exactly one of: the argument, a file, or stdin. Passing `-` as the argument also reads stdin. For long or generated SQL, a file or stdin saves you from shell quoting (`"` and `$` inside the SQL).

```bash
queria sql -f query.sql
echo "SELECT 1" | queria sql -
```

Only statements starting with SELECT / WITH / DESCRIBE / SHOW / PRAGMA / EXPLAIN / SUMMARIZE / VALUES / TABLE / FROM / PIVOT / UNPIVOT are accepted. The same check applies to SQL read from a file or stdin. A leading comment (`--` or `/* */`) is skipped, so a query can say what it does on top.

To read an earlier version, add `@` and a version ID or a tag after the dataset name in `--datasets`. `queria dataset versions` lists the version IDs. To read two versions of one dataset together, give one of them another name with `as`.

```bash
queria sql --datasets 'queria/calendar@01a1b2b4-954f-7d0b-ad59-ae26765e29a6 as old' \
  "SELECT count(*) FROM old.calendar.day"
```

One run takes one statement. Several statements separated by `;` are rejected (a trailing `;` is fine). To get several results at once, combine them into one query with `UNION ALL`, or run separate commands.

## queria docs

Reads this documentation from the terminal. Use it where there is no browser, or to let an AI agent look things up.

```bash
queria docs list                            # every page
queria docs show reference/cli              # one page as Markdown
queria docs show reference/cli --lang ja
```

Options for `list`:

| Option | Description |
|---|---|
| `--lang {en,ja}` | Language of the pages listed (default: `en`) |
| `--format {table,csv,json,jsonl,markdown}` | stdout format (default: `table`) |
| `--out PATH` | Write the result to a file |

Options for `show`:

| Option | Description |
|---|---|
| `--lang {en,ja}` | Page language (default: `en`) |

`list` returns `name` / `section` / `title` / `description`. The `name` is exactly what `show` takes. Use `--format json` to read it from a program.

```bash
queria docs list --format json | jq -r '.[].name'
```

The name `show` takes is the page's path on docs.queria.io, such as `reference/cli`. A leading `/`, a trailing `.md`, an `en/` prefix, and a full URL are all accepted. The site's front page is `index`.

An unknown name suggests the closest matches and exits with status 1.

Pages are cached (under `XDG_CACHE_HOME`, by default `~/.cache/queria/docs`) and read from there only when the site cannot be reached; when that happens, the time the copy was taken is written to stderr. A page that does not exist (404) is reported as such without consulting the cache.

The [MCP server](/en/mcp) exposes the same pages as the `list_docs` and `read_doc` tools.

## queria skills

Writes the [Queria skills](/en/queria-skill) into the directory your agent reads skills from. No Node, and no agent-specific plugin mechanism.

```bash
queria skills list                          # every published skill
queria skills show queria                   # one skill's SKILL.md
queria skills install                       # every skill, into this project
queria skills install queria --global       # the queria skill, for every project on this machine
```

Naming a skill installs that one. With no name, every published skill is installed.

Options for `install`:

| Option | Description |
|---|---|
| `-a, --agent AGENT` | Agent to install for; repeatable |
| `-g, --global` | Install into your home directory instead of this project |
| `--dir PATH` | Write into this directory instead of an agent's; not combinable with `--agent` or `--global` |
| `--force` | Replace a skill directory whose contents differ from the published one |
| `--format {table,csv,json,jsonl,markdown}` | stdout format (default: `table`) |
| `--out PATH` | Write the result to a file |

Without `--agent`, the files go to `.agents/skills`, the shared location Codex, Cursor, OpenCode, Gemini CLI and GitHub Copilot all read. A project with a `.claude` directory, or a machine with `~/.claude`, also gets a copy in `.claude/skills`, because that is the only place Claude Code reads.

The agents `-a` accepts, and where each one gets its files:

| `--agent` | Project | `--global` |
|---|---|---|
| `agents` | `.agents/skills` | `~/.agents/skills` |
| `claude-code` | `.claude/skills` | `~/.claude/skills` |
| `codex` | `.agents/skills` | `~/.agents/skills` |
| `cursor` | `.agents/skills` | `~/.cursor/skills` |
| `gemini-cli` | `.agents/skills` | `~/.gemini/skills` |
| `github-copilot` | `.agents/skills` | `~/.copilot/skills` |
| `opencode` | `.agents/skills` | `~/.config/opencode/skills` |
| `pi` | `.pi/skills` | `~/.pi/agent/skills` |

A project install goes to the root of the Git repository, so running it from a subdirectory still writes at the top.

`install` returns `skill` / `agent` / `path` / `status`. The values of `status`:

| `status` | Meaning |
|---|---|
| `installed` | Written for the first time |
| `updated` | Replaced, because `--force` said so |
| `unchanged` | What is there is already the published copy |
| `blocked` | What is there differs, and is left alone without `--force` |
| `occupied` | Something that is not a skill is there (no `SKILL.md`), and `--force` does not remove it either |
| `symlink` | Another tool, such as `npx skills`, manages it through a symlink |

A single `blocked`, `occupied` or `symlink` exits with status 1. A skill you have edited yourself never goes back without `--force`.

The archive is cached (under `XDG_CACHE_HOME`, by default `~/.cache/queria/skills`) and read from there only when GitHub cannot be reached.

Restart your agent, or start a new session, to have the skills loaded.

## queria login

Obtains an API token through browser approval and saves it to the config file `~/.config/queria/config.toml`. Running it opens the queria.io approval page in your browser; press "Approve" and the token is saved automatically.

```bash
queria login [--no-browser]
```

| Option | Description |
|---|---|
| `--no-browser` | Print the approval URL instead of opening a browser. Approve it in a browser on any device, and paste the code shown on the page into the CLI's `Code:` prompt |

Logging in also writes queria into fdl's config file `~/.config/fdl/config.toml` as the credential helper for data.queria.io, so fdl gets the token from queria when it reads or writes data.queria.io. No other copy of the token is made. A different helper already set for the same URL is left as it is.

In the flow that opens a browser automatically, the wait for approval times out after 5 minutes. If it times out, run `queria login` again or use `--no-browser`.

**This command needs an interactive terminal.** Both flows need a person to approve in a browser, so it exits before opening one when stdin is not a terminal rather than blocking on the wait. From CI or an AI agent, issue a token at [queria.io/settings/tokens](https://queria.io/settings/tokens) and pass it via `QUERIA_TOKEN` or `queria auth set-token`.

The token expires in 90 days. Run `queria login` again to renew it.

## queria logout

Deletes the saved token from the config file. To disable the token on the server side, click "Disconnect" for this computer under "Connected apps and devices" on the [API tokens](https://queria.io/settings/tokens) page.

```bash
queria logout
```

## queria auth

Manages API tokens manually. On a personal machine, `queria login` is the primary method. For non-interactive environments such as CI and BI tools, issue a token on the API tokens page at queria.io and pass it with `auth set-token` or the `QUERIA_TOKEN` environment variable.

Tokens are resolved in the order `--token` → the `QUERIA_TOKEN` environment variable → the config file `~/.config/queria/config.toml` (respects `XDG_CONFIG_HOME`). When none is set and a GitHub Actions job has the `id-token: write` permission, the CLI exchanges GitHub's OIDC token for a Queria token valid for 1 hour ([Updating from GitHub Actions](/en/authentication#github-actions)).

```bash
queria auth set-token <token>   # save to the config file (permissions 600)
queria auth status              # show whether a token exists, its origin (flag / env / config), and when the organization admin token expires
queria auth clear               # remove from the config file (including the organization admin token)
queria auth refresh --scopes accounts:admin [--no-browser]   # get the organization admin token
```

`queria auth refresh --scopes accounts:admin` gets the token that `queria org` uses to change organizations. Like `queria login`, it opens the approval page in the browser. After you approve, a token with only `accounts:admin` is saved to the config file. The token expires in 1 hour. The token saved by `queria login` stays as it is. Like `queria login`, it needs an interactive terminal.

See [Authentication](/en/authentication) for details.

## queria dataset list

Lists the datasets of every account you belong to, private ones included. You need to be signed in.

```bash
queria dataset list [--owner HANDLE | --shared] [--format FORMAT] [--out FILE]
```

`--owner` narrows it to one account, and `--shared` shows the datasets other accounts shared with you instead. `queria list` lists the public datasets, and `queria info` shows one dataset's metadata.

## queria dataset create

Registers one of your own datasets with Queria. The container has to exist before a build can fill it.

```bash
queria dataset create <name> [--owner HANDLE] [--public | --private]
```

| Option | Description |
|---|---|
| `--owner` | The account to create it in (default: your own) |
| `--public` | Anyone can read it |
| `--private` | Only you can read it (the default). Pro and organization plans only |

Without `--owner`, the dataset belongs to the handle of the account you are logged in as, and is referred to as `<handle>/<name>`. If you have not chosen a handle yet, the command asks you to choose one and exits. To create it in an organization account, pass `--owner <org handle>` — any member can, you do not have to be an admin. When you are running with an organization service token, the default is that organization.

## queria dataset edit

Changes the visibility of one of your datasets, whether changes to main require approval, and whether it is archived.

```bash
queria dataset edit <name|handle/name> [--public | --private] [--require-approval | --no-require-approval] [--archive | --unarchive]
```

| Option | Description |
|---|---|
| `--public` | Make it readable by anyone |
| `--private` | Make it readable only by you. Pro and team plans only |
| `--require-approval` | Reject `fdl push` to main, so that changes come in as [change requests](/en/publish/change-requests) an admin merges. Only admins of the account can change this |
| `--no-require-approval` | Accept `fdl push` to main again. Only admins of the account can change this |
| `--archive` | [Archive](/en/exploring-datasets#archived-datasets) the dataset: new versions are rejected and it leaves the dataset list and search, while its data stays readable. Only admins of the account can change this |
| `--unarchive` | Unarchive the dataset. Only admins of the account can change this |

Passing no option is an error. Change one setting per run.

When the same name exists in more than one of your accounts, the name alone does not say which one you mean, so the command lists the candidates and stops. Say which one as `<handle>/<name>`. `delete` behaves the same way.

## queria dataset delete

Deletes one of your datasets and everything in it. It asks for confirmation first.

```bash
queria dataset delete <name|handle/name> [--yes]
```

| Option | Description |
|---|---|
| `-y`, `--yes` | Do not ask for confirmation |

One call clears up to 10,000 objects. If it stops partway, the dataset is no longer served, but what is left in storage still counts against your quota. Carry on with `queria dataset delete <handle>/<name>` — a deleted dataset is no longer listed, so the name alone can no longer find it.

## queria dataset versions

Lists a dataset's versions, newest first. Private datasets need you to be signed in.

```bash
queria dataset versions <name|handle/name> [--format FORMAT] [--out FILE]
```

The columns are `seq` (the sequence number), `id`, `created_at`, `author` and `message`. Pass an `id` to `queria sql --datasets '<name>@<id>'` to read that version.

## queria dataset clone

Clones a dataset into a working catalog on your disk. It runs `fdl clone` on the dataset's URL, with the token `queria login` saved.

```bash
queria dataset clone <name|handle/name> [<working catalog>] [--branch main]
```

Without a working catalog, it makes `<dataset>.sqlite` in the current folder. `--branch` takes a branch name. Open the working catalog with the `ATTACH` statement it prints, write to it, and make a version with `fdl commit` and `fdl push` (see [Publish data](/en/publish)).

## queria dataset fork

Forks a public dataset into your account. This is the same operation as Fork on the dataset page: it creates a public dataset with the same name in your account and copies the latest version of the upstream main into it.

```bash
queria dataset fork <handle/name> [--owner HANDLE]
```

| Option | Description |
|---|---|
| `--owner` | The handle of an organization to fork into (default: your account) |

When the copy finishes, create a branch in the fork, push to it, and open a change request with `queria dataset request create <upstream> --head <fork> --branch <branch>` (see [Open a change request from a fork](/en/publish/change-requests#open-a-change-request-from-a-fork)).

## queria dataset request

Lists, views, creates, closes, reopens and merges a dataset's [change requests](/en/publish/change-requests). Users who are not members open a change request from a branch of their fork with `create`.

```bash
queria dataset request list <name|handle/name> [--state {open,closed,merged,all}]
queria dataset request view <name|handle/name> <number> [--format json]
queria dataset request create <name|handle/name> --branch BRANCH --title TITLE [--body BODY] [--head HANDLE/NAME]
queria dataset request close <name|handle/name> <number>
queria dataset request reopen <name|handle/name> <number>
queria dataset request merge <name|handle/name> <number> [--yes]
```

| Option | Description |
|---|---|
| `--state` | The state `list` shows (default: `open`) |
| `--format json` | Print the whole response of `view` as JSON |
| `--branch` | The branch for `create`. Push it with `fdl push` first |
| `--title`, `--body` | The title and description for `create` |
| `--head` | The fork the branch is on, for `create`. Without it, the branch is on the dataset itself |
| `-y`, `--yes` | Don't ask for confirmation on `merge` |

`view` shows the state, branch and author, whether the request can be merged, and the versions the branch adds. The author and admins of the account can `close` and `reopen` a request; admins can `merge` it, which moves main to the branch's version. `merge` shows the branch's latest version first, and is rejected if the branch was pushed after that.

## queria dataset issue

Lists, views, creates, comments on, closes and reopens a dataset's [issues](/en/exploring-datasets#create-an-issue). Issues are visible to everyone who can read the dataset. Anyone who can read the dataset can list and view them; signed-in users can create and comment.

```bash
queria dataset issue list <name|handle/name> [--state {open,closed}]
queria dataset issue view <name|handle/name> <number> [--format json]
queria dataset issue create <name|handle/name> --title TITLE [--body BODY]
queria dataset issue comment <name|handle/name> <number> --body BODY
queria dataset issue close <name|handle/name> <number> [--reason {completed,not_planned}]
queria dataset issue reopen <name|handle/name> <number>
```

| Option | Description |
|---|---|
| `--state` | The state `list` shows (default: `open`) |
| `--format json` | Print the whole response of `view` as JSON |
| `--title`, `--body` | The title and description for `create`. In the description, name the table and column, the value you found, and the value you expected |
| `--body` | The text of a `comment` |
| `--reason` | Why `close` closes it: `completed` or `not_planned` (default: `completed`) |

`view` shows the issue's description and comments. The author of an issue and people who can write to the dataset can `close` and `reopen` it.

## queria dataset share and transfer

Shares a dataset with Queria users and teams, and moves a dataset to another account. These are the same operations as [Share a dataset](/en/account#share-a-dataset), [Who can access an organization's datasets](/en/account#who-can-access-an-organizations-datasets), and "Transfer to another account" on the dataset's page.

```bash
queria dataset share list <name|handle/name>
queria dataset share add <name|handle/name> (--user HANDLE | --team NAME) [--permission {read,write,admin}]
queria dataset share remove <name|handle/name> (--user HANDLE | --team NAME)
queria dataset share restrict <name|handle/name> [--members]
queria dataset transfer <name|handle/name> <new-owner> [--yes]
```

| Option | Description |
|---|---|
| `--user` | The handle of the person to share with, including people outside the organization. For a person without a handle, the ID that `share list` shows |
| `--team` | The name of the team to share with (a team of the organization that owns the dataset) |
| `--permission` | `read` to read only, `write` to read and write, `admin` to also change the visibility, change sharing, and delete (default: `read`) |
| `--members` | With `restrict`, removes the restriction so every member of the organization can read and write it |
| `-y`, `--yes` | Don't ask for confirmation on `transfer` |

- Admins of the account that owns the dataset and people shared with `admin` can run `share`. Datasets on a personal account can be shared on any plan; an organization's datasets on the organization plan. Organization service tokens can't run it
- Sharing with a member of the organization takes effect once `share restrict` limits the dataset to admins and the people it is shared with. Until then, every member of the organization can read and write it. Sharing with people outside the organization takes effect regardless of the restriction
- `queria dataset list --shared` lists the datasets shared with you
- Running `share add` again for the same member or team replaces the permission
- `share list` prints the access setting (`members` or `restricted`) to stderr and the shares as a table to stdout. It takes `--format` and `--out`

`transfer` needs you to be an admin of both the current owner and the new owner. You are the admin of your personal account. After a transfer, the dataset's shares and restriction are removed, and every member of the new owner can read and write it. The old `<handle>/<name>` keeps pointing to the dataset until the old owner creates a dataset with the same name.

`transfer` needs a token with the `accounts:admin` permission. Everyday tokens don't have it, so get a token that lasts one hour with `queria auth refresh --scopes accounts:admin` first. Organization service tokens can't run it.

## queria report

Lists, creates, edits, views and deletes [reports](/en/reports) (Markdown with SQL and charts). Listing, creating, editing and deleting need you to be logged in with `queria login`. `view` works without logging in for public reports. `<handle>/<slug>` is the value `queria report create` prints. For a public report with a public name, it is the end of the report's URL, `queria.io/reports/<handle>/<slug>`.

```bash
queria report list [--owner HANDLE]
queria report open <handle/slug> [--no-browser]
queria report create <file> [--slug SLUG] [--owner HANDLE] [--public | --members | --private]
queria report edit <handle/slug> [file] [--public | --members | --private]
queria report view <handle/slug> [--out FILE]
queria report delete <handle/slug> [--yes]
```

| Option | Description |
|---|---|
| `--slug` | The end of the URL (default: the file name, or the folder name for `index.md`) |
| `--owner` | The account to create it in (default: your own). Members of an organization can pass its handle |
| `--public` | Anyone can read it |
| `--members` | Only members of the owning organization can read it (organizations on a paid plan only) |
| `--private` | Only you can read it (the default for `create`) |
| `--out` | The file `view` writes to (default: stdout) |
| `-y`, `--yes` | Don't ask for confirmation on `delete` |
| `--no-browser` | Print the URL without opening a browser on `open` |

`list` shows every report of every account you belong to, private ones included. `--owner` narrows it to one account. It accepts `--format` and `--out` from the output options. `open` opens `queria.io/reports/<handle>/<slug>` in the browser and prints that URL to stdout.

On success, `create` and `edit` print the report's URL to stdout. Given a file, `edit` replaces the content; given only a visibility option, it keeps the content as is. Passing neither is an error.

If a report already exists at that URL, `create` fails rather than overwriting it. To revise a report, fetch its content with `view --out`, edit it, and send it back with `edit`.

### Sharing and transfer

```bash
queria report share list <handle/slug>
queria report share add <handle/slug> (--user HANDLE | --team NAME) [--permission {read,write}]
queria report share remove <handle/slug> (--user HANDLE | --team NAME)
queria report transfer <handle/slug> <organization> [--yes]
```

`share` shares a private report of an organization on an organization plan with one of its members (`--user` with their handle) or teams (`--team` with the team name). The author of the report and admins of the organization can run it; organization service tokens can't. The rules are the same as [Share with specific people or teams](/en/reports#share-with-specific-people-or-teams) in the browser: the member or team also gets read access to datasets they cannot read yet. If any of those datasets cannot be shared, the command fails without sharing and lists them.

`transfer` moves a report you wrote from your personal account to an organization you are a member of. It cannot be moved back to a personal account. A public report with a public name gets a new `queria.io/reports/<handle>/<slug>` URL, and the old URL stops working. It needs a token with the `accounts:admin` permission (see [queria dataset share and transfer](#queria-dataset-share-and-transfer)).

### Comments

Lists and deletes the comments on a public report. Comments are posted on the report's page on queria.io. `list` works without logging in.

```bash
queria report comment list <handle/slug>
queria report comment delete <id> [--yes]
```

| Option | Description |
|---|---|
| `-y`, `--yes` | Don't ask for confirmation on `delete` |

`list` prints comments oldest first, with the value `delete` takes in the `id` column. You can delete comments you wrote and comments on reports of accounts you are a member of (those with `True` in the `can_delete` column).

`list` accepts `--format` and `--out` from the output options.

## queria chat

Asks the [AI chat](/en/chat) on queria.io. Given a question as an argument, it answers once and exits; run without one in a terminal, it starts a conversation. You need to be signed in with `queria login`. Conversations are the same ones listed under "Chat history" in the browser, so you can open one there and continue it. Questions use the same weekly [usage allowance](/en/pricing#usage-allowance) as the browser.

```bash
queria chat "Make a dashboard of Hino's population trend"
queria chat
echo "question" | queria chat
queria chat --continue "Break it down by age as well"
queria chat --resume <ID> "question"
queria chat --list [--format FORMAT] [--out FILE]
```

| Option | Description |
|---|---|
| `-c`, `--continue` | Ask in the conversation you used last |
| `-r`, `--resume` | Ask in the conversation with this ID. The ID is the one `--list` shows, the same as the end of the URL `queria.io/chat/<ID>` |
| `--list` | List your conversations |
| `--format jsonl` | Print each step of the answer (tool calls, text, tables, and what was saved) as one JSON line, with the time since the start (`elapsed_ms`) |
| `--open` | Open the reports, dashboards, and maps the AI saves in the browser |

The text of the answer is written to stdout as it arrives. The names of the tools the AI calls and the elapsed time are written to stderr, so a pipe receives the text only. Tables the AI creates are printed as tables in the terminal, and saved reports, dashboards, and maps are printed with their title and URL. Charts and maps are not drawn in the terminal; open the conversation URL printed to stderr in the browser to see them.

In a conversation, `/exit` or Ctrl-D ends it. Pressing Ctrl-C during an answer stops that answer so you can type the next question. When the allowance is used up, or the token does not have the `reports:write` permission, the command prints the reason and exits with status 1. Organization service tokens cannot use it.

To analyze together with your own files or code, you can also add the [MCP server](/en/ai-chat) to an AI chat such as Claude Code. Questions there count against that AI chat's plan, not the Queria allowance.

## queria map / queria dashboard

Lists, views, creates, edits and deletes saved [maps](/en/maps) and dashboards. Both take the same options and read and write their content as JSON. Listing, creating, editing and deleting need you to be signed in with `queria login`. `view` works without signing in for public maps and dashboards.

```bash
queria map list [--owner HANDLE] [--format FORMAT] [--out FILE]
queria map view <id> [--out FILE]
queria map create <file> [--title TITLE] [--owner HANDLE] [--public | --members | --private]
queria map edit <id> [file] [--title TITLE] [--revision REVISION] [--public | --members | --private]
queria map delete <id> [--yes]
queria map open <id> [--no-browser]
```

`queria dashboard` takes the same form. `<id>` is the value `list` shows, and the end of the URL `queria.io/maps/<id>` or `queria.io/dashboards/<id>`.

| Option | Description |
|---|---|
| `--title` | The title (default: `title` in the JSON) |
| `--revision` | The `revision` that `view` prints to stderr. If someone else has changed it since, `edit` is rejected |
| `--owner` | The account `create` creates it in (default: your own). With `list`, the account to show |
| `--public` | Anyone can read it |
| `--members` | Only members of the owning organization can read it |
| `--private` | Only you can read it (the default for `create`) |
| `--out` | The file `view` writes to (default: stdout) |
| `-y`, `--yes` | Don't ask for confirmation on `delete` |

Pass `-` as `file` to read from stdin. To revise one, fetch the current content with `view --out`, edit it, and send it back with `edit --revision`. On success, `create` and `edit` print the URL to stdout.

## queria org

Shows and changes an organization account's members, invitations, teams, tokens, and GitHub Actions registrations. Listing works with your usual token. To make changes, first get the organization admin token with `queria auth refresh --scopes accounts:admin`. When you pass `--token` or `QUERIA_TOKEN`, that token is used instead of the admin token.

```bash
queria org list                                   # your organizations and your role
queria org view <org>
queria org edit <org> [--name NAME] [--description TEXT] [--homepage URL]
queria org members list <org>
queria org members edit <org> <member> --role {admin,member}
queria org members remove <org> <member> [--yes]
queria org invitations list [org]                 # without org: invitations addressed to you
queria org invitations create <org> <email> [--role {admin,member}]
queria org invitations delete <org> <id> [--yes]
queria org invitations accept <id>
queria org teams list <org>
queria org teams create <org> <name>
queria org teams delete <org> <team> [--yes]
queria org teams add <org> <team> <member> [--role {member,maintainer}]
queria org teams edit <org> <team> <member> --role {member,maintainer}
queria org teams remove <org> <team> <member>
queria org tokens list <org>
queria org tokens delete <org> <id> [--yes]
queria org publishers list <org>
queria org publishers create <org> <owner/repo> --workflow FILE --branch BRANCH
queria org publishers delete <org> <id> [--yes]
```

| Option | Description |
|---|---|
| `--role` | The role of the member or team member |
| `-y`, `--yes` | Do not ask for confirmation when deleting or revoking |
| `--format`, `--out` | Output format and destination for `list` and `view` (same as the output options) |

`<member>` is a personal account's handle, and `<team>` is a team's name or ID. The same rules apply as on the website: only admins can change the profile, members, invitations, tokens, and GitHub Actions registrations, while admins and the team's maintainers can add and remove team members. Removing a member also revokes the organization service tokens that member issued, and the command prints how many were revoked. Organization service tokens are issued on the website, because the value is shown only once.

## queria star

Lists, adds and removes your stars. It works like the star button on queria.io: running `add` or `remove` again leaves the result unchanged. You can star public datasets, tables, reports, maps and dashboards. You need to be logged in with `queria login`.

```bash
queria star list
queria star add <kind> <ref>
queria star remove <kind> <ref>
```

Write `<kind>` and `<ref>` in one of these forms. The `kind` and `ref` columns of `queria star list` use the same forms.

| `<kind>` | `<ref>` |
|---|---|
| `dataset` | `<handle>/<dataset name>` |
| `table` | `<handle>/<dataset name>/<schema>.<table>` |
| `report` | `<handle>/<slug>` |
| `map`, `dashboard` | The id in the URL |

## queria follow

Follows and unfollows accounts, and lists the accounts you follow. You cannot follow an account you are a member of (your personal account and the organizations you belong to). You need to be logged in with `queria login`.

```bash
queria follow list
queria follow add <handle>
queria follow remove <handle>
```

`queria star list` and `queria follow list` accept `--format` and `--out` from the output options.

## queria plan

Lists the plan features your account can use. Without signing in, it shows the free plan. Change your plan at [queria.io/settings/plan](https://queria.io/settings/plan).

```bash
queria plan [--format FORMAT] [--out FILE]
```

## queria api

Calls the queria.io API directly and prints the JSON it returns, like `gh api`. It authenticates with your saved token.

```bash
queria api <path> [-X METHOD] [-f KEY=VALUE ...] [--input FILE]
```

| Option | Description |
|---|---|
| `-X`, `--method` | The HTTP method (default: GET, or POST when `-f` or `--input` is given) |
| `-f`, `--field` | Add a string field to the JSON body, or to the query string with `-X GET`. Can be repeated |
| `--input` | Read the JSON body from a file, or from stdin with `-` |

`<path>` is the part after `/api/`; including `/api/` works too. When the server returns an error, the error body (JSON) is printed to stdout and the command exits with status 1.

```bash
queria api reports                                          # your reports
queria api -X PATCH reports/alice/report -f visibility=public
queria api -X GET catalog/search -f q=population               # sent in the query string
```

## queria telemetry

Manages anonymous usage telemetry. See [Telemetry](/en/telemetry) for details.

```bash
queria telemetry status         # show the current state
queria telemetry disable        # opt out (saved to the config file)
queria telemetry enable         # re-enable
queria telemetry enable --sql   # also send the SQL you run
queria telemetry disable --sql  # stop sending SQL only
```

The SQL you run is not sent by default. The CLI asks once, the first time you use it at a terminal ([SQL you run](/en/telemetry#sql-you-run)).

The environment variables `DO_NOT_TRACK=1` and `QUERIA_NO_TELEMETRY=1` also disable it.

## queria feedback

Sends a dataset request, a documentation error, or a CLI defect to Queria. For wrong data, open an issue on the dataset with [`queria dataset issue create`](#queria-dataset-issue). See [Telemetry](/en/telemetry#sending-feedback) for details.

```bash
queria feedback send MESSAGE [--kind KIND] [--dataset DATASET] [--yes]
queria feedback status          # show your client id
```

Options for `send`:

| Option | Description |
|---|---|
| `--kind {dataset_request,docs_issue,cli_issue,other}` | What sort of report it is (default: `other`) |
| `--dataset DATASET` | The dataset the report is about |
| `-y`, `--yes` | Skip the confirmation prompt (the payload is still printed) |

Before sending, the exact payload is printed and you are asked to confirm. Outside a terminal (no TTY), running without `--yes` exits without sending, because the prompt cannot be answered.

The message may be up to 4000 characters. **Anything longer is refused, not truncated.** Sending is also refused if the message contains your configured API token, a string starting with `qk_`, or a known AWS access-key pattern.

:::note
`DO_NOT_TRACK` / `QUERIA_NO_TELEMETRY` have no effect on feedback. Feedback is only ever sent when you ask for it.
:::
