diff --git a/content/shared/v3-core-get-started/_index.md b/content/shared/v3-core-get-started/_index.md index 079c10b70..09e6ab1d4 100644 --- a/content/shared/v3-core-get-started/_index.md +++ b/content/shared/v3-core-get-started/_index.md @@ -252,28 +252,30 @@ To have the `influxdb3` CLI use your admin token automatically, assign it to the To create an admin token, use the `influxdb3 create token --admin` subcommand--for example: -{{% code-placeholders "INFLUXDB_HOST|CONTAINER_NAME" %}} - {{< code-tabs-wrapper >}} {{% code-tabs %}} [CLI](#) [Docker](#) {{% /code-tabs %}} - {{% code-tab-content %}} + ```bash influxdb3 create token --admin \ --host http://INFLUXDB_HOST ``` -{{% /code-tab-content %}} +{{% /code-tab-content %}} {{% code-tab-content %}} +{{% code-placeholders "CONTAINER_NAME" %}} ```bash # With Docker — in a new terminal: docker exec -it CONTAINER_NAME influxdb3 create token --admin ``` +{{% /code-placeholders %}} + +Replace {{% code-placeholder-key %}}`CONTAINER_NAME`{{% /code-placeholder-key %}} with the name of your running Docker container. {{% /code-tab-content %}} @@ -284,8 +286,6 @@ Replace the following: - {{% code-placeholder-key %}}`INFLUXDB_HOST`{{% /code-placeholder-key %}}: Host address of your InfluxDB 3 server (for example, `localhost:8181`) - {{% code-placeholder-key %}}`CONTAINER_NAME`{{% /code-placeholder-key %}}: Name of your running Docker container -{{% /code-placeholders %}} - The command returns a token string that you can use to authenticate CLI commands and API requests. For more information, see how to [Manage admin tokens](/influxdb3/version/admin/tokens/admin/). diff --git a/content/shared/v3-enterprise-get-started/_index.md b/content/shared/v3-enterprise-get-started/_index.md index 71acde9a5..a37886a1e 100644 --- a/content/shared/v3-enterprise-get-started/_index.md +++ b/content/shared/v3-enterprise-get-started/_index.md @@ -282,35 +282,35 @@ To have the `influxdb3` CLI use your admin token automatically, assign it to the To create an admin token, use the `influxdb3 create token --admin` subcommand--for example: -{{% code-placeholders "INFLUXDB_HOST|CONTAINER_NAME" %}} - {{< code-tabs-wrapper >}} {{% code-tabs %}} [CLI](#) [Docker](#) {{% /code-tabs %}} - {{% code-tab-content %}} + ```bash influxdb3 create token --admin \ --host http://INFLUXDB_HOST ``` -{{% /code-tab-content %}} +{{% /code-tab-content %}} {{% code-tab-content %}} +{{% code-placeholders "CONTAINER_NAME" %}} ```bash # With Docker — in a new terminal: docker exec -it CONTAINER_NAME influxdb3 create token --admin ``` +{{% /code-placeholders %}} + +Replace {{% code-placeholder-key %}}`CONTAINER_NAME`{{% /code-placeholder-key %}} with the name of your running Docker container. {{% /code-tab-content %}} {{< /code-tabs-wrapper >}} -{{% /code-placeholders %}} - Replace the following: - {{% code-placeholder-key %}}`INFLUXDB_HOST`{{% /code-placeholder-key %}}: Host address of your InfluxDB 3 server (for example, `localhost:8181`)