Skip to content

Undoing things

Bring back an earlier version of your website, from the dashboard or with your AI.

Published something you're not happy with after all? Don't panic. There are two ways to go back:

  • With one click you put back one of your last few publishes. We keep those ready to go, so it takes less than half a minute.
  • Through your AI you can go back to any earlier version, however old. That's because Git keeps every version of your website. It takes a little longer, because the website is then published again.

#Quickly back via the dashboard

This is the fastest way when something is wrong with your live website.

  1. Open your website in the dashboard and go to Publishes.
  2. Open the version that was still fine. You'll recognise it by the date and description.
  3. Put it back. Click Put back this version and confirm.
  4. Done. Within half a minute that version is back online. Nothing needs to be rebuilt.

#Back via your AI

You can also ask your AI:

  • "Put the previous version of my website back online."

Your AI uses npx -y @switchboard-host/cli@latest rollback for that. Without a number it goes back one version. With a number (the deployment number from the dashboard) it goes to that version, as long as it's one of the last few:

Terminal
npx -y @switchboard-host/cli@latest rollback 12

#Note: your files aren't back yet

Rolling back only changes what's online. The files on your computer still contain the newest version. The next time you publish, that newest version comes along again.

Want to really undo the change, or go back to an older version you can no longer put back with one click? Ask your AI:

  • "Undo the last change, so the website is back to how it was at deployment 12."
  • "Remove the new photo gallery again, the rest can stay."

Your AI can do that precisely, because Git keeps track of every version. Your AI then simply publishes the result again.

Was this helpful?

Guide

Search the guide

Type a word or a question. Tip: press Ctrl K to open this anywhere.