--- title: Use the influxdb3 CLI to query data list_title: Use the influxdb3 CLI description: > Use the `influxdb3 query` command to query data in {{< product-name >}} with SQL. weight: 301 menu: influxdb3_core: parent: Execute queries name: Use the influxdb3 CLI influxdb3/core/tags: [query, sql, influxql, influxdb3, CLI] related: - /influxdb3/core/reference/cli/influxdb3/query/ - /influxdb3/core/reference/sql/ - /influxdb3/core/reference/influxql/ # - /influxdb3/core/get-started/query/#execute-an-sql-query, Get started querying data list_code_example: | ```sh influxdb3 query \ --database DATABASE_NAME \ "SELECT * FROM home" ``` source: /shared/influxdb3-query-guides/execute-queries/influxdb3-cli.md ---