influx export all
influx export all command exports all resources in an
organization as an InfluxDB template.
For detailed examples of exporting InfluxDB templates, see
Create an InfluxDB template.
To export resources as a template, you must use the Operator token created for the initial InfluxDB user or an All-Access token. For information about creating an All-Access token, see Create an authentication token.
influx export all [flags]
|Flag||Description||Input Type||Maps to ?|
|CLI configuration to use for command||string|
|Path to ||string|
|Template output file. Defaults to stdout. Use ||string|
|Specify resources to export by labelName or resourceKind (format: ||stringArray|
|Help for the |
|HTTP address of InfluxDB (default ||string|
|Inspect communication with InfluxDB servers.||string|
|Organization name that owns the resources (mutually exclusive with ||string|
|Organization ID that owns the resources (mutually exclusive with ||string|
|Skip TLS certificate verification|
The examples below assume your InfluxDB host, organization, and token are
provided by the active
influx CLI configuration.
If you do not have a CLI configuration set up, use the appropriate flags to provide these required credentials.
- Export all resources in an organization as a template
- Export all bucket resources as a template
- Export all resources associated with label Foo
- Export all bucket resources and with label Foo
- Export all bucket or dashboard resources with label Foo
Export all resources in an organization as a template
influx export all
Export all bucket resources as a template
influx export all --filter=resourceKind=Bucket
Export all resources associated with label Foo
influx export all --filter=labelName=Foo
Export all bucket resources and with label Foo
influx export all \ --filter=resourceKind=Bucket \ --filter=labelName=Foo
Export all bucket or dashboard resources with label Foo
influx export all \ --filter=resourceKind=Bucket \ --filter=resourceKind=Dashboard \ --filter=labelName=Foo
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, the following resources are available:
InfluxDB Cloud and InfluxDB Enterprise customers can contact InfluxData Support.