---
metadata:
  - name: generator
    content: Diplodoc Platform v5.71.0
alternate:
  - https://ydb.tech/docs/en/reference/ydb-cli/yql-query-overview.md?version=v26.3
  - https://ydb.tech/docs/ru/reference/ydb-cli/yql-query-overview.md?version=v26.3
  - href: https://ydb.tech/docs/en/reference/ydb-cli/yql-query-overview.md?version=v26.3
    type: text/markdown
    title: Markdown version
  - href: https://ydb.tech/docs/en/llms.txt?revision=962422e645f28cc9d83f45f9bb5846da6ee2ca46&version=v26.3
    rel: describedby
sourcePath: en/core/reference/ydb-cli/yql-query-overview.md
---
> **Documentation capabilities:** Search, read sources, and browse this documentation: [agent guide](https://ydb.tech/docs/docs-api/agent/overview?project=ydb-platform--ydb&lang=en&version=v26.3).

> **Documentation Index:** Fetch the complete configuration index at https://ydb.tech/docs/en/llms.txt?revision=962422e645f28cc9d83f45f9bb5846da6ee2ca46&version=v26.3

# Overview

You can use the following YDB CLI commands to run queries:

* [ydb sql](https://ydb.tech/docs/en/reference/ydb-cli/sql.md?version=v26.3): A single command to execute any SQL query supported by YDB.
* [ydb](https://ydb.tech/docs/en/reference/ydb-cli/interactive-cli.md?version=v26.3): Switches the console to interactive mode to execute queries.

[Query parameterization](https://ydb.tech/docs/en/reference/ydb-cli/parameterized-query-execution.md?version=v26.3) is explained separately.
