# Influx cli problem with InfluxDB2.6

**URL:** <https://community.influxdata.com/t/influx-cli-problem-with-influxdb2-6/29444>\
**Category:** InfluxDB 2\
**Tags:** influxdb\
**Created:** [April 11, 2023, 2:37am UTC](https://community.influxdata.com/t/influx-cli-problem-with-influxdb2-6/29444 "2023-04-11T02:37:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![y1y100](https://avatars.discourse-cdn.com/v4/letter/y/a9adbd/32.png) [@y1y100](https://community.influxdata.com/u/y1y100)\
**Post date:** [April 11, 2023, 2:37am UTC](https://community.influxdata.com/t/influx-cli-problem-with-influxdb2-6/29444/1 "2023-04-11T02:37:42Z")

</div>

Hi,When I Use InfluxDB2.6,after I Install Influx cli influxdb2-client-2.6.1 with this command

influx config create --config-name   
–host-url [http://localhost:8086](http://localhost:8086)   
–org   
–token   
–active

The org、token info is no problem  
but after excute this command,I can not get any bucket info ,such like this:  
[root@dev influxdb2-client-2.6.1-linux-amd64]# ./influx bucket list  
ID Name Retention Shard group duration Organization ID Schema Type  
[root@dev influxdb2-client-2.6.1-linux-amd64]# ./influx query ‘from(bucket:“query\_data”) |\> range(start:-100h)’  
Error: failed to execute query: 404 Not Found: failed to initialize execute state: could not find bucket “query\_data”

how can I solve this peoblem?thanks.

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [April 14, 2023, 8:45pm UTC](https://community.influxdata.com/t/influx-cli-problem-with-influxdb2-6/29444/2 "2023-04-14T20:45:12Z")

</div>

Hello @y1y100,  
Are you using an all access token?  
Can you try recreating the config with a new all-access token please?

How did you create the bucket query\_data?

Thank you
