Deployments, releases, previews and rollback

How a package becomes the live version of your game, how to preview it privately, ship updates safely and roll back in one step.

In short

  • Every package you upload becomes a deployment. If it passes validation it is ready; promoting it makes it the release players get.
  • Promotion is atomic: players switch from one complete build to the next, never a mix of both.
  • Rolling back is just promoting an earlier ready deployment. Nothing is rebuilt and it takes effect at once.
  • Your team can open any release privately with a 15-minute team preview link, even while the game page is a draft.
  • We keep your 10 newest ready deployments per project for rollback; older ones are retired.

The words we use

  • Package: the .opkg file you build with oneprompt package. It is immutable: identified by its SHA-256.
  • Deployment: one upload of a package to a project, with its own id, status, diagnostics and timeline. Uploading the same package twice creates two deployments.
  • Environment: where a deployment is served. Players are served from production, and that is the only environment the platform offers today.
  • Release: the deployment currently promoted in production, with an increasing release number. The Release history on your project page lists every promotion, who made it and why.

The life of a deployment

A deployment moves through these statuses:

  1. created and uploading: the upload is under way.
  2. uploaded: the bytes have arrived and their size matched.
  3. validating: we check the archive, manifest and files, compare the SHA-256 and scan for malware.
  4. ready: it passed and can be promoted. Or failed: it did not, and the diagnostics explain why.
  5. promoting, then active: it is the live release. When you promote something else, the previous active deployment goes back to ready, so you can return to it later.
  6. retired: it was released by the retention policy and can no longer be promoted.

Failed deployments stay visible with their diagnostics so you (or your agent) can fix the problem and deploy again.

Promoting a deployment

You have three ways to make a ready deployment live:

  • Dashboard: Projects → your project → Deployments, then Promote next to a ready deployment.
  • CLI: oneprompt deploy game.opkg --project <id> --promote deploys and promotes in one go. To promote an existing ready deployment, use oneprompt rollback --project <id> --to <deployment-id>.
  • Agent: the oneprompt_deploy tool with promote: true, or oneprompt_deployment_promote.

Promotion needs the deployments:promote scope for tokens. You can give an agent only deployments:write so it can upload and validate but never change what players see.

After promotion, files are served with Cache-Control: no-cache and ETags, so players get the new build on their next load. A player who is already playing keeps the build they loaded until they reload.

Rolling back

Something wrong with the new release? Promote the previous one:

  1. Open Dashboard → Projects → your project.
  2. In Deployments, find the last good deployment. Deployments that have been live before show Roll back to this.
  3. Click it. The rollback is immediate and appears in the release history.

From the terminal:

oneprompt rollback --project <project-id> --to <deployment-id> --reason "crash on level 2"

Rollback works for any deployment that is still ready. It does not touch your game page, price or access settings.

Previewing privately

Until your game page is published, the game's own address shows a short "not public yet" page to everyone except your team. To look at the release yourself:

  • In the dashboard, click Open game next to the link on your project page. This creates a team preview link that is valid for 15 minutes and opens the game in a new tab.
  • Agents get the same kind of link as preview_url from oneprompt_deploy.
  • The CLI uses such a link automatically to verify each promotion.

Team preview links are also how you open invite-only and premium games directly, without going through the play page.

What changes when you ship an update

Promoting a new deployment changes only the game files. The game page, its review state, the price and who can play stay as they are. Updating the build of a published game does not need a new review, and it refreshes the date search engines see for your game in the sitemap.

If your update changes what players see on the game page (new screenshots, a new title), edit the page as well; see Review, publishing and unpublishing.

Retention and storage

  • We keep the 10 newest ready deployments per project. When a newer one becomes ready, the oldest ready one beyond that is retired. The active release is never retired.
  • Packages count towards your storage quota (5 GB on both plans). An update briefly holds two builds, which is why the quota leaves room for large Unity builds.
  • If an upload would exceed your quota, it fails with QUOTA_EXCEEDED. Your live games keep running. See The Creator plan and your limits.

Reading a failed deployment

  1. Open Dashboard → Projects → your project. The Deployments table shows failed and the failure code.
  2. Click the deployment's date. Diagnostics lists every issue with its code, the path in your package or manifest, and a hint. Timeline shows each validation step.
  3. Fix the build or oneprompt.yaml, run oneprompt validate, and deploy again.

With the CLI: oneprompt deployment get <id> --project <id> and oneprompt logs <id> --project <id>. With an agent: oneprompt_deployment_get and oneprompt_logs_get, or the diagnose_failed_deployment prompt. The codes are explained in Package your game and Troubleshooting.

Deleting a project

Dashboard → your project → Delete project takes the game offline and marks the project for deletion. For 7 days the project page shows Restore project, which brings it back. After that it is deleted for good. Its link stays reserved for 30 days after deletion, so nobody else can take it over in the meantime.