CLI reference
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:
{"error": {"message": "No dataset named 'zipcodes' in the catalog. ...", "command": "info"}}
queria list
Lists all published datasets.
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.
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.
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
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.
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.
queria schema <dataset> [--format FMT] [--out PATH]
queria columns
Lists a dataset’s columns. Give a table name to narrow down.
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.
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.
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 |
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).
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.
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.
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.
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 exposes the same pages as the list_docs and read_doc tools.
queria skills
Writes the Queria skills into the directory your agent reads skills from. No Node, and no agent-specific plugin mechanism.
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.
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 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 page.
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).
queria auth set-token <token> # save to the config file (permissions 600)
queria auth status # show whether a token exists and its origin (flag / env / config)
queria auth clear # remove from the config file
See Authentication for details.
queria create
Registers one of your own datasets with Queria. The container has to exist before a build can fill it.
queria 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 edit
Changes the visibility of one of your datasets.
queria edit <name|handle/name> --visibility {public,private}
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 delete
Deletes one of your datasets and everything in it. It asks for confirmation first.
queria 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 delete <handle>/<name> — a deleted dataset is no longer listed, so the name alone can no longer find it.
queria report
Creates, edits, views and deletes reports (Markdown with SQL and charts). 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>.
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> [-o 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) |
-o, --output |
The file view writes to (default: stdout) |
-y, --yes |
Don’t ask for confirmation on delete |
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 -o, edit it, and send it back with edit.
queria validate
Checks the declarations you write for your own dataset (dataset.yml at the repository root, and *.table.yml files anywhere) against your local data. It never talks to the network — it only reads your declarations and your data.
queria validate [--root PATH] [--ducklake PATH] [--data-path PATH] [--parquet FILE ...] [--manifest PATH] [--quiet] [--strict]
| Option | Description |
|---|---|
--root |
Dataset repository root (default: the current directory) |
--ducklake |
DuckLake catalog path (default: the FDL_WORKING environment variable, the working catalog fdl checkout made) |
--data-path |
Parquet data directory (default: the FDL_DATA_PATH environment variable) |
--parquet |
Parquet files, when the dataset is not built on DuckLake |
--manifest |
dbt manifest.json. target/manifest.json is used automatically when it exists |
--quiet |
Hide info findings |
--strict |
Fail on warnings too (by default only errors fail) |
Declaring licenses is optional, but leaving them out produces a warning. --strict treats warnings as failures too, which suits CI.
queria compile
Runs the same checks as validate, then writes dataset.json — the file Queria reads to list your data in the catalog. The options are the same as validate, plus an output path.
queria compile [-o PATH] [--root PATH] [--ducklake PATH] [--data-path PATH] [--parquet FILE ...] [--manifest PATH] [--quiet] [--strict]
| Option | Description |
|---|---|
-o, --output |
Output path (default: dist/dataset.json) |
Column names, types, column order, and nullability are read from your data rather than from the declarations, so you do not write types in the declarations.
queria export
Converts the dataset.json that compile wrote into another catalog’s format. It reads only dataset.json, not your data.
queria export --format dcat-goj [-i PATH] [-o PATH]
| Option | Description |
|---|---|
--format |
Format to convert to. Only dcat-goj for now |
-i, --input |
The dataset.json to read (default: dist/dataset.json) |
-o, --output |
Output path (default: standard output) |
dcat-goj writes JSON-LD in the DCAT vocabulary that DCAT-GoJ, the Japanese government’s metadata standard, is built on. title_kana, issued, the publisher role, spatial_coverage and the rest map to DCAT-GoJ items. Items missing from dataset.json are left out of the output rather than guessed.
queria telemetry
Manages anonymous usage telemetry. See Telemetry for details.
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).
The environment variables DO_NOT_TRACK=1 and QUERIA_NO_TELEMETRY=1 also disable it.
queria feedback
Sends a dataset request, a data defect, or a documentation error to Queria. See Telemetry for details.
queria feedback send MESSAGE [--kind KIND] [--dataset DATASET] [--yes]
queria feedback status # show your client id
Options for send:
| Option | Description |
|---|---|
--kind {dataset_request,data_issue,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.
