Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

docs: addwrangler 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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
ascorbic wants to merge7 commits intoproduction
base:production
Choose a base branch
Loading
fromdevin/1766046371-wrangler-auth-token-docs

Conversation

@ascorbic
Copy link
Contributor

@ascorbicascorbic commentedDec 18, 2025
edited
Loading

Summary

Adds documentation for the newwrangler auth token command being added incloudflare/workers-sdk#11682. This command retrieves the current authentication token or credentials for use with other tools and scripts, similar togh auth token in the GitHub CLI.

The documentation covers:

  • Basic command usage
  • The--json flag for structured output with token type information
  • Support for all three Wrangler authentication methods (OAuth, API token, API key/email)

Note: This PR should be merged aftercloudflare/workers-sdk#11682 is merged.


Devin PR requested bymkane@cloudflare.com

Link to Devin run:https://app.devin.ai/sessions/d407c26dd1da4edf905944a95e90226a

Documentation checklist

  • Is there achangelog entry (guidelines)? If you don't add one for something awesome and new (however small) — how will our customers find out? Changelogs are automatically posted toRSS feeds, theDiscord, andX.
  • The change adheres to thedocumentation style guide.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocatedredirects.

Add documentation for the new `wrangler auth token` command that retrievesauthentication 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 typesRelated tocloudflare/workers-sdk#11682Co-Authored-By: mkane@cloudflare.com <m@mk.gg>
@devin-ai-integration
Copy link
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions
Copy link
Contributor

github-actionsbot commentedDec 18, 2025
edited
Loading

This pull request requires reviews fromCODEOWNERS as it changes files that match the following patterns:

PatternOwners
/src/content/changelog/@cloudflare/pm-changelogs,@cloudflare/pcx-technical-writing
/src/content/docs/workers/wrangler/@cloudflare/wrangler,@irvinebroque,@cloudflare/pcx-technical-writing,@cloudflare/workers-runtime-1

@github-actions
Copy link
Contributor

github-actionsbot commentedDec 18, 2025
edited
Loading

{"type":"api_key","key":"...","email":"..." }
```

This is similar to`gh auth token` in the GitHub CLI and allows you to easily retrieve your authentication token without having to manually locate the config file or handle token refresh.
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

No need to mention gh

Suggested change
Thisis similar to`gh auth token` in the GitHub CLI andallows you to easily retrieve your authentication token without having to manually locate the config file or handle token refresh.
This allows you to easily retrieve your authentication token without having to manually locate the config file or handle token refresh.

devin-ai-integration[bot] reacted with eyes emoji

When using`--json`, the output includes the token type:

```json
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
```json
```jsonc

devin-ai-integration[bot] reacted with eyes emoji
Comment on lines 706 to 707
- OAuth token from`wrangler login` (automatically refreshed if expired)
- API token from`CLOUDFLARE_API_TOKEN` environment variable
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The priority is the other way aorund

devin-ai-integration[bot] reacted with eyes emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Should also mention the key and email option, and explain how it's not supported without the json flag

devin-ai-integration[bot] reacted with eyes emoji
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Added API key/email to the list of authentication methods with an explanation that it requires the--json flag since this method uses two values instead of a single token.

- 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>
@devin-ai-integration
Copy link
Contributor

Addressed all three comments in the latest commit:

  • Removed mention ofgh auth token
  • Changedjson tojsonc for the code block with comments
  • Fixed priority order (API token before OAuth token)

Explains that API key/email requires --json flag since it uses two values instead of a single tokenCo-Authored-By: mkane@cloudflare.com <m@mk.gg>
Co-Authored-By: mkane@cloudflare.com <m@mk.gg>
Co-Authored-By: mkane@cloudflare.com <m@mk.gg>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@devin-ai-integrationdevin-ai-integration[bot]devin-ai-integration[bot] left review comments

@irvinebroqueirvinebroqueAwaiting requested review from irvinebroqueirvinebroque will be requested when the pull request is marked ready for reviewirvinebroque is a code owner

At least 1 approving review is required to merge this pull request.

Assignees

@irvinebroqueirvinebroque

Labels

product:workersRelated to Workers productsize/s

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@ascorbic@irvinebroque

[8]ページ先頭

©2009-2025 Movatter.jp