1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-05 09:55:24 +02:00
tldr/pages/common/influx.md
Managor 23340cc6e0
common/*: reduce usage of "command-line" (part 1) (#16949)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2025-06-29 11:48:18 +03:00

623 B

influx

InfluxDB v1 client. More information: https://docs.influxdata.com/influxdb/v1/tools/influx-cli/use-influx-cli/.

  • 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}}