Export app code as a zip
Download any owned commit as a time-limited zip (every plan, owner-only).
Export one version
- Run
export_code {app, sha?};shadefaults tomain. - Require the owner role; export works on every plan.
- Download from the returned
urlwith itssha,bytes, andexpires_at. - Expect the zip to hold exactly the committed tree under
<slug>-<shortsha>/. - Stay under 256 MiB; larger trees refuse with a clear error.
- Download within 1 hour; the stored object is deleted after 24 hours.
For the person-side walkthrough, see How deploys work.