aft.page
v1.1.0Deploy a folder, build output, or public GitHub repo to a live URL.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
deploy Deploy to aft
Publish to a live URL. Pass html (one page) OR files (a built site, or a small app's source). Plain HTML → html. Vite/React → npm run build, then files from dist/. Next static export → files from out/; a static site needs index.html. Flask/FastAPI/Django/Express → the source files with requirements.txt or package.json; aft builds and runs it. Never upload node_modules, .venv, or .next/. First hit: preferred_slug from aft.json (include aft.json in files). Later: same slug + edit_token from .aft/state.json — every update is a new version (v1, v2…) at the same URL. Pass hold:true to k…
| Parameter | Type | Description |
|---|---|---|
edit_token | string | From first deploy / .aft/state.json. Required to update or rollback the same URL. |
expires | string | Optional quick-view expiry, e.g. "1h", "24h", "90s", "7d". Anonymous (unclaimed) deploys only — the link 404s after this. |
files | array | |
hold | boolean | Update only: build and verify but do not go live; promote later with aft_promote. |
html | string | One HTML document. Ignored if files is set. |
label | string | Short name for this version, e.g. 'before redesign'. |
preferred_slug | string | aft.json slug. Required with edit_token. |
deploy_repo Deploy a public GitHub repo
Same engine as aft.page/run: public GitHub URL → detect → build → live URL. Static is instant; Vite and Next.js build in the background (polls until live or failed). Private repos are refused. For a local project dir, use hosted CLI aft deploy instead.
| Parameter | Type | Description |
|---|---|---|
url * | string | GitHub URL or owner/repo, e.g. https://github.com/mdn/beginner-html-site |
aft_deploys List aft deploy history
List the versions (v1, v2…) of a slug with their label, door, commit and whether each is live or a held preview. Needs edit_token from .aft/state.json (or the first deploy). Same history the project UI shows after claim.
| Parameter | Type | Description |
|---|---|---|
edit_token * | string | From first deploy / .aft/state.json. Required to update or rollback the same URL. |
slug * | string | Site slug from aft.json or .aft/state.json |
aft_rollback Rollback aft.page site
Point the live slug at a prior version from aft_deploys, by version number or deploy_id. Same URL. Needs edit_token from .aft/state.json. Claim not required.
| Parameter | Type | Description |
|---|---|---|
edit_token * | string | From first deploy / .aft/state.json. Required to update or rollback the same URL. |
slug * | string | Site slug from aft.json or .aft/state.json |
deploy_id | string | deployId from aft_deploys |
version | integer | Version number from aft_deploys, e.g. 3 for v3 |
aft_promote Promote a held aft.page version
Make a held preview version live at the same URL. Pass version (e.g. 4) or deploy_id from aft_deploys. Needs edit_token.
| Parameter | Type | Description |
|---|---|---|
edit_token * | string | From first deploy / .aft/state.json. Required to update or rollback the same URL. |
slug * | string | Site slug from aft.json or .aft/state.json |
deploy_id | string | deployId from aft_deploys |
version | integer | Version number from aft_deploys, e.g. 3 for v3 |
aft_health Check aft API
Ping the aft deploy API.