How to export data

I want to konw how to export data stored in InfluxDB.I want to export the data inside to csv format.I just found “influx export”,but it doesn’t seem to meet my needs

Hello @xdy,
I’m not sure if influx query returns data as CSV with the CLI, but here it is:
It looks hopeful though