# Publishing

> Submit a released build to the extension stores, or send it to testers first with a link to its build page.

Canonical: https://docs.extension.dev/publish/overview
This page as Markdown: https://docs.extension.dev/publish/overview.md
Section: Publish to stores
Siblings: [Chrome Web Store](https://docs.extension.dev/publish/chrome.md) · [Firefox Add-ons](https://docs.extension.dev/publish/firefox.md) · [Microsoft Edge Add-ons](https://docs.extension.dev/publish/edge.md) · [Safari](https://docs.extension.dev/publish/safari.md) · [Executables](https://docs.extension.dev/publish/executables.md)
Map of every page: https://docs.extension.dev/llms.txt · Whole corpus: https://docs.extension.dev/llms-full.txt

---

# 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](/tools/access-tokens).


## 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`](/tools/mcp/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](/share/build-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](/guides/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](/tools/mcp) 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](/guides/environments).

A machine calls `POST /api/cli/stores/submit` and
`POST /api/cli/release/promote` with a project token. See the
[HTTP API](/automate/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](https://www.extension.dev/pricing).

A build can also ship outside every store as a standalone launcher. See
[Executables](/publish/executables).

### Credentials

Credentials are project store settings. You connect a store once in the
console under **Project settings, Stores**, one panel per store, or from the
connect page below, and every submission reuses it. The platform seals the
credentials in its own store, per project or per workspace, 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](/publish/edge#credentials).

### Credential health

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

The panel's **Check now** and **Check again** buttons call
`POST /api/projects/{id}/stores/health`. The platform reads every connected
store with the sealed credentials itself, dispatches nothing and spends no
build, and the verdict lands in about a minute. The saved fields are write
only, so a saved store comes back blank.
`POST /api/projects/{id}/stores/test/{store}` tests credentials sent in the
request body and answers at once.

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](#verdict-fields) 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](#defaults) 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.

The extension.dev lane runs every submit, so there is no workflow of your own
to keep in sync. A refused submit answers with a code, a sentence that says
what was refused and what to do, and, when the step belongs to the store's
own dashboard, a `handPath` link to that page. Read the sentence, open the
link if there is one, 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](/publish/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](/publish/safari).

### Watching a submission {#watching}

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](#submission-states) 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

| Door | Submit | Release |
| --- | --- | --- |
| Console | **Submissions** tab | **Releases** |
| Agent | `extension_submit` | `extension_release_promote` |
| API | `POST /api/cli/stores/submit` | `POST /api/cli/release/promote` |

### Stores

| Store | Browser | Runner | Page |
| --- | --- | --- | --- |
| Chrome Web Store | Chrome | Linux, both plans | [Chrome](/publish/chrome) |
| Firefox Add-ons | Firefox | Linux, both plans | [Firefox](/publish/firefox) |
| Microsoft Edge Add-ons | Edge | Linux, both plans | [Edge](/publish/edge) |
| App Store | Safari | macOS, paid plan, 15 submissions a month | [Safari](/publish/safari) |

### Defaults {#defaults}

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

| Store | Default | Setting that changes it |
| --- | --- | --- |
| Chrome Web Store | Uploads the package and skips the publish call | `skipPublish` or `stagedPublish` |
| Microsoft Edge Add-ons | Saves a draft | `publishAfter` |
| Firefox Add-ons | Submits a new add-on, or one never listed, as unlisted | Release channel `listed` |
| App Store | Uploads and stops at a TestFlight draft | Safari `submissionMode` `review`, or `submitForReview` on the run; see [Safari](/publish/safari) |

### Secrets

| Store | Secrets |
| --- | --- |
| Chrome | `STORE_CHROME_CLIENT_ID`, `STORE_CHROME_CLIENT_SECRET`, `STORE_CHROME_REFRESH_TOKEN`, or `STORE_CHROME_SERVICE_ACCOUNT_JSON` alone |
| Firefox | `STORE_FIREFOX_API_KEY`, `STORE_FIREFOX_API_SECRET` |
| Edge | `STORE_EDGE_CLIENT_ID`, `STORE_EDGE_CLIENT_SECRET` |
| Safari | Nine secrets covering the App Store Connect key and signing assets |

### Verdict fields

| Field | Meaning |
| --- | --- |
| `store` | The store this verdict is about |
| `configured` | The store has credentials, or `unknown` when no health was published |
| `healthy` | The credentials pass the health probe, or `unknown` |
| `ok` | The store would accept this submission |
| `reason` | Why a blocked store is blocked |
| `consoleUrl` | The console page that fixes that store |
| `checkedAt` | When the health probe last ran |

### Submission states

| State | Meaning |
| --- | --- |
| `draft` | The package is uploaded and no review round was asked for |
| `dry_run` | The preflight ran and nothing reached the store |
| `pending` | Queued, the store has not answered yet |
| `submitted` | A review round started |
| `approved` | The store accepted this version |
| `rejected` | The store refused this version |
| `failed` | The run itself failed before the store answered |
| `unknown` | The run ended and no state could be read from it |

### Refusals

| Code | Status | Meaning |
| --- | --- | --- |
| `MACOS_RUNNER_NOT_INCLUDED` | `403` | A Safari submission on a plan with no macOS runner |
| `SAFARI_SUBMISSIONS_EXHAUSTED` | `403` | The sixteenth App Store submission of the month |
| `APPROVAL_REQUIRED` | `403` | The call needs an owner's approval and no `approvalId` was sent |
| `UNKNOWN_BUILD` | `404` | The 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. Reconnect the store from **Project settings, Stores**.
- **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](/tools/access-tokens). 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](/builds/store-releases).

## Next

- [Chrome](/publish/chrome), [Firefox](/publish/firefox) and
  [Edge](/publish/edge) for each store's flow
- [HTTP API](/automate/api) for the submit, release and status endpoints
- [Executables](/publish/executables) to ship without a store
