InfluxDB Docs

influx pkg export

The influx pkg export command exports existing resources as an InfluxDB template. For detailed examples of exporting InfluxDB templates, see Create an InfluxDB template.

Usage

influx pkg export [flags]
influx pkg export [command]

Available subcommands

SubcommandDescription
allExport all resources in an organization as a template

Flags

FlagDescriptionInput Type
--bucketsComma-separated list of bucket IDsstring
--checksComma-separated list of check IDsstring
--dashboardsComma-separated list of dashboard IDsstring
--endpointsComma-separated list of notification endpoint IDsstring
-f, --fileTemplate output file. Defaults to stdout. Use .yml or .json file extensions.string
-h, --helpHelp for the export command
--labelsComma-separated list of label IDsstring
--resource-typeResource type associated with all IDs via stdinstring
--rulesComma-separated list of notification rule IDsstring
--tasksComma-separated list of task IDsstring
--telegraf-configsComma-separated list of Telegraf configuration IDsstring
--variablesComma-separated list of variable IDsstring

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?