Merge pull request #118 from influxdata/ui-token-message
Using the CLI after running setup in the UIpull/122/head
commit
1762d7ed30
|
@ -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 {
|
||||
|
|
|
@ -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 %}}
|
||||
<!-------------------------------- END UI Setup ------------------------------->
|
||||
|
||||
|
|
|
@ -21,6 +21,27 @@ influx [flags]
|
|||
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, 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._
|
||||
|
||||
_**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._
|
||||
{{% /note %}}
|
||||
|
||||
## Commands
|
||||
| Command | Description |
|
||||
|:------- |:----------- |
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue