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 API token, see Create an API 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 either the active
influx CLI configuration or by environment variables (
If you do not have a CLI configuration set up or the environment variables set, include these required credentials for each command with the following flags:
--host: InfluxDB host
--org-id: InfluxDB organization name or ID
-t, --token: InfluxDB API token
- 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
Was this page helpful?
Thank you for your feedback!
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, use the following resources:
InfluxDB Cloud and InfluxDB Enterprise customers can contact InfluxData Support.