CLI reference
flypod rollback
Make a previous version of a flypod site live again, by version id, unambiguous prefix, or no argument for the previous version.
flypod rollback makes a previous version live again. With no argument it rolls back to the version immediately before the current live one.
Synopsis
flypod rollback [version] [flags]The version argument accepts an exact version_id or an unambiguous prefix of one. With no argument, flypod targets the previous version. The target site is resolved from the folder-to-site link, or from --site.
Flags
| Flag | Description |
|---|---|
--site <id> | Target a specific site id instead of the linked one. |
--token <manage_token> | Authorize with a manage_token instead of your session. |
--json | Emit a single JSON object. |
-h, --help | Print usage and exit. |
Examples
Roll back to the previous version:
flypod rollback ✓ Rolled back · version 7c0d19e2 is live
https://a3f1c2d4e5b60789.flypod.pageWhen stdout is not a terminal, the URL alone is printed there.
Roll back to a specific version by prefix:
flypod rollback 5a92Machine-readable output:
flypod rollback --json{
"ok": true,
"site_id": "a3f1c2d4e5b60789",
"live_version_id": "7c0d19e2a4b35f18",
"url": "https://a3f1c2d4e5b60789.flypod.page"
}Notes
- An unknown version fails with
no_such_version, and an ambiguous prefix withusage; either way it is decided before anything changes server-side. - flypod refuses to roll back (
no_such_version) when only one version exists, or when the live version is already the oldest. Pass a version id to roll forward. - Use
flypod versionsto find the version id or prefix to target.