-
Notifications
You must be signed in to change notification settings - Fork 11k
docs: add wrangler auth token command documentation
#27219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: production
Are you sure you want to change the base?
Conversation
Add documentation for the new `wrangler auth token` command that retrieves authentication credentials for use with other tools and scripts. Documents: - Basic usage - --json flag for structured output with token type - Support for OAuth, API token, and API key/email auth types Related to cloudflare/workers-sdk#11682 Co-Authored-By: mkane@cloudflare.com <m@mk.gg>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
- Remove mention of gh auth token - Change json to jsonc for code block with comments - Fix priority order (API token before OAuth token) Co-Authored-By: mkane@cloudflare.com <m@mk.gg>
|
Addressed all three comments in the latest commit:
|
Explains that API key/email requires --json flag since it uses two values instead of a single token Co-Authored-By: mkane@cloudflare.com <m@mk.gg>
Co-Authored-By: mkane@cloudflare.com <m@mk.gg>
…it-manager.devin.ai/proxy/github.com/cloudflare/cloudflare-docs into devin/1766046371-wrangler-auth-token-docs
Co-Authored-By: mkane@cloudflare.com <m@mk.gg>
| Retrieve your current authentication token or credentials for use with other tools and scripts. | ||
|
|
||
| ```txt | ||
| wrangler auth token [OPTIONS] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like [OPTIONS] is not used consistenttly.
In particular it does not seem to be generated when using <WranglerCommand />.
Not a big deal but something we can address in a follow up PR (or create an issue for)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch on the [OPTIONS] inconsistency. Happy to address this in a follow-up PR or create an issue for it.
Co-Authored-By: mkane@cloudflare.com <m@mk.gg>
Summary
Adds documentation for the new
wrangler auth tokencommand being added in cloudflare/workers-sdk#11682. This command retrieves the current authentication token or credentials for use with other tools and scripts, similar togh auth tokenin the GitHub CLI.The documentation covers:
--jsonflag for structured output with token type informationNote: This PR should be merged after cloudflare/workers-sdk#11682 is merged.
Devin PR requested by mkane@cloudflare.com
Link to Devin run: https://app.devin.ai/sessions/d407c26dd1da4edf905944a95e90226a
Documentation checklist