Unable to perform query

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

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

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