diff --git a/content/v2.0/reference/cli/influx/transpile/_index.md b/content/v2.0/reference/cli/influx/transpile/_index.md index 4e7d94de0..5e19d0538 100644 --- a/content/v2.0/reference/cli/influx/transpile/_index.md +++ b/content/v2.0/reference/cli/influx/transpile/_index.md @@ -19,8 +19,23 @@ and includes absolute time ranges using the provided `--now` time. influx transpile [InfluxQL query] [flags] ``` +{{% note %}} +The provided InfluxQL query must contain a database and measurement and must be valid InfluxQL. +See the [InfluxQL documentation](https://docs.influxdata.com/influxdb/latest/query_language/) for more information. +{{% /note %}} + ## Flags | Flag | | Description | |:---- |:--- |:----------- | | `-h` | `--help` | Help for the `transpile` command | | | `--now` | RFC3339Nano timestamp to use as `now()` time (default is current UTC time) | + +## Examples +```sh +## Transpile an InfluxQL query that specifies the database, +## retention policy, and measurement. +influx transpile 'SELECT example-field FROM db.rp.measurement' + +## Transpile InfluxQL query using default retention policy +influx transpile 'SELECT example-field FROM db..measurement' +```