InfluxDB Docs

influx pkg

The influx pkg command manages InfluxDB templates.


influx pkg [flags]
influx pkg [command]


exportExport resources as a template
stackManage stacks
summarySummarize the specified template
validateValidate the specified template


FlagDescriptionInput TypeMaps to ?
-c, --disable-colorDisable color in output
--disable-table-bordersDisable table borders
-e, --encodingEncoding of the input streamstring
--env-refEnvironment references to provide with the template (format: --env-ref=REF_KEY=REF_VALUE)string
-f, --filePath to template filestring
--forceIgnore warnings about destructive changes
-h, --helpHelp for the pkg command
-o, --orgOrganization name that owns the bucketstringINFLUX_ORG
--org-idOrganization ID that owns the bucketstringINFLUX_ORG_ID
-q, --quietDisable output printing
-R, --recurseRecurse through files in the directory specified in -f, --file
--secretSecrets to provide with the template (format: --secret=SECRET_KEY=SECRET_VALUE)string
-u, --urlURL of template filestring

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