docs-v2/content/influxdb/v2.0/reference/cli/influx/write/_index.md

4.0 KiB

title description menu weight influxdb/v2.0/tags related
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.
influxdb_2_0_ref
name parent
influx write influx
101
write
/influxdb/v2.0/write-data/
/influxdb/v2.0/write-data/csv/

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

Usage

influx write [flags]
influx write [command]

Subcommands

Subcommand Description
dryrun Write to stdout instead of InfluxDB

Flags

Flag Description Input type {{< cli/mapped >}}
-c --active-config CLI configuration to use for command string
-b --bucket Bucket name string INFLUX_BUCKET_NAME
--bucket-id Bucket ID string INFLUX_BUCKET_ID
--configs-path Path to influx CLI configurations (default ~/.influxdbv2/configs) string INFLUX_CONFIGS_PATH
--debug Output errors to stderr
--encoding Character encoding of input (default UTF-8) string
--error-file Path to a file used for recording rejected row errors string
-f --file File to import string
--format Input format (lp or csv, default lp) string
--header Prepend header line to CSV input data string
-h --help Help for the dryrun command
--host HTTP address of InfluxDB (default http://localhost:9999) string INFLUX_HOST
-o --org Organization name string INFLUX_ORG
--org-id Organization ID string INFLUX_ORG_ID
-p --precision Precision of the timestamps (default ns) string INFLUX_PRECISION
--skipHeader Skip first n rows of input data integer
--skipRowOnError Output CSV errors to stderr, but continue processing
--skip-verify Skip TLS certificate verification
-t --token Authentication token string INFLUX_TOKEN
-u --url URL to import data from string