add edits f Russ

pull/1387/head
Kelly 2020-08-28 11:31:04 -07:00 committed by Scott Anderson
parent 5c3e516e72
commit 9d3572bdae
1 changed files with 24 additions and 11 deletions

View File

@ -145,14 +145,23 @@ If you're running `influx` on macOS Catalina, you must [manually authorize the I
To avoid having to pass your InfluxDB [authentication token](/v2.0/users/tokens/) with each `influx` command, set up a configuration profile that stores your credentials.
- In a terminal, run the following command: `influx config create -n default -u $INFLUX_URL -o $INFLUX_ORG -t $INFLUX_TOKEN -a`.
This configures a new profile named `default` and makes the profile active so your `influx` CLI commands run against this instance.
In a terminal, run the following command:
```sh
# Set up a configuration profile
influx config create -n default \
-u http://localhost:9999 \
-o example-org \
-t mySuP3rS3cr3tT0keN \
-a
```
For more detail, see [influx config](https://v2.docs.influxdata.com/v2.0/reference/cli/influx/config/).
This configures a new profile named `default` and makes the profile active so your `influx` CLI commands run against this instance.
For more detail, see [influx config](https://v2.docs.influxdata.com/v2.0/reference/cli/influx/config/).
#### Step 6: Learn `influx` CLI commands
To see all available `influx` commands, check out [influx - InfluxDB command line interface](https://v2.docs.influxdata.com/v2.0/reference/cli/influx/).
To see all available `influx` commands, type `influx -h` or check out [influx - InfluxDB command line interface](https://v2.docs.influxdata.com/v2.0/reference/cli/influx/).
{{% /tab-content %}}
<!--------------------------------- END macOS --------------------------------->
@ -525,14 +534,18 @@ You are ready to [write or collect data](/v2.0/write-data).
If you set up InfluxDB through the UI and want to use the [`influx` CLI](/v2.0/reference/cli/influx), we recommend setting up a configuration profile. This lets you avoid having to pass your InfluxDB [authentication token](/v2.0/users/tokens/) with each `influx` command. Complete the following steps to set up a configuration profile that stores your credentials.
1. In a terminal, run the following command:
```sh
influx config create -n default -u $INFLUX_URL -o $INFLUX_ORG -t $INFLUX_TOKEN -a
```
This configures a new profile named `default` and makes the profile active so your `influx` CLI commands run against this instance.
```sh
# Set up a configuration profile
influx config create -n default \
-u http://localhost:9999 \
-o example-org \
-t mySuP3rS3cr3tT0keN \
-a
```
This configures a new profile named `default` and makes the profile active so your `influx` CLI commands run against this instance. For more detail, see [influx config](https://v2.docs.influxdata.com/v2.0/reference/cli/influx/config/).
For more detail, see [influx config](https://v2.docs.influxdata.com/v2.0/reference/cli/influx/config/).
2. Learn `influx` CLI commands. To see all available `influx` commands, check out [influx - InfluxDB command line interface](https://v2.docs.influxdata.com/v2.0/reference/cli/influx/).
2. Learn `influx` CLI commands. To see all available `influx` commands, type `influx -h` or check out [influx - InfluxDB command line interface](https://v2.docs.influxdata.com/v2.0/reference/cli/influx/).
{{% /tab-content %}}
<!-------------------------------- END UI Setup ------------------------------->