- Go to the Chrome Web Store Developer Dashboard
- Click Account in the left sidebar
- Your publisher ID is displayed on this page
- Go to the Google Cloud Console
- Create a new project or select an existing one
- Enable the Chrome Web Store API
- Go to OAuth consent screen
- Select External, then click Create
- Fill in the required fields (app name, support email, developer contact)
- Click Save and Continue through the remaining steps
- Under Test users, add your Google account email
- Go to Credentials
- Click Create Credentials > OAuth client ID
- Select Web application
- Under Authorized redirect URIs, add
http://localhost:8818 - Click Create and save the Client ID and Client Secret
Add your credentials to chrome.env:
EXT_ID=your-extension-id
PUBLISHER_ID=your-publisher-id
CLIENT_ID=your-client-id
CLIENT_SECRET=your-client-secretPass --auto-fetch-credentials when deploying. It will open your browser for Google sign-in, capture the authorization code, and either save the refresh token to chrome.env (in env mode) or keep it in memory for the current run (in cli mode):
# env mode - fetches and saves REFRESH_TOKEN to chrome.env
web-ext-deploy env --auto-fetch-credentials
# cli mode - fetches and uses in-memory only
web-ext-deploy cli --chrome-ext-id EXT_ID ... --auto-fetch-credentialsOn subsequent env runs, the saved REFRESH_TOKEN in chrome.env is used directly - no browser prompt needed.