influx write – Write data to InfluxDB using the CLI
The influx write
writes a single line of line protocol to InfluxDB,
or adds an entire file specified with an @
prefix.
Usage
influx write [line protocol or @/path/to/points.txt] [flags]
Flags
Flag | Description | Input type |
---|---|---|
-b , --bucket | The name of destination bucket | string |
--bucket-id | The ID of destination bucket | string |
-h , --help | Help for the write command | |
-o , --org | The name of the organization that owns the bucket | string |
--org-id | The ID of the organization that owns the bucket | string |
-p , --precision | Precision of the timestamps of the lines (default ns ) | string |
Global Flags
Flag | Description | Input type |
---|---|---|
--host | HTTP address of InfluxDB (default http://localhost:9999 ) | string |
--local | Run commands against the local filesystem | |
--skip-verify | Skip certificate verification (use when connecting over TLS with a self-signed certificate) | |
-t , --token | API token to use in client calls | string |
Bug Reports and Feedback
Thank you for being willing to help test InfluxDB v2.0 alpha! Feedback and bug reports are welcome and encouraged both for InfluxDB and this documentation. Submit feedback using one of the following methods:
- Post in the InfluxData Community
- In the InfluxDB UI, click Feedback in the left navigation bar.
- Submit documentation issues to the InfluxDB 2.0 documentation repository.
- Submit InfluxDB issues to the InfluxDB repository.