# Get data using the command line interface

**URL:** <https://community.influxdata.com/t/get-data-using-the-command-line-interface/18760>\
**Category:** InfluxDB 2\
**Created:** [March 8, 2021, 4:01pm UTC](https://community.influxdata.com/t/get-data-using-the-command-line-interface/18760 "2021-03-08T16:01:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michiel](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@Michiel](https://community.influxdata.com/u/Michiel)\
**Post date:** [March 8, 2021, 4:01pm UTC](https://community.influxdata.com/t/get-data-using-the-command-line-interface/18760/1 "2021-03-08T16:01:23Z")

</div>

Hi,

I could use this command in influx 1.8 to get data from the database using the command line:  
SELECT \* FROM users WHERE username= test  
what is the equivalent of this command line in influx 2.0 or is it no longer possible to use the command line interface to receive data from the buckets?

---

<div class="post-metadata">

**Author:** ![Franky1](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/franky1/32/6666_2.png) [@Franky1](https://community.influxdata.com/u/Franky1)\
**Post date:** [March 8, 2021, 4:08pm UTC](https://community.influxdata.com/t/get-data-using-the-command-line-interface/18760/2 "2021-03-08T16:08:23Z")

</div>

> **[Different ways to query InfluxDB | InfluxDB OSS 2.6 Documentation](https://docs.influxdata.com/influxdb/v2.0/query-data/execute-queries/)**
>
> There are multiple ways to query data from InfluxDB including the InfluxDB UI, CLI, and API.

---

<div class="post-metadata">

**Author:** ![Michiel](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@Michiel](https://community.influxdata.com/u/Michiel)\
**Post date:** [March 8, 2021, 4:12pm UTC](https://community.influxdata.com/t/get-data-using-the-command-line-interface/18760/3 "2021-03-08T16:12:20Z")

</div>

Thank you, that is what I was looking for!
