Skip to content

The orbit-plugin tool

The tool is the package @orbitcommerce/plugin-cli, and its command is orbit-plugin. It creates a plugin from a starter, signs in to your partner account, runs the plugin in a test store through a secure link, sends test events, validates plugin.json, creates releases and adds your listing pictures. For a plugin on Orbit hosting it also deploys your code and shows your server's log. Every command also takes --json, for scripts and AI agents.

Installing and running

Inside a plugin folder made from one of the starters, the tool is already a dev dependency, so npx orbit-plugin <command> runs the copy the starter installed. Anywhere else, write npx @orbitcommerce/plugin-cli <command>.

It needs Node 20 or later. The starters need Node 24.

The unscoped package orbit-plugin on npm belongs to Orbit and only points here, so a bare npx orbit-plugin outside a plugin folder runs nothing of ours: use npx @orbitcommerce/plugin-cli there.

Shell
npx @orbitcommerce/plugin-cli create my-plugin --template dashboard-page
cd my-plugin
npx orbit-plugin login
npx orbit-plugin dev

That is the whole path from nothing to a plugin running in a test store, and the quickstart walks through it. The rest of this page is the reference.

This page writes npx orbit-plugin for commands you run inside the plugin folder, and npx @orbitcommerce/plugin-cli for the ones that need no plugin. Every command accepts the long form; the short form only works inside a plugin folder.

Global flags

Every command takes these.

FlagWhat it does
--jsonPrint JSON on stdout and nothing else. Implies --non-interactive.
--non-interactiveNever ask a question. A question that needs an answer fails with NEEDS_CONFIRMATION.
--yesAnswer yes to a question the tool would ask.
--api-url <url>The API to use, instead of the environment.

The API address is chosen in this order: --api-url, ORBIT_API_URL, NEXT_PUBLIC_ORBIT_API_URL, the defaultApiUrl in config.json written by login --api-url, then https://api.myorbitcommerce.net. A trailing / and a trailing /graphql are dropped.

Commands

The commands are in the order the quickstart meets them, then the ones for your listing and for Orbit hosting.

create

Shell
npx @orbitcommerce/plugin-cli create my-plugin --template dashboard-page
FlagWhat it does
--template <id>Which starter to copy: dashboard-page, product-card, storefront-widget or events-only. Required when the tool cannot ask.
--plugin-id <id>The plugin id. The default comes from the folder name.
--name <text>The listing name. The default comes from the plugin id.
--no-installSkip the npm install that follows.
--template-ref <ref>The samples tag or branch to download. Default starters-v1.1.0.
--template-dir <path>Copy from a checkout of the samples repository instead of GitHub.
--forceWrite into a folder that is not empty.

create copies one starter, sets the plugin id, the name and version 0.1.0, fills in package.json, package-lock.json and the README, and writes a random TOKEN_ENCRYPTION_KEY to .env.local (an existing value is kept). Then it runs npm install. A failed install is the warning INSTALL_FAILED with installed: false, not an error: the folder is still yours to use.

On success data is { dir, template, pluginId, name, installed, nextSteps }, where nextSteps is the list of commands to run next.

The four starters and the place each one puts your plugin are in Where plugins appear.

login

Shell
npx @orbitcommerce/plugin-cli login
FlagWhat it does
--no-browserPrint the sign-in link instead of opening your browser.
--timeout <seconds>How long to wait for the browser. Default 300, at least 10.

login opens Orbit's consent screen for your partner account, listing what the tool may do. It asks for ten partner scopes in one go: partner-plugin:list, partner-plugin:read, partner-plugin:draft, partner-plugin:develop, partner-plugin:secret, partner-plugin:release, partner-plugin:install-link, partner-dev-store:sign-in, partner-hosting:read and partner-hosting:manage. partner-dev-store:sign-in is read only: it tells dev where to open your test store, which is Development stores in the partner dashboard, where you sign in yourself. deploy and logs need the two partner-hosting scopes, so a sign-in from a version of the tool before 1.2.0 answers INSUFFICIENT_SCOPE there until you run login again. After you approve, the tool checks the connection and stores the session.

