Skip to content

Publishing ​

Publishing submits a build to a store, with the store credentials the platform holds for you. To send a build to testers before any store, publish its build page with extension_publish and send that link.

Quick start ​

bash
curl -s -X POST https://www.extension.dev/api/cli/stores/submit \
  -H "Authorization: Bearer $EXTENSION_DEV_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"browsers":["chrome","firefox","edge"],"buildSha":"<sha>","channel":"stable","dryRun":true}'

The dry run answers with a verdict per store and dispatches nothing. Drop dryRun to submit. The call needs a project token.

How it works ​

Send a build to testers first ​

Testers do not need a store. Ask the agent to publish your latest build, and extension_publish returns the build's page on extension.dev, with a download and install steps for each browser. Send a build link for one build, or a channel link for the newest build on a channel. See Build links and channel links. Store submission is a separate path, and these links do not change it.

Submit to a store ​

Every door starts from a project the platform already builds. If yours is still a repository, or a folder you never pushed, Import is the way in.

Three doors reach the same submission. The console's Submissions tab submits a build that passed and follows each store's status. An agent with the MCP server calls extension_submit, which defaults to a dry run. Nothing has to be released to a channel first, and every door takes a build made for Stable: a Preview build answers 409 BUILD_ENV_MISMATCH with the rebuild to make. See Environments.

A machine calls POST /api/cli/stores/submit and POST /api/cli/release/promote with a project token. See the HTTP API.

Chrome, Firefox and Edge submissions run on Linux on both plans. Safari and the App Store are paid, builds and submissions together, because the submit job runs on a macOS runner. On the free plan the platform refuses a Safari build or an App Store submission with 403 MACOS_RUNNER_NOT_INCLUDED before anything is dispatched.

A paid workspace carries 15 App Store submissions a month. See extension.dev/pricing.

A build can also ship outside every store as a standalone launcher. See Executables.

Credentials ​

Credentials are project store settings. You enter them once in the console under Project settings, Store publishing, one panel per store, and every submission reuses them. The platform holds them as encrypted secrets on your project's build repository and never returns a value. The /submissions/new path that a preflight verdict returns redirects to that same settings page.

Connect a store from your agent ​

An agent connects a store without ever seeing the key. Call extension_submit with action: "connect" and the store to connect. It opens the console's connect page for that store and project, at /<workspace>/<project>/connect/<store>. You paste the key there or drop the key file. The platform checks it with the store and saves it sealed. The agent learns only the account the store names and when it answered. For Chrome, the page signs you in with Continue with Google instead.

The answer carries a connectSession. The agent waits on it with connectSession and waitSeconds. A session is bound to the project that opened it, so the wait answers for that project even when the machine holds logins for several projects. The hint hands out the wait call with project named.

Connect reads what is on file first. When a working key is already saved, it answers already-connected with the account and the time of the last check, and opens no page. Pass replace: true only when you want a new key in its place.

A working key can come from the project or from the workspace's Store accounts page. A key saved on the connect page replaces the project's own key. Over a workspace account, it becomes the project's own key and shadows the workspace account for this project only. Other projects keep the workspace account.

Edge names no account. A connected Edge store answers connectedAs: null and reports product, the Partner Center product the key was checked against. See Edge.

Credential health ​

Health is a stored verdict per store. Run the check from the store's panel under Project settings, Store publishing.

With the secrets typed into the form, the panel's test button calls POST /api/projects/{id}/stores/test/{store} and answers at once. The fields are write only, so a saved store comes back blank. The same button then queues the check on the project's build repository instead, and the verdict lands when that run finishes. The queued check counts as one dispatch.

The stored verdict feeds the dry run. It does not stop a real submission: POST /api/cli/stores/submit without dryRun dispatches for every store you list, failing credentials included. The console is the one door that blocks, because its submission page keeps the submit button disabled while a blocking check fails.

Dry runs ​

dryRun: true on POST /api/cli/stores/submit runs the preflight. An agent's extension_submit defaults to it. The response returns a verdict per store and dispatches nothing. The verdict fields are in the Reference below.

