How to export data for some period?

How to export data for some period?
I tried this command:
influx_inspect EXPORT -compress

That’s the result:

ERR: error parsing query: found influx_inspect, expected SELECT, DELETE, SHOW, CREATE, DROP, EXPLAIN, GRANT, REVOKE, ALTER, SET, KILL at line 1, char 1