From b6b075363b3d3695413ce7026ef5bf6cb19ffa93 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Mon, 1 Apr 2019 16:19:13 -0600 Subject: [PATCH 1/3] added information about using the CLI after running the setup in the UI, resolves #63 --- assets/styles/layouts/_layout-article.scss | 4 ++++ content/v2.0/get-started.md | 14 ++++++++++++++ content/v2.0/reference/cli/influx/_index.md | 14 ++++++++++++++ 3 files changed, 32 insertions(+) diff --git a/assets/styles/layouts/_layout-article.scss b/assets/styles/layouts/_layout-article.scss index 5c05bb237..63891adcd 100644 --- a/assets/styles/layouts/_layout-article.scss +++ b/assets/styles/layouts/_layout-article.scss @@ -280,6 +280,10 @@ border-style: solid; border-radius: 0 $border-radius $border-radius 0; font-size: .95rem; + + ul,ol { + &:last-child { margin-bottom: 1.85rem; } + } } blockquote { diff --git a/content/v2.0/get-started.md b/content/v2.0/get-started.md index 60ca21b2d..e7592f601 100644 --- a/content/v2.0/get-started.md +++ b/content/v2.0/get-started.md @@ -203,6 +203,20 @@ the `influx` command line interface (CLI). InfluxDB is now initialized with a primary user, organization, and bucket. You are ready to [collect data](/v2.0/collect-data). +{{% note %}} +#### Using the influx CLI after setting up InfluxDB through the UI +To use the [`influx` CLI](/v2.0/reference/cli/influx) after setting up InfluxDB through the UI, +use one of the following methods to provide your [authentication token](/v2.0/users/tokens/) to the CLI: + +1. Pass your token to the `influx` CLI using the `-t` or `--token` flag. +2. Set the `INFLUX_TOKEN` environment variable using your token. +3. Store your token in `~/.influxdbv2/credentials`. + _The content of the `credentials` file should be only your token._ + +_See [View tokens](/v2.0/users/tokens/view-tokens/) for information about +retrieving authentication tokens._ +{{% /note %}} + {{% /tab-content %}} diff --git a/content/v2.0/reference/cli/influx/_index.md b/content/v2.0/reference/cli/influx/_index.md index cae751a6f..fbc9063e0 100644 --- a/content/v2.0/reference/cli/influx/_index.md +++ b/content/v2.0/reference/cli/influx/_index.md @@ -21,6 +21,20 @@ influx [flags] influx [command] ``` +{{% note %}} +#### Using the influx CLI after setting up InfluxDB through the UI +To use the `influx` CLI after setting up InfluxDB through the UI, use one of the following +methods to provide your [authentication token](/v2.0/users/tokens/) to the CLI: + +1. Pass your token to the `influx` CLI using the `-t` or `--token` flag. +2. Set the `INFLUX_TOKEN` environment variable using your token. +3. Store your token in `~/.influxdbv2/credentials`. + _The content of the `credentials` file should be only your token._ + +_See [View tokens](/v2.0/users/tokens/view-tokens/) for information about +retrieving authentication tokens._ +{{% /note %}} + ## Commands | Command | Description | |:------- |:----------- | From 4dec94d2c5b1e54a1b60970e126e73aa7b8130f4 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Tue, 2 Apr 2019 07:39:01 -0600 Subject: [PATCH 2/3] updated token note in cli doc, updated influx setup title typo --- content/v2.0/reference/cli/influx/_index.md | 16 +++++++++------- .../v2.0/reference/cli/influx/setup/_index.md | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/content/v2.0/reference/cli/influx/_index.md b/content/v2.0/reference/cli/influx/_index.md index fbc9063e0..0afce37fe 100644 --- a/content/v2.0/reference/cli/influx/_index.md +++ b/content/v2.0/reference/cli/influx/_index.md @@ -22,14 +22,16 @@ influx [command] ``` {{% note %}} -#### Using the influx CLI after setting up InfluxDB through the UI -To use the `influx` CLI after setting up InfluxDB through the UI, use one of the following -methods to provide your [authentication token](/v2.0/users/tokens/) to the CLI: +#### Store your InfluxDB authentication token +To avoid having to pass your InfluxDB [authentication token](/v2.0/users/tokens/) +with each `influx` command, store your token using one of the following methods: -1. Pass your token to the `influx` CLI using the `-t` or `--token` flag. -2. Set the `INFLUX_TOKEN` environment variable using your token. -3. Store your token in `~/.influxdbv2/credentials`. - _The content of the `credentials` file should be only your token._ +1. Set the `INFLUX_TOKEN` environment variable using your token. +2. Store your token in `~/.influxdbv2/credentials`. + _The content of the `credentials` file should be only your token._ + + _**Note:** If you [set up InfluxDB using the CLI](/v2.0/reference/cli/influx/setup), + InfluxDB stores your token in the credentials files automatically._ _See [View tokens](/v2.0/users/tokens/view-tokens/) for information about retrieving authentication tokens._ diff --git a/content/v2.0/reference/cli/influx/setup/_index.md b/content/v2.0/reference/cli/influx/setup/_index.md index 7eecde178..4047e4f99 100644 --- a/content/v2.0/reference/cli/influx/setup/_index.md +++ b/content/v2.0/reference/cli/influx/setup/_index.md @@ -1,5 +1,5 @@ --- -title: influx setup – Run the initial Influx DB setup +title: influx setup – Run the initial InfluxDB setup description: > The 'influx setup' command walks through the initial InfluxDB setup process, creating a default user, organization, and bucket. From 1d894e1ce533c2007ad4a661fe3ea6a107074a1b Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Tue, 2 Apr 2019 08:06:36 -0600 Subject: [PATCH 3/3] added example of setting environment variable in cli doc, updated wording --- content/v2.0/reference/cli/influx/_index.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/content/v2.0/reference/cli/influx/_index.md b/content/v2.0/reference/cli/influx/_index.md index 0afce37fe..1f52fc294 100644 --- a/content/v2.0/reference/cli/influx/_index.md +++ b/content/v2.0/reference/cli/influx/_index.md @@ -24,9 +24,14 @@ influx [command] {{% note %}} #### Store your InfluxDB authentication token To avoid having to pass your InfluxDB [authentication token](/v2.0/users/tokens/) -with each `influx` command, store your token using one of the following methods: +with each `influx` command, use one of the following methods to store your token: 1. Set the `INFLUX_TOKEN` environment variable using your token. + + ```bash + export INFLUX_TOKEN=oOooYourAuthTokenOoooOoOO== + ``` + 2. Store your token in `~/.influxdbv2/credentials`. _The content of the `credentials` file should be only your token._