The sign-in is listed as "Orbit plugin tool" under AI assistants in the partner dashboard, where you can end it. A new sign-in on the same API revokes the previous connection when it can; if it cannot, you get the warning PREVIOUS_NOT_REVOKED. A scope you did not grant is the warning SCOPES_NOT_GRANTED, naming what is missing.

On success data is { apiUrl, partnerId, partnerName, connectionId, clientId, scopes, expiresAt }.

logout

Shell
npx @orbitcommerce/plugin-cli logout

Without a session it changes nothing and exits 0, so it is safe to run twice. With a session it revokes the connection on Orbit, removes the session from this computer, and returns { apiUrl, revoked, removed }.

If Orbit cannot be told, the session is still removed and you get the warning NOT_REVOKED: Signed out on this computer, but Orbit could not be told. Remove the connection under AI assistants in the partner dashboard.

whoami

Shell
npx @orbitcommerce/plugin-cli whoami

Prints the partner account behind the stored session. It needs no plugin folder. data is { apiUrl, partnerId, partnerName, connectionId, clientName, scopes, tiers, expiresAt }. With no session it fails with NOT_LOGGED_IN and exit 3.

dev

Shell
npx orbit-plugin dev

Run this in the plugin folder.

FlagWhat it does
--store <id or name>The development store to use. The tool remembers the choice for the plugin.
--create-storeCreate a development store without asking, when you have none.
--create-pluginCreate the plugin in your account without asking, when it is new.
--port <n>The local port. Default from PORT, else the port in a localhost baseUrl, else 3000.
--command <cmd>How to start your plugin. Default npm run dev. It cannot be combined with --no-app.
--no-appYour plugin is already running, so do not start it.
--tunnel-url <https url>Use your own https link instead of a Cloudflare quick tunnel. It cannot be combined with --cloudflared.
--cloudflared <path>Use your own cloudflared.
--no-openDo not open Development stores in the partner dashboard.
--keepLeave the test version on the store when you stop.
--no-secretDo not write WEBHOOK_SECRET to .env.local.
--clearRemove a test version left behind. It takes only --store from the dev flags.

dev works through these steps in order:

  1. Checks plugin.json against the API's schema. If it has problems, the tool stops and nothing is changed.
  2. Creates the plugin in your partner account if it is new. It asks first unless you pass --create-plugin.
  3. Creates a development store with sample products, customers and orders if you have none. It asks first unless you pass --create-store.
  4. Writes the webhook signing secret to .env.local in the plugin folder, unless you pass --no-secret. The secret is never printed.
  5. Opens a secure link from the internet to your computer. See The secure link.
  6. Starts your plugin and passes its output through with an [app] prefix. With --no-app it waits for the port instead, and warns APP_NOT_LISTENING if nothing answers.
  7. Makes a development release on that link and installs it in the development store.
  8. Opens Development stores in the partner dashboard in your browser, unless you pass --no-open, and says which store to pick. Choose Open store on it to see the plugin there. partner-dev-store:sign-in gives the tool only where that page is, never a link that signs you in to a store. If the page cannot be opened, the tool warns BROWSER_NOT_OPENED and carries on.
  9. Watches plugin.json. Save it and a new test version follows in a second or two. An invalid file is refused with the reason, and the store keeps the previous test version.

If the link drops, the tool makes a new one and a release on it. More than three drops in ten minutes ends the session with TUNNEL_FAILED. If your plugin exits, the session ends with APP_FAILED.

With --json, dev writes one event per line and then one result line. The events are:

EventdataWhen
manifest.valid{ pluginId, file, warnings }plugin.json passed validation
plugin.ready{ pluginId, created }the plugin is in your account
store.ready{ storeId, devStoreId, name, created }the development store is chosen
secret.ready{ file, changed }the webhook secret was handled
tunnel.ready{ url, source }the link works
app.started{ command, pid, port }your plugin was started
app.ready{ port, afterMs }the port answers
release.created{ releaseNumber, baseUrl, storeId, deduplicated }a test version is on the store
release.skipped{ releaseNumber, reason }a save left the release body unchanged
release.failed{ storeId, message, problems }a save was refused, and the previous test version stays
browser.opened{ storeId, page }Development stores in the partner dashboard was opened, for you to open that store
manifest.changed{ file }a save was seen
tunnel.restarted{ url, attempt }the link dropped and a new one is up
shutdown.started{ signal, reason }Ctrl+C, SIGTERM, SIGHUP or a failure
release.cleared{ cleared }the store is back on your live release, or none
shutdown.finished{ exitCode }everything has stopped

warnings on manifest.valid is an array of problems, each { path, code, message }, where path is the JSON path into plugin.json ('' for the root). source is cloudflared for a quick tunnel or flag for --tunnel-url. file on secret.ready is always .env.local, and its value is never in the event. browser.opened carries the id of the store to open and page, which is dev-stores; there is no sign-in link to carry. reason on release.skipped is unchanged. On shutdown.started, signal is the signal that stopped the session or null, and reason is the error code or null. cleared lists what the clear did on each store.

Ctrl+C, or SIGTERM from a script, stops everything in order: the watcher closes, a release already in flight is allowed to land, the test version is removed from the store, and the link and your plugin stop. The store goes back to your plugin's live release, or to none. A clean stop exits 0.

--keep leaves the test version installed. A second Ctrl+C while the tool is stopping kills the children at once and exits 130, with the hint to run dev --clear. If removing the test version fails, the tool exits 1 with CLEANUP_FAILED and the hint Run orbit-plugin dev --clear to remove it.; that command removes a test version left behind. Each heldInactive row in the answer is also the warning HELD_INACTIVE, with the API's sentence.

A clean stop returns { pluginId, storeId, devStoreId, tunnelUrl, releaseNumber, cleared, secretFile }. With --clear it returns { pluginId, cleared }.

events send

Shell
npx orbit-plugin events send order.created
FlagWhat it does
--store <id or name>The development store to deliver to.

The topic must look like a topic: lower case segments separated by dots. The plugin id comes from plugin.json. A topic the file does not subscribe to is the warning TOPIC_NOT_DECLARED; the release running on the store decides whether it is delivered. The command uses a store you already have and never creates one.

On success data is { pluginId, topic, storeId, delivered, responseStatus, url, responseExcerpt? }, and people see Sent a test order.created to <url>: 200. responseExcerpt is the start of what your plugin answered, present only when it answered with a body, such as invalid signature; the human line then ends with It answered: <excerpt>. A delivery that did not arrive is EVENT_NOT_DELIVERED with exit 1, the message The test order.created was not delivered. followed by the same It answered: <excerpt> when there is one, the same object in details, and the hint Is orbit-plugin dev running? Look for the request in the [app] output. The API's own refusals pass through with their sentences.

validate

Shell
npx orbit-plugin validate
FlagWhat it does
--all [root]Check every folder one level below <root>/packages, or below the root when it has no packages folder, that holds a plugin.json. The root defaults to the current folder. For a monorepo.
--offlineUse the schema and registry shipped with the tool. No API calls.

With no path it checks the plugin folder you are in. Give paths to check other folders.

It reports every problem at once: the schema, unknown extension points, handles, requestable scopes and webhook topics. A field that is no longer part of a release, such as displayName, is a warning naming the field to use instead. A topic this version of the tool does not know is the warning TOPIC_UNKNOWN; Orbit decides at release time. If the API could not be reached and the shipped copies were used, the warning is SNAPSHOT_IN_USE.

People see ok <pluginId> or fail <pluginId> with the problems, then N valid, M with problems. Any failed plugin is VALIDATION_FAILED with exit 1. data is { results, sources, valid, failed }, with one result per plugin; on a failure the same object is in error.details. A file that cannot be read is a failed result, not a crash.

targets