The console runs a preflight of its own, in a different shape. Open Submissions, pick a store, start a submission, and choosing a release runs a readiness checklist over the release, the store settings and the listing. It reports blocking checks and disables the submit button. It never returns the verdict fields.

Least public by default ​

When your store settings name no mode, a submission goes to the least public option each store allows. An extension that has never been public stays that way until you choose otherwise. From the agent or the API, Chrome stops at an unpublished upload even for an item that is already public. The Reference lists what each store gets.

Safe and broad ​

Every submission mode is classified safe or broad. Safe modes upload a draft and submit nothing for review. Broad modes reach store review or the public. Draft-only safe mode is a per-store setting, and an explicit setting is always honored, whoever saved it.

Agent and API submissions default safe. A submission with dryRun: false through the MCP, the CLI or an API token uploads without publishing when the store settings never stated a submission mode. Edge stops at its draft and Chrome skips the publish call.

An explicit publishAfter: true on Edge or skipPublish: false on Chrome still goes to review. Console submissions follow the store setting shown on the panel.

A project whose store workflow predates the safe default is refused with 409 SAFE_MODE_INPUT_UNSUPPORTED rather than sent to review. Save the project settings to resync the workflow, then submit again.

A safe run is recorded as draft, not submitted. A draft is a package sitting in the store. A submission is a review round that started.

Approvals ​

A real submission or release through the API or an agent needs a token minted by a workspace owner and an owner's approval of that exact call. The first call answers 403 APPROVAL_REQUIRED. Request an approval at POST /api/cli/approvals, have a workspace owner approve it at extension.dev, then repeat the call with its approvalId. A dry run never needs one.

A submission that names several stores is one approval per version across stores. The approval's scope is the build, the version label and one line per store, {"buildSha", "version", "acts": ["chrome:upload", "firefox:upload"]} under the action extension_submit.version. The approval page lists every line with what that store does with the upload and what it holds in flight; the owner unchecks a line to leave that store out and approves the list once. The submit call then spends each store's line right before that store's run starts, and reports per store whether the line ran, was given back or was left out. A store that would be refused is refused before any line exists, and the answer names every such store. A single-store submission keeps the single approval.

The same approval carries a send to review and a listing write. A publish line, <store>:publish, sends that store's draft of the approved build; a listing line, <store>:sync-listing, writes the listing whose digest the scope names under listings, and nothing else. Each line on the approval page reads the store's own preflight sentence for the act, and a store holding another version in review shows what the act is queued behind, for example "queued until Microsoft finishes certifying 0.2.0.7". A queued act keeps its line pending until the queue sends it, so a revoke still reaches it.

What this keeps from the single approval: one page that names every act, and nothing outside that list can spend the grant; a line spends once, so a replay is refused; a run that provably never started gives its line back; the twelve hour life; the revoke, which takes every line that has not run; the owner's role is read again when a line is spent. What it replaces: the whole request no longer hashes to one fingerprint, because a retry may name fewer stores than the owner approved, so a spend checks the build and the version against the record and then asks for its own line; and one refused store refunds its own line while the stores already dispatched keep theirs.

Submission notes ​

A STORE.md in the project root is parsed automatically. Firefox reviewer notes and release notes, and Edge certification notes, ride along with the submission. A - Category: line under ## Firefox Add-ons overrides the shared ## Listing category for Firefox alone, since AMO's category list differs from the Chrome Web Store's, and it counts only when it names a category AMO has. An unlisted Firefox upload sends no listing to AMO, so it needs no category, summary, description or support email, and the preflight warns about a missing one instead of blocking. No store asks for a license except Firefox on a listed version. See Firefox. A - Release: line under ## Safari states whether Apple's approval may publish the App Store version at once (after approval) or hold it for you (manual, the default when the line is absent). See Safari.

Watching a submission ​

The Submissions tab follows a submission to a terminal state, and GET /api/projects/{id}/stores/status returns the same. Every store uses the same eight words, listed in the Reference below.

unknown is the default for anything unreadable, including a step that died before it wrote its result. It is never read as submitted. A state the platform did not read from the run is not a state it reports.

