Windows keyring error recommends cf auth login --use-keyring, which isn't a valid option
Los mantenedores suelen responder en 1 día
@petebacondarwin ya está trabajando en esto.
Desde el 19/10/2026.
- #359 de @petebacondarwin — fusionado
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- nodejs, typescript
- Área
- authentication, cli
Línea de trabajo
Start from windowsBindingMissingMessage and secretToolMissingMessage in the shared workers-auth code, which build the cf auth login --use-keyring advice, and from setKeyringPreference, which no command exposes. Reproduce with CLOUDFLARE_AUTH_USE_KEYRING=true and no @napi-rs/keyring installed. Done means the message points only at options cf actually accepts, and that choice is agreed with maintainers first.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary of the issue
On Windows, when CLOUDFLARE_AUTH_USE_KEYRING=true is set and @napi-rs/keyring isn't installed, any non-interactive auth command fails with:
Run `cf auth login --use-keyring` interactively to install it automatically, …
Or disable keyring storage: `cf auth login --no-use-keyring`.
cf auth login doesn't define --use-keyring or --useKeyring, so following the advice gives an unknown-argument error. The text comes from windowsBindingMissingMessage(loginCommand) in the shared workers-auth code, and the flag only exists in wrangler. In cf, keyring storage is controlled only by CLOUDFLARE_AUTH_USE_KEYRING or the stored keyring_enabled preference. setKeyringPreference exists, but no command exposes it. secretToolMissingMessage (Linux) has the same problem.
Related:
- The fallback lookup uses
npm root -g, so a global install made through Volta (and probably other version managers) is never found, even though the message suggestsnpm install -g. defaultNpmRunnerusesshell: trueonly on win32, which triggers Node 26's DEP0190 warning.
Expected behaviour
Suggested fix:
either add --use-keyring/--useKeyring to cf auth login, or pass cf-specific wording, such as setting CLOUDFLARE_AUTH_USE_KEYRING, into these messages.
Version of cf used
v1.0.0-beta.17
System information and package versions
Windows 10
Node 26.1.0
npm: 11.17.0
Reproduction (optional)
Run in PowerShell:
$env:CLOUDFLARE_AUTH_USE_KEYRING="true"; cf auth whoami < NUL
Relevant error logs (optional)
No response
- Lenguaje dominante
- TypeScript
- Estrellas
- 960
- Forks
- 62
- Merge medio
- 17 h 15 min
- PR fusionados (30 d)
- 194
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de cloudflare/cf
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
cloudflare/cf#344 ·
Los mantenedores suelen responder en 1 día
-
upstream
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
cloudflare/cf#262 ·
Los mantenedores suelen responder en 1 día
-
`cf dev` rejects `--port` and `--host` for Vite projects, including the `cf init` templatePosiblemente ocupada @jamesopstad la tomó hace 17 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
cloudflare/cf#223 · 2 asignados ·
Los mantenedores suelen responder en 1 día
-
upstream
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
cloudflare/cf#179 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
cloudflare/cf#458 ·
Los mantenedores suelen responder en 1 día
Todos los issues de cloudflare/cf
Issues similares
-
Replace discontinued crypto-js in the themePosiblemente ocupada @aelmanaa la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
PaloAltoNetworks/docusaurus-openapi-docs#1689 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
solana-foundation/solana-web3.js#4015 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
formatSearchQuery drops the :present modifier, so `email:present=true` is sent as `email=true`Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 1/5 1-3 horas Aptitud para principiantes 90/100
ivopogace/opencode-courier#422 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
chapel-lang/chapel-vscode#158 ·
Los mantenedores suelen responder en 1 día