Shell
npx @orbitcommerce/plugin-cli targets
FlagWhat it does
--offlineUse the registry shipped with the tool. No API call.

Lists the extension points a plugin can declare. data is { registryVersion, source, targets }; people see the same as a table.

release

Shell
npx orbit-plugin release --base-url https://plugins.example.com
FlagWhat it does
--env <env>dev, staging or prod. Default prod.
--base-url <url>Where the release is served from.
--activateMake the release live on every store that runs the plugin.
--notes <text>A note shown in the Releases list.
--dry-runValidate and print the body without signing in or sending anything.
--offlineUse the shipped copies of the schema and registry.

release reads plugin.json and, when present, plugin.<env>.json over it. It validates the result, and a problem means nothing is sent. The base URL comes from --base-url, else the overlay, else ORBIT_PLUGIN_BASE_URL; the value in plugin.json itself is used only for dev. A staging or production release must use https and must not point at localhost or 127.0.0.1. Fields that are not part of a release are left out, and legacy fields appear as warnings.

--activate asks first; --yes answers yes without a prompt. People see Created release N of <pluginId> (prod) and made it live. or, when the body is identical, Unchanged: release N already carries this configuration.

data is { pluginId, env, baseUrl, releaseNumber, deduplicated, activated, dryRun }. A dry run returns { pluginId, env, baseUrl, dryRun, request, notSent } instead: request is the body it would send, and notSent names the fields of plugin.json left out of it.

Shell
npx orbit-plugin install-link --store <uuid>
FlagWhat it does
--store <uuid>The store the link is for. Required.
--expires <duration>How long the link lasts, for example 7d.
--max-uses <n>How many times the link can be used.
--plugin <id>The plugin. Default plugin.json's.

An install link lets a merchant install your plugin on one store without the marketplace. The token is the one secret the tool prints, once: send the url to the merchant, because it is not stored anywhere else.

data is { pluginId, id, storeId, expiresAt, maxUses, installUrl, token }.

media add

Shell
npx orbit-plugin media add shot-1.png shot-2.png --alt "Stock history on the product page"
FlagWhat it does
--kind <kind>screenshot (the default) or icon.
--alt <text>Alt text for each picture, up to 200 characters.
--position <n>Screenshots only: the position of the first one, a whole number of 0 or more. The others follow it in the order given.
--dir <path>The plugin folder. Default the folder you are in.

media add adds pictures to the listing of the plugin in plugin.json: one icon, which replaces the current one, or one to ten screenshots, added in the order given. It works while the plugin is a draft, inactive or rejected; once it is live or in review, change the pictures in the partner dashboard. It needs partner-plugin:draft.

Each file must be a PNG, JPEG or WebP picture by its content as well as its name, and a file, not a link. Screenshots can be up to 5 MB each, the icon up to 512 KB. Every file is checked before anything is sent, so one bad file means nothing is uploaded.

On success data is { pluginId, added }, with { file, kind, url, imageId } for each picture, and people see Added 2 screenshots to <pluginId>: with each file and its url.

A file that fails the check is VALIDATION_FAILED with exit 1, the message Nothing was uploaded: fix these files first. and one problem per file: FILE_NOT_FOUND, FILE_IS_LINK, FILE_UNREADABLE, FILE_TYPE or FILE_TOO_LARGE. A bad flag, no file, more than one icon or more than ten screenshots is USAGE, and a plugin.json without a pluginId is MANIFEST_INVALID. Orbit's own refusals pass through with their sentences, such as a plugin that is live. If Orbit refuses a picture part way, error.details.added lists the ones already uploaded, so a second run can leave them out.

deploy

Shell
npx orbit-plugin deploy
FlagWhat it does
--dockerfile <path>The Dockerfile to build from: a relative path inside the plugin folder, of letters, digits, ., _, - and /. Default Dockerfile.
--plugin <id>The plugin. Default plugin.json's.
--no-waitReturn once the build has started, without following it.

