From 429eea917b58a520978a2bedc69ab14e05a5cae4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 Aug 2025 13:55:02 +0000 Subject: [PATCH 1/3] Initial plan From 182f346a4bcd9d04637e997be85ac7ec04237954 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 Aug 2025 14:07:47 +0000 Subject: [PATCH 2/3] feat: add Windows environment variable instructions for INFLUXDB3_AUTH_TOKEN Co-authored-by: jstirnaman <212227+jstirnaman@users.noreply.github.com> --- content/shared/influxdb3-get-started/setup.md | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/content/shared/influxdb3-get-started/setup.md b/content/shared/influxdb3-get-started/setup.md index 3024c6f743..a0e2216355 100644 --- a/content/shared/influxdb3-get-started/setup.md +++ b/content/shared/influxdb3-get-started/setup.md @@ -486,6 +486,14 @@ In your command, replace {{% code-placeholder-key %}}`YOUR_AUTH_TOKEN`{{% /code- Set the `INFLUXDB3_AUTH_TOKEN` environment variable to have the CLI use your token automatically: +{{< tabs-wrapper >}} +{{% tabs %}} +[macOS and Linux](#) +[PowerShell](#) +[CMD](#) +{{% /tabs %}} +{{% tab-content %}} + {{% code-placeholders "YOUR_AUTH_TOKEN" %}} ```bash export INFLUXDB3_AUTH_TOKEN=YOUR_AUTH_TOKEN @@ -495,6 +503,28 @@ export INFLUXDB3_AUTH_TOKEN=YOUR_AUTH_TOKEN {{% /tab-content %}} {{% tab-content %}} +{{% code-placeholders "YOUR_AUTH_TOKEN" %}} +```powershell +$env:INFLUXDB3_AUTH_TOKEN = "YOUR_AUTH_TOKEN" +``` +{{% /code-placeholders %}} + +{{% /tab-content %}} +{{% tab-content %}} + +{{% code-placeholders "YOUR_AUTH_TOKEN" %}} +```cmd +set INFLUXDB3_AUTH_TOKEN=YOUR_AUTH_TOKEN +# Make sure to include a space character at the end of this command. +``` +{{% /code-placeholders %}} + +{{% /tab-content %}} +{{< /tabs-wrapper >}} + +{{% /tab-content %}} +{{% tab-content %}} + Include the `--token` option with CLI commands: {{% code-placeholders "YOUR_AUTH_TOKEN" %}} From 0ea9ca8fe2baa953d3cd1f3d90206064dbf4258a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 Aug 2025 14:54:32 +0000 Subject: [PATCH 3/3] refactor: update to new code-placeholders syntax Co-authored-by: jstirnaman <212227+jstirnaman@users.noreply.github.com> --- content/shared/influxdb3-get-started/setup.md | 24 +++++-------------- 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/content/shared/influxdb3-get-started/setup.md b/content/shared/influxdb3-get-started/setup.md index a0e2216355..d3fdc280ff 100644 --- a/content/shared/influxdb3-get-started/setup.md +++ b/content/shared/influxdb3-get-started/setup.md @@ -445,12 +445,10 @@ influxdb3 create token --admin {{% /code-tab-content %}} {{% code-tab-content %}} -{{% code-placeholders "CONTAINER_NAME" %}} -```bash +```bash { placeholders="CONTAINER_NAME" } # 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. @@ -494,30 +492,24 @@ token automatically: {{% /tabs %}} {{% tab-content %}} -{{% code-placeholders "YOUR_AUTH_TOKEN" %}} -```bash +```bash { placeholders="YOUR_AUTH_TOKEN" } export INFLUXDB3_AUTH_TOKEN=YOUR_AUTH_TOKEN ``` -{{% /code-placeholders %}} {{% /tab-content %}} {{% tab-content %}} -{{% code-placeholders "YOUR_AUTH_TOKEN" %}} -```powershell +```powershell { placeholders="YOUR_AUTH_TOKEN" } $env:INFLUXDB3_AUTH_TOKEN = "YOUR_AUTH_TOKEN" ``` -{{% /code-placeholders %}} {{% /tab-content %}} {{% tab-content %}} -{{% code-placeholders "YOUR_AUTH_TOKEN" %}} -```cmd +```cmd { placeholders="YOUR_AUTH_TOKEN" } set INFLUXDB3_AUTH_TOKEN=YOUR_AUTH_TOKEN # Make sure to include a space character at the end of this command. ``` -{{% /code-placeholders %}} {{% /tab-content %}} {{< /tabs-wrapper >}} @@ -527,23 +519,19 @@ set INFLUXDB3_AUTH_TOKEN=YOUR_AUTH_TOKEN Include the `--token` option with CLI commands: -{{% code-placeholders "YOUR_AUTH_TOKEN" %}} -```bash +```bash { placeholders="YOUR_AUTH_TOKEN" } influxdb3 show databases --token YOUR_AUTH_TOKEN ``` -{{% /code-placeholders %}} {{% /tab-content %}} {{< /tabs-wrapper >}} For HTTP API requests, include your token in the `Authorization` header--for example: -{{% code-placeholders "YOUR_AUTH_TOKEN" %}} -```bash +```bash { placeholders="YOUR_AUTH_TOKEN" } curl "http://{{< influxdb/host >}}/api/v3/configure/database" \ --header "Authorization: Bearer YOUR_AUTH_TOKEN" ``` -{{% /code-placeholders %}} #### Learn more about tokens and permissions