InfluxDB Docs

influx transpile – Transpile InfluxQL to Flux

The influx transpile command transpiles an InfluxQL query to Flux source code. The transpiled query assumes the bucket name is <database>/<retention policy> and includes absolute time ranges using the provided --now time.

Usage

influx transpile [InfluxQL query] [flags]

Flags

FlagDescription
-h, --helpHelp for the transpile command
--nowRFC3339Nano timestamp to use as now() time (default is current UTC time)

Global Flags

FlagDescriptionInput type
--hostHTTP address of InfluxDB (default http://localhost:9999)string
--localRun commands against the local filesystem
--skip-verifySkip certificate verification (use when connecting over TLS with a self-signed certificate)
-t, --tokenAPI token to use in client callsstring