deploy builds and deploys a plugin whose server Orbit hosts, from your source instead of an image you push. It needs Orbit to build your code, which is not available yet: see Deploy from your code. Until it is, deploy packs your folder and asks, then fails with NOT_FOUND and exit 5, and nothing is uploaded or built. Deploy by pushing an image instead, as Deploying describes.

deploy works through these steps in order:

  1. Packs the folder: what git would keep, with every .gitignore in the folder counted. .git, node_modules, .orbit, .DS_Store and .env files are never packed, though .env.example, .env.sample and .env.template are, so what dev and create write to .env.local stays on your computer. Symbolic links are skipped and named. A folder of more than 1 GB, or more than 200 MB once packed, is refused before anything is sent.
  2. Asks first, because every store that uses the plugin gets the new version once it is healthy. --yes answers yes.
  3. Uploads the packed source. Orbit builds the image from your Dockerfile and deploys it once its security scan passes.
  4. Prints the build log as it runs, then each step of the deploy, and ends with Deployed <image tag>. Ctrl+C stops following, not the build.

With --json, the build log goes to stderr, and deploy writes one event per line and then one result line:

Eventdata
source.packed{ files, bytes, skippedSymlinks }
build.created{ buildId, imageTag }
source.uploaded{ bytes }
build.queued{ buildId, status }
build.finished{ buildId, status, buildSeconds, imageDigest }
deploy.status{ deploymentId, status }, one for each new status

On success data is { pluginId, buildId, imageTag, imageDigest, buildStatus, buildSeconds, deploymentId, deploymentStatus, waited }.

A bad --dockerfile is USAGE, and so is --env: orbit-plugin deploy builds your plugin's server on Orbit hosting and has no --env., with the hint To create a release, run orbit-plugin release --env <env>. A missing Dockerfile or a folder that is too large is VALIDATION_FAILED with the problem DOCKERFILE_NOT_FOUND or SOURCE_TOO_LARGE. Answering no is INTERRUPTED: Nothing was uploaded or deployed. Orbit's own refusals pass through: INSUFFICIENT_SCOPE, NOT_FOUND, CONFLICT when a build is already running, RATE_LIMITED, and VALIDATION_FAILED with Orbit's sentence.

A failed upload, build or deploy is UPLOAD_FAILED, BUILD_FAILED or DEPLOY_FAILED, with exit 1. Each carries what is known in details: buildId, imageTag, buildStatus, deploymentId and deploymentStatus, plus timedOut: true when the tool stopped waiting while Orbit carries on: after an hour for a build, 30 minutes for a deploy. While it follows a build or a deploy, a read that fails on a passing problem is tried again; five failed reads in a row end the command with that error.

logs

Shell
npx orbit-plugin logs --follow
FlagWhat it does
--since <when>Where the window starts: 15m, 2h, 1d or an ISO date and time such as 2026-10-24T09:00:00Z. Default 15m.
--limit <n>The most lines one read returns, 1 to 500. Default 500.
--followKeep printing new lines every 3 seconds until Ctrl+C or SIGTERM.
--plugin <id>The plugin. Default plugin.json's.

logs shows the log of a plugin whose server Orbit hosts. It needs partner-hosting:read. People see <timestamp> <message> for each line, or No log lines since <time>.

Without --follow, data is { pluginId, since, lines, truncated, newestUnread, logGroupMissing }, where since is the time the window starts and each line is { timestamp, message, stream }. With --follow, each new line is a log.line event with { timestamp, message, stream }, and Ctrl+C or SIGTERM ends it with exit 0 and the result { pluginId, since, printed }.

The warnings are NO_LOG_LINES_YET (the server has not written a line yet), OLDER_LINES_NOT_SHOWN (the window holds more lines than --limit), NEWEST_LINES_NOT_READ (run it again in a moment) and, under --follow, LOG_LINES_SKIPPED (the server wrote more than --limit lines between two reads).

A bad --since or --limit is USAGE. A plugin that is not yours or not on Orbit hosting is NOT_FOUND, and RATE_LIMITED ends a single window, while --follow waits and carries on. Under --follow, a read that fails on a passing problem is tried again; five failed reads in a row end the command with that error.

