How to update a website you built with AI, safely
Four ways to change a site that is already live: a coding agent, a chat on your phone, a dropped folder or the site's dashboard. Preview first and go back anytime.
8 minute read
To update a site at DeployAI, open it in your dashboard and click Update site. If an AI coding agent built the site, the button copies its instructions: paste them to your agent in the site's own folder, say what to change, and the agent brings in the live code, makes the change and asks before it goes live. You can also drop a new folder or a .zip on the page, ask Claude or ChatGPT in a chat, or, for posts and pages, use the site's own dashboard with no AI at all. Every version is kept, so you can always go back.
This guide walks through each way, what happens between your request and the live site, and the problems people run into most.
Four ways to change a site
There is no single right way. Pick the one that matches the change and where you are.
| Way | Best for | What you need |
|---|---|---|
| A coding agent | Any change, small or large: new pages, design, forms, features | A computer with Claude Code, Codex, Cursor or another agent |
| A chat app | Small changes from anywhere, also from a phone | Claude or ChatGPT, connected once to DeployAI |
| Drop a folder | You or someone else already has the new files | The site's folder or a .zip of it, up to 50MB |
| The site's own dashboard | Posts, pages, messages, products | A site built with its dashboard |
All four lead to the same place: a new version of the same site, at the same address. You can mix them. Fix a typo from your phone in the morning, and add a new page with your agent in the evening.
Update with a coding agent
This is the way most sites built with AI are updated, and it handles any change.
- Open the site in your dashboard and click Update site. The instructions are copied on that click, and the page shows where to paste them.
- Open your agent in the site's own folder. If this is your first update on this computer, or the site was just handed to you, open a new chat in the site's folder, or in an empty folder. If you already worked on the site in a chat, you can continue there or open a new one. Both work, because the instructions carry everything the agent needs.
- Paste the instructions, and in the same message, or right after, say what you want changed.
This is what the instructions look like, with your own site's code in place of the marked one:
I prepared instructions for you on DeployAI. Run this first, before anything else, and follow what it prints: npx deployai@latest start YOUR-SITE-CODE Do not build, scan or download anything until it has printed your instructions. If it goes to the background, wait until it ends and read all of its output. You may run npx deployai@latest commands in this folder. If your tool needs my approval first, ask me a yes or no question with its clickable buttons, and name the command. Never ask me to copy or type a command. If it is still blocked after my yes, send me https://deployai.co.il/en/go-live#allow. If your sandbox stops a command before it starts, ask me with a clickable question to run it outside the sandbox. If anything still stops the start, read https://deployai.co.il/fix.md and do what it says. If you cannot run commands here, do not explain why. Say only: "I can't do this from here. Here is how to connect me:" and send me https://deployai.co.il/en/connect-ai/YOUR-SITE-CODE/chat, or https://deployai.co.il/en/connect-ai/YOUR-SITE-CODE/cloud if you run on a cloud computer and not on mine. If npx is missing, tell me in one sentence that Node.js is needed, send me https://deployai.co.il/en/guides/install-nodejs and ask with a clickable question whether you should install Node.js LTS for me. On yes, on Windows run winget install -e --id OpenJS.NodeJS.LTS --accept-package-agreements --accept-source-agreements and tell me to approve the Windows popup; on Mac or Linux run curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.41.0/install.sh | METHOD=script bash, then . ~/.nvm/nvm.sh && nvm install --lts. Make node work in this session without a restart (refresh PATH or load nvm), check it with node -v and go on. If the install fails, say so in one sentence and stop. Never install Node.js any other way. If it waits for my login, ask me to approve it in the browser. If npm or DeployAI cannot be reached and every other address fails too, it is your sandbox, not my internet: read https://deployai.co.il/fix.md. If only they fail, wait 15 seconds and run it again, up to 3 times. If it still fails, tell me in one short sentence, with no technical words, whether it is my internet or DeployAI, and ask with a clickable question whether you should try again. If I say no to a command, say in one sentence why it is needed and ask once more; after a second no, stop. Do not suggest another coding tool.
Do not copy from here. This code is different for every site, and the instructions do not work without it. For a new site, copy them from the go live page. For a site you already have with us, copy them from its Update page in the dashboard.
Get your instructionsThe command at the start does the technical part. In an empty folder it brings the code that is live right now, so the agent works on what is really on the site and not on an old copy. If the folder holds another project, it puts the site in a folder of its own and tells you the full path, so next time you open your agent there.
One line, one site
Each site has its own instructions, and they belong to that site only. If you have two sites, copy each one's line and give it its own chat. An agent that got one site's line does not offer to change the other site too. If you ask it to, it tells you to paste the other site's line in a new chat.
What the agent does next
The agent changes the code, then starts the site on your computer and gives you a link to look at it before anything is uploaded. When you are happy, it checks that the site can run on our hosting:
npx deployai@latest check npx deployai@latest deploy -m "New opening hours"
The check answers one question: can this project run here. If something cannot, the agent gets an exact list of what to fix, fixes it and runs the check again. The text after -m is a short note on the version, so you can tell versions apart later.
The agent uploads once what you asked for is done, not after every small edit, and says in short what changed. If your site waits for your yes (see Going live, below), it asks you: put it live, see a preview first, or not yet. If the site goes live by itself, the agent tells you the new version is live. A preview opens on your site's own address with a secret link, so you can check the new version in the real place while visitors still see the old one.
Update from a chat on your phone
Claude and ChatGPT can update your site from a regular chat, once you connect them to DeployAI. The connect your AI page shows how for each one. After that, write in the chat what to change, for example "change the opening hours on Friday to 9 to 14". The chat makes the change, uploads a version, and you approve it.
A chat is good for small, clear changes: a text, a price, a phone number, an image. For a new section or a redesign, a coding agent on a computer does better work.
Drop a new folder
If the new files already exist, for example a designer sent you an updated site, drop the folder or a .zip of it on the site's Update site page, or click Pick a folder. Files that are not part of the site, such as system files, are left out, and a file that holds a secret key is refused with an explanation, so the key never goes public.
The upload goes to a preview first. Check it, then click Go live.
Watch for one warning. If someone else put a newer version live after your last upload, the page says so before you upload, because your files may not include their changes and would undo them. You can download the live version first and work from it.
A site whose code lives in GitHub cannot take a dropped folder. Make the change in GitHub or with your agent.
Posts and pages without AI
Some sites come with their own dashboard: a small back office for posts, pages, messages from the contact form, a small shop or a gallery. If yours has one, it is the fastest way for content changes. Nothing to install, no prompt to write, and it works the same on a phone. A post you publish there is on the site at once, with no new version and no deploy.
Use the dashboard for content, and an agent for everything else: layout, design, new kinds of pages.
Going live, and going back
What happens after a new version is built depends on one setting in the site's Settings: Goes live by itself.
- On, the default: each new version goes live once it is built. A few still wait for your yes: a version built on older code than the live one, a version we flagged, and the first version of a moved site.
- Off: every new version waits on the site page until someone clicks Go live.
Changes to the site's database have a switch of their own under it. A change that deletes data always waits for your yes, whatever the switch says.
Every version you upload stays on the site's Versions tab, with who made it and its note. Something looks wrong after an update? Open Versions and click Go back to this version on the last good one. The site is back within seconds. One limit: going back does not undo changes to the database, and the page warns you when a version made them.
Old versions are never deleted unless you choose it. In Settings you can let them be removed when storage fills up, and the live version, the one before it and the newest five always stay. For a full copy of the site, the Backups tab downloads everything and restores from a copy.
Common problems
The agent asks which site to change. It should not. Copy a fresh line from the site's Update site page and paste it in a new chat in that site's folder.
The agent says the folder is not linked to a site. It was opened in the wrong folder. Open it in the site's folder, or in an empty one, and paste the line again.
The new version is built on old code. Someone put a newer version live while you worked. Ask the agent to bring in the live changes first, then upload again.
The upload was refused because storage is full. Delete old versions on the Versions tab, or pick a rule for old versions in Settings.
The agent is logged in with another DeployAI account. Ask it to run npx deployai@latest login --force and approve in the browser with the right account.
A teammate needs to update the site. Invite them on the site's Team tab as an editor. They get their own Update site button and their own login, and every version shows who made it.
If the site was handed to you by someone who built it, the guide handing a site over to a client explains what came with it and where to start.
Questions
How do I update a site I built with an AI agent?
In your dashboard, click Update site and the instructions are copied. Paste them to your agent in the site's folder and say what to change. The agent brings in the live code, changes it, checks it and uploads a new version.
Can I update my site from my phone?
Yes. Connect Claude or ChatGPT to DeployAI once, then write in the chat what to change. For posts, pages and messages, if your site has its own dashboard, you can do it there with no AI at all.
Should I open a new chat with my agent or continue the old one?
Both work, because the instructions hold everything the agent needs. For your first update on a new computer, or after a site was handed to you, open a new chat in the site's folder.
How do I go back to an earlier version if something breaks?
On the site's Versions tab, click Go back to this version on the last good one, and the site is back within seconds. Going back does not undo changes to the database.
Does an update go live right away?
By default, yes, once the version is built. In the site's Settings you can turn off Goes live by itself, and then each version waits for your yes, with a preview on the real address.