How run Influx cli on a windows machine

Hi, I followed all instructions at Install
InfluxDB | InfluxDB OSS 2.1 Documentation for Windows)
as well as the influx cli.
I can access InfluxDB at localhost:8086 in the browser and logged in. However, when I run the influx cli in powershell or commandline, I never get connected and always get the help menu displayed as you can notice in the snapshots.
I doubted that it was a firewall issue so I disabled firewall, but same results.

I tried to create a config file as follows

.\influx config create -n default -u http://localhost:8086 -o sierac-org -t mySuP3rS3cr3tT0keN -a

Then issued
.\influx.exe --active-config default

no way, I never could connect to InfluxDB.

In fact I am trying to follow a tutorial and need to create a database, I browsed the UI in the browser, was not able to find where I can create a database.

Thanks for your help

Snapshots:

1 Like