For scripts and AI agents

--json puts only JSON on stdout: no colour, no progress, no warnings as prose. Progress, warnings and your plugin's own output go to stderr; under dev --json your plugin's lines carry an [app] prefix. --json implies --non-interactive.

A one-shot command writes exactly one result document. login writes one event first, login.waiting with { url }, so an agent can show the sign-in link, then its result. dev, deploy and logs --follow write one event per line and then one result line; read the last line.

Every line has schemaVersion and type. A result:

JSON
{
  "schemaVersion": 1,
  "type": "result",
  "ok": true,
  "command": "logout",
  "data": {
    "apiUrl": "https://api.myorbitcommerce.net",
    "revoked": true,
    "removed": true
  },
  "warnings": []
}

A failure is still a result document, with ok: false and an error instead of data:

JSON
{
  "schemaVersion": 1,
  "type": "result",
  "ok": false,
  "command": "whoami",
  "error": {
    "code": "NOT_LOGGED_IN",
    "message": "You are not signed in to https://api.myorbitcommerce.net.",
    "exitCode": 3,
    "hint": "Run orbit-plugin login."
  },
  "warnings": []
}

An event, as login writes it before the result:

JSON
{
  "schemaVersion": 1,
  "type": "event",
  "command": "login",
  "event": "login.waiting",
  "at": "2026-10-24T14:01:02.000Z",
  "data": {
    "url": "https://api.myorbitcommerce.net/oauth/mcp/authorize?client_id=..."
  }
}

warnings is an array of { code, message, path? } on every result. An agent should read the last line of stdout: if ok is false, read error.code and error.exitCode, and error.hint for what to do next.

The tool is interactive only when stdin and stdout are terminals, --json and --non-interactive are absent and CI is unset. When a command needs an answer and cannot ask, it fails with NEEDS_CONFIRMATION (exit 2) and names the flag that answers it, for example: You have no development store. Create "My plugin test store" with sample products, customers and orders? Pass --create-store or --yes to answer yes without a prompt. For the questions dev asks, pass --create-plugin, --create-store or --yes; for release --activate and deploy, pass --yes.

Exit codes

The process exits with the error's code. Human mode and --json agree.

ExitNameError codes
0OK
1FAILUREVALIDATION_FAILED, API_ERROR, EVENT_NOT_DELIVERED, CLEANUP_FAILED, MANIFEST_NOT_FOUND, MANIFEST_INVALID, TEMPLATE_UNAVAILABLE, DIRECTORY_NOT_EMPTY, INTERNAL, UPLOAD_FAILED, BUILD_FAILED, DEPLOY_FAILED
2USAGEUSAGE, NEEDS_CONFIRMATION, NOT_AVAILABLE
3AUTHNOT_LOGGED_IN, SESSION_ENDED, LOGIN_CANCELLED, LOGIN_TIMEOUT, LOGIN_FAILED, OAUTH_UNAVAILABLE
4PERMISSIONINSUFFICIENT_SCOPE, FORBIDDEN
5NOT_FOUNDNOT_FOUND
6CONFLICTCONFLICT
7NETWORKAPI_UNREACHABLE
8RATE_LIMITEDRATE_LIMITED
9TUNNELTUNNEL_UNSUPPORTED_PLATFORM, TUNNEL_DOWNLOAD_FAILED, TUNNEL_CHECKSUM_MISMATCH, TUNNEL_FAILED
10APPAPP_FAILED
130INTERRUPTEDINTERRUPTED

dev stopped by Ctrl+C or SIGTERM with a clean cleanup exits 0.

Secrets

Sign-in tokens live in sessions.json in the tool's config folder. The folder is ~/.orbit unless ORBIT_CONFIG_DIR says otherwise. It is created 0700 and the file is 0600. A refresh runs under a lock beside the file, so two copies of the tool never present the same refresh token.

The folder also holds config.json (the default API URL), dev.json (the development store chosen for a plugin), cache/plugin-schema.json (the API schema, with its etag) and bin/ (the verified cloudflared).