Reference ​

Doors ​

DoorSubmitRelease
ConsoleSubmissions tabReleases
Agentextension_submitextension_release_promote
APIPOST /api/cli/stores/submitPOST /api/cli/release/promote

Stores ​

StoreBrowserRunnerPage
Chrome Web StoreChromeLinux, both plansChrome
Firefox Add-onsFirefoxLinux, both plansFirefox
Microsoft Edge Add-onsEdgeLinux, both plansEdge
App StoreSafarimacOS, paid plan, 15 submissions a monthSafari

Defaults ​

What a submission from the agent or the API does when the store settings name no mode:

StoreDefaultSetting that changes it
Chrome Web StoreUploads the package and skips the publish callskipPublish or stagedPublish
Microsoft Edge Add-onsSaves a draftpublishAfter
Firefox Add-onsSubmits a new add-on, or one never listed, as unlistedRelease channel listed
App StoreUploads and stops at a TestFlight draftSafari submissionMode review, or submitForReview on the run; see Safari

Secrets ​

StoreSecrets
ChromeSTORE_CHROME_CLIENT_ID, STORE_CHROME_CLIENT_SECRET, STORE_CHROME_REFRESH_TOKEN, or STORE_CHROME_SERVICE_ACCOUNT_JSON alone
FirefoxSTORE_FIREFOX_API_KEY, STORE_FIREFOX_API_SECRET
EdgeSTORE_EDGE_CLIENT_ID, STORE_EDGE_CLIENT_SECRET
SafariNine secrets covering the App Store Connect key and signing assets

Verdict fields ​

FieldMeaning
storeThe store this verdict is about
configuredThe store has credentials, or unknown when no health was published
healthyThe credentials pass the health probe, or unknown
okThe store would accept this submission
reasonWhy a blocked store is blocked
consoleUrlThe console page that fixes that store
checkedAtWhen the health probe last ran

Submission states ​

StateMeaning
draftThe package is uploaded and no review round was asked for
dry_runThe preflight ran and nothing reached the store
pendingQueued, the store has not answered yet
submittedA review round started
approvedThe store accepted this version
rejectedThe store refused this version
failedThe run itself failed before the store answered
unknownThe run ended and no state could be read from it

Refusals ​

CodeStatusMeaning
MACOS_RUNNER_NOT_INCLUDED403A Safari submission on a plan with no macOS runner
SAFARI_SUBMISSIONS_EXHAUSTED403The sixteenth App Store submission of the month
SAFE_MODE_INPUT_UNSUPPORTED409The store workflow predates the safe default
APPROVAL_REQUIRED403The call needs an owner's approval and no approvalId was sent
UNKNOWN_BUILD404The sha is not in the build index

When it fails ​

  • A store is blocked and you do not know why. Run the dry run first, from the API or the agent. The reason says why and consoleUrl names the console page that fixes it. From the console, open the store's submission page and read the checklist.
  • A Firefox submission stops before anything uploads. The add-on has a store id, no release channel is saved, and Firefox Add-ons could not be read to tell whether it is listed. Save the release channel in the store settings, then submit again.
  • A store fails its health check. That is its credentials, not your build. Re-enter the secrets from Project settings, Store publishing.
  • Connect answers already-connected and opens no page. A working key is already on file, from the project or the workspace. Call connect again with replace: true to save a different key in its place.
  • The dry run reads unknown for a store. No health was published for it yet. That is not a failure. Run the check from the store's panel before you trust the dry run.
  • A submission reads unknown. Nothing readable came back from the run, so nothing is claimed. Open the run, read why it stopped, and submit again.
  • A submission reads draft when you expected a review round. The run was a safe mode, so the package uploaded and nothing was submitted. Turn off draft-only for that store, or ask for review on the run itself.
  • The API or agent door refuses with 401. Both need a project token. Without one, submit from the console.
  • The console has nothing to submit. The console offers the builds that passed for that store, released or not, so no build has passed for it yet. Start a build, and check that the browser is enabled in the project's build settings. See Store releases.

Next ​