Unable to perform query

Hi, I’m trying to run a flux query as described here:

https://docs.influxdata.com/influxdb/v2.0/query-data/execute-queries/influx-query/
https://docs.influxdata.com/influxdb/v2.0/reference/cli/influx/query/

Copying exactly from the docs, this is the result when I run it:

└─► influx query 'from(bucket:"example-bucket") |> range(start:-1m)'
unknown arguments: query from(bucket:"example-bucket") |> range(start:-1m)
Usage of influx:
[... and so on]

Any idea what I’m going wrong? Thanks!

Not sure if those are meant to be run verbatim or not. Quite a lot has changed.

These are sample datasets that should work exactly as per the examples

https://docs.influxdata.com/influxdb/v2.0/reference/sample-data/

If you have any related questions on this, feel free to reply on this thread.