Docs

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

FlagDescriptionInput type
-b, --bucketThe name of destination bucketstring
--bucket-idThe ID of destination bucketstring
-h, --helpHelp for the write command
-o, --orgThe name of the organization that owns the bucketstring
--org-idThe ID of the organization that owns the bucketstring
-p, --precisionPrecision of the timestamps of the lines (default ns)string

Global flags

Global flagDescriptionInput type
--hostHTTP address of InfluxDB (default http://localhost:9999)string
--localRun commands locally against the filesystem
-t, --tokenAPI token to be used throughout client callsstring