mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-19 12:01:26 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
33
tldr/influx
Normal file
33
tldr/influx
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# influx
|
||||
|
||||
> InfluxDB command-line client.
|
||||
> More information: <https://docs.influxdata.com/influxdb/v1.7/tools/shell/>.
|
||||
|
||||
- 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}}`
|
||||
Reference in New Issue
Block a user