InfluxDB Docs

influx write

The influx write command writes data to InfluxDB via stdin or from a specified file. Write data using line protocol or annotated CSV.


influx write [flags]
influx write [command]


dryrunWrite to stdout instead of InfluxDB


FlagDescriptionInput typeMaps to ?
-b, --bucketBucket namestringINFLUX_BUCKET_NAME
--bucket-idBucket IDstringINFLUX_BUCKET_ID
-f, --fileFile to importstring
--formatInput format (lp or csv, default lp)string
-h, --helpHelp for the dryrun command
-o, --orgOrganization namestringINFLUX_ORG
--org-idOrganization IDstringINFLUX_ORG_ID
-p, --precisionPrecision of the timestamps (default ns)stringINFLUX_PRECISION

Global Flags

FlagDescriptionInput typeMaps to ?
--hostHTTP address of InfluxDB (default http://localhost:9999)stringINFLUX_HOST
--localRun commands against the local filesystem
--skip-verifySkip certificate verification (use when connecting over TLS with a self-signed certificate)
-t, --tokenAPI token to use in client callsstringINFLUX_TOKEN

New! Cloud or OSS?