Self-host guides

Let your AI assistant get your game ready for Netlify

Paste one prompt. Your AI assistant prepares only the exported game and hands you one command; you run it to put the game on your own Netlify account, with nothing else uploaded.

Levels: Novice, Moderate, Advanced. Last checked: not yet in a second assistant (due Oct 14–16).

Course buyers: this guide is also lesson 8.5 Ask your assistant to host it for you.

What you'll get: your game online on your own Netlify account, with a hard-to-guess link and nothing else uploaded. Your AI assistant (Claude Code, Codex, Gemini CLI or Antigravity) does the fiddly part: it unzips the export into a temporary folder and writes the one deploy command for you. You run that command yourself. Handy if dragging folders around isn't your thing.

Why you press the button. Pixelora projects tell AI assistants never to upload or publish your game themselves: putting it online is your decision. So the assistant prepares everything and you run the last step.

Before you start: your packaged game (in the Pixelora editor, Export → Package my game saves a zip in your project's export/ folder). A free Netlify account (sign up at app.netlify.com). Your AI assistant open in the project folder, and a terminal you can paste a command into (Mac: Terminal; Windows: PowerShell).

Read this first. This guide sends your built game to Netlify, a public web host. The built game includes the photos in it (cleaned of location data), and anyone with the link can see them. Only the export goes online, never your project folder. The prompt below tells the assistant to:

  • use only the newest zip in export/, unzipped into a temporary folder outside the project;
  • never upload, commit or push anything itself, and not create a Git repository;
  • give you one command that deploys only that temporary folder, and the steps to delete it.
Noviceevery step, one path

1. Paste the prompt

Paste this into your AI assistant:

Paste into your AI assistant
Please get my Pixelora game ready to put online with Netlify, on my own Netlify account. Don't upload or deploy anything yourself; I will run the deploy command. Rules: use only the newest zip in this project's export/ folder and unzip it into a new temporary folder outside this project. Never upload, commit or push the project folder, photos/, .pixelize/ or anything else, and don't create any Git repository. Then give me one command to paste into a terminal that goes into that temporary folder and runs "npx netlify-cli deploy --dir . --prod --no-build", tell me what to answer when it asks about creating a project (suggest an unguessable name: a short word plus 6 random letters and digits), and tell me exactly how to delete the project afterwards.

You should see: the assistant unzips the export into a temporary folder (it asks before running commands; say yes when it only touches export/ and that folder), then gives you one command and the delete steps.

2. Run the command

Open a terminal, paste the command and press Enter. The first time, the Netlify CLI opens a browser page asking you to authorize it: log in and click Authorize. When it asks, choose to create a new project, pick your team, and type the unguessable name.

You should see: "Authorized" in the browser, then the deploy finishing in the terminal.

You should see: a line with your address, like https://biscuit-x7k2p9.netlify.app. Copy it, the project name (biscuit-x7k2p9) and the delete steps somewhere safe: updates need the name.

If something looks wrong

  • If the assistant offers to run the deploy itself, run git init, create a GitHub repository or use your project folder: say no, and paste the prompt again. Only the unzipped export goes online, and you run the deploy.

  • If the command starts building or mentions netlify.toml: stop it (Ctrl+C). It isn't running inside the temporary folder. Ask the assistant to fix the command.

  • If the login keeps looping: log in on app.netlify.com in the browser first, then run the command again.

  • If you see a blank page at the link: the wrong folder was deployed. Paste:

    Paste into your AI assistant
    The Netlify link shows a blank page. Check that the temporary folder has index.html directly inside it (the unzipped export from export/), and give me the command again to deploy only that folder to the same Netlify project. Don't upload anything yourself.
Moderatemore control

Pick a host together. Ask first, decide second: "Compare Netlify, itch.io and Cloudflare Pages for hosting my exported Pixelora game privately: cost, password options, how to delete. Don't deploy anything." Then adapt the prompt to the host you chose, keeping every rule in it.

Updating. Package again in the editor, then (with your project name): "Prepare the newest export the same way as before and give me the command to deploy it to my existing Netlify project with --site [project name], following the same rules." Without --site, the new temporary folder doesn't know your project and the CLI asks to link or create one.

Removed or replaced a photo? Every Netlify deploy keeps its own permanent link, so the old photo is still online in the older deploys. On Netlify, open Deploys, open each older deploy and delete it (the deploy's options → Delete deploy), keeping only the newest one. See Netlify Drop.

Advanceddo it yourself

A script you can rerun. Ask for a deploy.sh (or deploy.ps1) that finds the newest zip in export/, unzips it to a temp folder, and runs npx netlify-cli deploy --dir . --prod --no-build --site <your site id> from inside that temp folder (so no project file is picked up). Read it, then run it yourself; it should never reference photos/ or the project root.

Any static host. The export is plain static files with relative paths, so Cloudflare Pages (npx wrangler pages deploy <folder>), Vercel, Surge or your own server work the same way. Keep the same rules: only the unzipped export, and you run the upload.

Using Codex, Gemini CLI or Antigravity?
  • Codex / Gemini CLI / Antigravity: paste the same prompt. Each asks before running commands; check every command only touches export/ and the temporary folder.

How to take it down

Netlify → your project → Project configuration → Delete project, and confirm. The link stops working straight away.

Before you share

Do these four checks before you send the link to anyone:

  • Open the link in a private window (or incognito). The start screen appears and the game plays. If you set a password, it asks for it first. (Installed an app instead? Open it once with the phone in airplane mode.)
  • Test it on a phone, and if you can, on the kind of phone the person you made it for has.
  • Make sure the game page isn't listed in search (web links only; an installed app isn't online). A few days after publishing, search the web for your game's address: the game page shouldn't show up. It asks search engines not to list it (a noindex tag), but check anyway. This covers only the game page: on GitHub Pages, the public repository behind it can still be found on GitHub (see that guide's warning).
  • Know how to take it down. Read the "How to take it down" steps above and find the button before you need it.

Only share the link with people you trust, and only with photos of people who are happy to be in the game. Anyone who has the link (and the password, if there is one) can see the photos in it.