diff --git a/Library/Homebrew/env_config.rb b/Library/Homebrew/env_config.rb
index 82adde4d39..cbf4b66514 100644
--- a/Library/Homebrew/env_config.rb
+++ b/Library/Homebrew/env_config.rb
@@ -204,7 +204,7 @@ module Homebrew
},
HOMEBREW_DOCKER_REGISTRY_TOKEN: {
description: "Use this bearer token for authenticating with a Docker registry proxying GitHub Packages. " \
- "Preferred over HOMEBREW_DOCKER_REGISTRY_TOKEN_BASIC.",
+ "Preferred over HOMEBREW_DOCKER_REGISTRY_BASIC_AUTH_TOKEN.",
},
HOMEBREW_GITHUB_PACKAGES_USER: {
description: "Use this username when accessing the GitHub Packages Registry (where bottles may be stored).",
diff --git a/docs/Manpage.md b/docs/Manpage.md
index f2ba7eb44f..e45396c22e 100644
--- a/docs/Manpage.md
+++ b/docs/Manpage.md
@@ -2123,7 +2123,7 @@ example, run `export HOMEBREW_NO_INSECURE_REDIRECT=1` rather than just
Use this base64 encoded username and password for authenticating with a Docker registry proxying GitHub Packages. If HOMEBREW_DOCKER_REGISTRY_TOKEN is set, it will be used instead.
- `HOMEBREW_DOCKER_REGISTRY_TOKEN`
-
Use this bearer token for authenticating with a Docker registry proxying GitHub Packages. Preferred over HOMEBREW_DOCKER_REGISTRY_TOKEN_BASIC.
+
Use this bearer token for authenticating with a Docker registry proxying GitHub Packages. Preferred over HOMEBREW_DOCKER_REGISTRY_BASIC_AUTH_TOKEN.
- `HOMEBREW_GITHUB_PACKAGES_USER`
Use this username when accessing the GitHub Packages Registry (where bottles may be stored).
diff --git a/manpages/brew.1 b/manpages/brew.1
index 43bd45a228..32ef2b2593 100644
--- a/manpages/brew.1
+++ b/manpages/brew.1
@@ -3091,7 +3091,7 @@ Use this base64 encoded username and password for authenticating with a Docker r
\fBHOMEBREW_DOCKER_REGISTRY_TOKEN\fR
.
.br
-Use this bearer token for authenticating with a Docker registry proxying GitHub Packages\. Preferred over HOMEBREW_DOCKER_REGISTRY_TOKEN_BASIC\.
+Use this bearer token for authenticating with a Docker registry proxying GitHub Packages\. Preferred over HOMEBREW_DOCKER_REGISTRY_BASIC_AUTH_TOKEN\.
.
.TP
\fBHOMEBREW_GITHUB_PACKAGES_USER\fR