en un clic
wxt-extension-publishing
// Step-by-step instructions on how to package and publish a WXT-based browser extension to the Chrome Web Store using the `wxt submit` command.
// Step-by-step instructions on how to package and publish a WXT-based browser extension to the Chrome Web Store using the `wxt submit` command.
| name | WXT Extension Publishing |
| description | Step-by-step instructions on how to package and publish a WXT-based browser extension to the Chrome Web Store using the `wxt submit` command. |
This skill details the correct workflow for initializing authentication credentials and submitting a WXT browser extension to the Chrome Web Store.
To use the automated submission API, you must have an OAuth Client ID configured correctly:
redirect_uri_mismatch error (urn:ietf:wg:oauth:2.0:oob is only allowed for native desktop apps).Run the initialization command interactively:
pnpx wxt submit init
During the prompt:
Chrome Web Store).Generate new refresh token?, select Yes.https://accounts.google.com/o/oauth2/auth....💡 Pro-Tip for Firefox (
FIREFOX_EXTENSION_ID):
If you are configuring Firefox and your Firefox Addon UUID contains curly braces (e.g.,{c8efa7cc-...}), the underlying publishing tool currently has a bug that strips the braces and causes404 Not FoundAPI errors. To fix this, use your extension's URL Slug (e.g.,m10c-web-page-video-to-mindmap) as theFIREFOX_EXTENSION_IDinstead of the UUID.
This process will successfully write the configurations, including CHROME_REFRESH_TOKEN, to a local .env.submit file.
Security Note: Ensure that
.env.submitand.env.submit.backup-*are added to your.gitignoreto prevent leaking tokens.
Before submitting, build and package the extension into a .zip file:
pnpm run zip
# or simply run: wxt zip
The packaged file will be generated in the .output/ folder (e.g., .output/m10c-video-summary-extension-3.0.1-chrome.zip).
Finally, use the wxt submit CLI (which utilizes publish-browser-extension under the hood) to upload the zip to the Chrome Web Store and submit it for review:
pnpx wxt submit --chrome-zip .output/<YOUR_EXTENSION_ZIP_FILE_NAME>.zip
The CLI will check the ZIP file, fetch an access token, upload the ZIP, and automatically submit it for review.