The tool never prints an access token, a refresh token or the webhook signing secret, and it is never given a link that signs you in to a store: partner-dev-store:sign-in answers only where Development stores is. The one exception is the install link token, which is shown once because the merchant needs it.

dev writes WEBHOOK_SECRET to .env.local in the plugin folder, at 0600, and changes no other line. --no-secret skips it. Add .env.local to .gitignore before you commit; the starters already do.

create writes a random TOKEN_ENCRYPTION_KEY to the same file, once: the starter encrypts stored store tokens with it. An existing value is kept.

dev needs a public https address that reaches your computer, because Orbit loads your plugin from outside. It runs a Cloudflare quick tunnel and gives you a https://<words>.trycloudflare.com address that points at your plugin's local port while dev runs. Anyone with the link can reach that port, so treat the link as public.

cloudflared 2026.10.0 is downloaded once to ~/.orbit/bin and checked against GitHub's published SHA-256 digest before it runs. Nothing unverified is executed or kept. A failed check names the ways round it:

  • --cloudflared <path> or ORBIT_CLOUDFLARED_PATH uses your own cloudflared.
  • --tunnel-url <https url> uses your own link, for a network that blocks trycloudflare.com or when you already run a tunnel.

The link is not stable. If it drops, dev starts a new one and makes a new test version on it. More than three drops in ten minutes ends the session with TUNNEL_FAILED.

Environment variables

The tool reads these:

VariableWhat it does
ORBIT_API_URLThe API to use. --api-url overrides it.
NEXT_PUBLIC_ORBIT_API_URLThe API for the SDK. Read after ORBIT_API_URL.
ORBIT_CONFIG_DIRWhere sessions and cloudflared live. Default ~/.orbit.
ORBIT_CLOUDFLARED_PATHYour own cloudflared. Same as --cloudflared.
CISet means never interactive.
NO_COLORNo colour in the output.

dev starts your plugin with these variables set, in addition to your own environment:

VariableValue
PORTThe port your plugin must listen on.
ORBIT_API_URLThe API the tool uses.
NEXT_PUBLIC_ORBIT_API_URLThe same API, with /graphql.
PLUGIN_PUBLIC_URLThe secure link, as Orbit hosting injects it.
ORBIT_PLUGIN_DEV1.
WEBHOOK_SECRETThe secret, when dev fetched it.

dev sets these itself, so a stale exported value in your shell cannot win over .env.local.

Troubleshooting

What you seeWhat to do
<url> does not offer partner sign-in. (OAUTH_UNAVAILABLE, with the hint On a local API set MCP_ENABLED=true and restart it.)The API you pointed at does not serve partner sign-in. Check the URL you passed to --api-url, or use https://api.myorbitcommerce.net. On a local API, set MCP_ENABLED=true and restart it.
Development stores are not available yetThe API you are using has development stores switched off. They are on in production for every approved partner, so check the URL you passed to --api-url.
Port N is already in use.Pass --port <n> for another port, or --no-app if your plugin is already running.
The link never comes up, or your network blocks trycloudflare.comPass --tunnel-url <your https link> from a tunnel you run yourself.
CLEANUP_FAILEDThe test version could not be removed. Run npx orbit-plugin dev --clear.
BROWSER_NOT_OPENEDEverything else in dev still runs. Open Development stores in the partner dashboard yourself and choose Open store on your test store.
Your sign-in has ended (revoked, expired or used elsewhere).Run npx @orbitcommerce/plugin-cli login again.

Moving from the private tool

  • deploy --env <env> is now release --env <env>. deploy is now the Orbit hosting command described under deploy, and answers --env with a usage error that points at release --env.
  • The keychain is gone, and so is ORBIT_PARTNER_REFRESH_TOKEN. Sign in with login; the session is kept in ~/.orbit/sessions.json at 0600.
  • validate --offline needs no sign-in and no API.
  • The tool no longer looks for a repository root, so it runs in any folder. There is no turbo.json to find.