Solved: HTTP 404 when using CLI with Influx 1.8?

Trying to do a query against an open system (no user/password restriction):

❯ docker run influxdb:1.8 influx -host -type flux -database home -execute 'from(bucket: "evcc") |> range(start: -2d)'           
404 page not found
: 404 Not Found

Running the same query in Chronograf against that DB works fine and produces this URL in the browser console:

I’m stumped why the query always returns 404?

Solved using Flux not working with InfluxDB 1.8