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 ```