From 19aa60160d7bcc1a9c48ee8f20f72490a23f4e3c Mon Sep 17 00:00:00 2001 From: Kelly Date: Wed, 12 Aug 2020 14:03:08 -0700 Subject: [PATCH] add example to show string w quotes --- .../v2.0/reference/cli/influx/stacks/init.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/content/v2.0/reference/cli/influx/stacks/init.md b/content/v2.0/reference/cli/influx/stacks/init.md index b8945cabd..f65f50d5a 100644 --- a/content/v2.0/reference/cli/influx/stacks/init.md +++ b/content/v2.0/reference/cli/influx/stacks/init.md @@ -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 ```