add example to show string w quotes

pull/1299/head
Kelly 2020-08-12 14:03:08 -07:00
parent 62f9a45118
commit 19aa60160d
1 changed files with 15 additions and 3 deletions

View File

@ -35,10 +35,22 @@ influx stacks init [flags]
| `-t` | `--token` | Authentication token | string | `INFLUX_TOKEN` |
## Examples
### Initialize a stack with a name and description
```sh
# Initialize a stack with a name and description
# Use environment variables
influx stack init -n $STACK_NAME -d $STACK_DESCRIPTION
# Initialize a stack with a name and urls to associate with stack.
influx stack init -n $STACK_NAME -u $PATH_TO_TEMPLATE
# Use strings
influx stack init -n "Example Stack" -d "InfluxDB stack for monitoring some awesome stuff"
```
### Initialize a stack with a name and urls to associate with the stack
```sh
# Use environment variables
influx stack init -n $STACK_NAME -u $PATH_TO_TEMPLATE
# Use strings
influx stack init -n "Example Stack" -u https://example.com/template-1.yml
```