From b779bec0859d89ee6a112a9224454217b20afaa2 Mon Sep 17 00:00:00 2001 From: Rudy Celekli Date: Sat, 21 Nov 2026 03:40:42 -0500 Subject: [PATCH 1/2] docs(config): explain when CI bypasses the credentials file --- DOCUMENTATION.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index 7a09553d..a293b11e 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -1119,7 +1119,7 @@ Print a shell completion script (shell auto-detected from `$SHELL`), for example ### Profiles & credentials -Credentials live at `~/.testsprite/credentials` (INI-style, mode `0600`) — one section per profile. A credentials file resaved as UTF-16 (Windows PowerShell 5.1 `>` / `Out-File`, or Notepad's "Unicode") is still read, and the next save writes it back as UTF-8. **Profile resolution order** (highest first): `--profile` flag → `TESTSPRITE_PROFILE` env → `default`. Within a profile, the `TESTSPRITE_API_KEY` / `TESTSPRITE_API_URL` env vars override the file, so CI can run without ever touching `~/.testsprite/credentials`. +Credentials live at `~/.testsprite/credentials` (INI-style, mode `0600`) — one section per profile. A credentials file resaved as UTF-16 (Windows PowerShell 5.1 `>` / `Out-File`, or Notepad's "Unicode") is still read, and the next save writes it back as UTF-8. **Profile resolution order** (highest first): `--profile` flag → `TESTSPRITE_PROFILE` env → `default`. Within a profile, `TESTSPRITE_API_KEY` and `TESTSPRITE_API_URL` override values from the file. To run without reading the credentials file, set both variables, or set `TESTSPRITE_API_KEY` and pass `--endpoint-url`. With an API key alone, the CLI can still read the selected profile to resolve its endpoint. ### Global flags From 9947d3270c3fdded03e4366cdc420c664f1dfc08 Mon Sep 17 00:00:00 2001 From: Zeshi Du Date: Mon, 23 Nov 2026 18:53:14 -0800 Subject: [PATCH 2/2] docs(auth): note the skill-install warning still looks at the credentials file --- DOCUMENTATION.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index 50aaeaf0..8d14b3a8 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -1123,7 +1123,7 @@ Print a shell completion script (shell auto-detected from `$SHELL`), for example ### Profiles & credentials -Credentials live at `~/.testsprite/credentials` (INI-style, mode `0600`) — one section per profile. A credentials file resaved as UTF-16 (Windows PowerShell 5.1 `>` / `Out-File`, or Notepad's "Unicode") is still read, and the next save writes it back as UTF-8. **Profile resolution order** (highest first): `--profile` flag → `TESTSPRITE_PROFILE` env → `default`. Within a profile, `TESTSPRITE_API_KEY` and `TESTSPRITE_API_URL` override values from the file. To run without reading the credentials file, set both variables, or set `TESTSPRITE_API_KEY` and pass `--endpoint-url`. With an API key alone, the CLI can still read the selected profile to resolve its endpoint. +Credentials live at `~/.testsprite/credentials` (INI-style, mode `0600`) — one section per profile. A credentials file resaved as UTF-16 (Windows PowerShell 5.1 `>` / `Out-File`, or Notepad's "Unicode") is still read, and the next save writes it back as UTF-8. **Profile resolution order** (highest first): `--profile` flag → `TESTSPRITE_PROFILE` env → `default`. Within a profile, `TESTSPRITE_API_KEY` and `TESTSPRITE_API_URL` override values from the file. To resolve the key and endpoint without reading the credentials file, set both variables, or set `TESTSPRITE_API_KEY` and pass `--endpoint-url`. In text output, `run` and `auth status` still look at the file for the skill-install warning; `TESTSPRITE_NO_SKILL_WARNING=1` or `--output json` skips that. With an API key alone, the CLI can still read the selected profile to resolve its endpoint. ### Global flags