InfluxDB Docs

influx export stack

The influx export stack command exports all resources associated with a stack as a template. All fields remain the same.


influx export stack <stack_id> [flags]


FlagDescriptionInput TypeMaps to ?
-f--fileTemplate output file. Defaults to stdout. Use .yml or .json file extensions.string
-h--helpHelp for the export stack command
--hostHTTP address of InfluxDB (default http://localhost:9999)stringINFLUX_HOST
-o--orgOrganization name that owns the resourcesstringINFLUX_ORG
--org-idOrganization ID that owns the resourcesstringINFLUX_ORG_ID
--skip-verifySkip TLS certificate verification
-t--tokenAuthentication tokenstringINFLUX_TOKEN


# Export a stack as a template
influx export stack $STACK_ID

New! Cloud or OSS?