2025-03-14 21:59:59 -06:00
|
|
|
# influx
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
> InfluxDB v1 client.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://docs.influxdata.com/influxdb/v1/tools/influx-cli/use-influx-cli/>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Connect to an InfluxDB running on localhost with no credentials:
|
|
|
|
|
|
|
|
|
|
`influx`
|
|
|
|
|
|
|
|
|
|
- Connect with a specific username (will prompt for a password):
|
|
|
|
|
|
|
|
|
|
`influx -username {{username}} -password ""`
|
|
|
|
|
|
|
|
|
|
- Connect to a specific host:
|
|
|
|
|
|
|
|
|
|
`influx -host {{hostname}}`
|
|
|
|
|
|
|
|
|
|
- Use a specific database:
|
|
|
|
|
|
|
|
|
|
`influx -database {{database_name}}`
|
|
|
|
|
|
|
|
|
|
- Execute a given command:
|
|
|
|
|
|
|
|
|
|
`influx -execute "{{influxql_command}}"`
|
|
|
|
|
|
|
|
|
|
- Return output in a specific format:
|
|
|
|
|
|
|
|
|
|
`influx -execute "{{influxql_command}}" -format {{json|csv|column}}`
|