influx export stack

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

Usage

  1. influx export stack <stack_id> [flags]

Flags

FlagDescriptionInput TypeMaps to ?
-c—active-configCLI configuration to use for commandstring
—configs-pathPath to influx CLI configurations (default ~/.influxdbv2/configs)stringINFLUX_CONFIGS_PATH
-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:8086)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

Examples

  1. # Export a stack as a template
  2. influx export stack $STACK_ID