Reference

lessly_rollback

Promote a previous deployment back to production.

Tool

lessly_rollback

Promote a previous deployment back to production.

Re-promotes a known-good deployment to the live URL. No rebuild happens — the existing artifact is re-pointed, so rollback completes in seconds. The current production deployment remains queryable via lessly_list_deployments.

Arguments

Name Type Required Description
app string Slug of the Lessly app.
deployment_id string Deployment to roll back to. If omitted, rolls back to the most recent ready deployment before the current production one.
reason string Free-text note attached to the rollback event for the audit log.

Try it

Roll acme-store production back to deployment dpl_7w1j because checkout is broken.

When to use

Re-promotes a known-good deployment to the live URL. No rebuild happens — the existing artifact is re-pointed, so rollback completes in seconds. The current production deployment remains queryable via lessly_list_deployments.

Example

Ask your agent something like this:

Roll acme-store production back to deployment dpl_7w1j because checkout is broken.

The agent will invoke lessly_rollback with these arguments:

json
{
  "app": "acme-store",
  "deployment_id": "dpl_7w1j",
  "reason": "Checkout 500s after dpl_8x2k"
}

Esc

Start typing to search the docs.

navigate select