Merge pull request #1083 from influxdata/cli/stack-export

Influx stack export command
pull/1100/head
Scott Anderson 2020-06-02 14:53:38 -06:00 committed by GitHub
commit 85c54a50b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 1 deletions

View File

@ -1,7 +1,7 @@
---
title: influx pkg export all
description: >
The 'influx pkg' command exports all resources in an organization as an InfluxDB template.
The 'influx pkg all' command exports all resources in an organization as an InfluxDB template.
menu:
v2_0_ref:
parent: influx pkg export

View File

@ -0,0 +1,28 @@
---
title: influx pkg export stack
description: >
The 'influx pkg export stack' command exports all resources in an organization as an InfluxDB template.
menu:
v2_0_ref:
parent: influx pkg export
weight: 201
---
The `influx pkg export stack` command exports all resources associated with a
stack in their current state.
All `metadata.name` fields remain the same.
## Usage
```
influx pkg export stack <stack_id> [flags]
```
## Flags
| Flag | Description | Input Type | {{< cli/mapped >}} |
|:---- |:----------- |:---------- |:------------------ |
| `-f`, `--file` | Template output file. Defaults to stdout. Use `.yml` or `.json` file extensions. | string | |
| `-h`, `--help` | Help for the `export stack` command | | |
| `-o`, `--org` | Organization name that owns the resources | string | `INFLUX_ORG` |
| `--org-id` | Organization ID that owns the resources | string | `INFLUX_ORG_ID` |
{{% cli/influx-global-flags %}}