ankra pages
Deploy a folder, a single file or a zip as a static site at https://<site>.<pages domain>, and manage the sites of your organisation.--alias preview to try a
change, then ‘ankra pages promote docs --from preview’ to put it live, and
‘ankra pages rollback docs’ to go back.
Set the audience on a Pages edge with access controls by including a root
_access file in the deployed folder. Use organisation for members of the owning
organisation through Ankra SSO, or public for anyone with the URL. A private
production site also restricts its previews. Without a marker the managed edge
requires organisation sign-in. A self-hosted edge uses its configured default,
which can be public.
ankra pages delete
Delete a site, its aliases and every deployment of it. Its addresses stop serving at once, and its name becomes free for any organisation to take.ankra pages deploy
Deploy a folder, a single file or a zip and print the address it answers at. A folder deploys every file under it by its path. A single HTML file deploys as the site’s index.html; any other file deploys under its own name and the printed address points at it. A zip deploys its entries, and when every entry sits in one folder (what zipping a folder produces) that folder is dropped. Hidden files and folders (except .well-known), the metadata macOS adds and node_modules are left out, and named on stderr. A .jsx or .tsx component is refused: build it and deploy the output folder. The site is named with--site, or after the folder or file. It is created on
the first deploy. The deployment goes live under --alias, production unless
given.
Each file is hashed before anything is sent. A small site goes in one request;
a larger one declares its files by hash and uploads only those your
organisation does not hold yet, a few at a time, straight to storage.
The address is printed last, on its own line, so scripts can take the final
line of output; with -o json the deployment is printed as a JSON document
instead.
ankra pages deployments
List a site’s newest deployments, newest first, with the aliases that serve each one now. ALIAS is the alias a deployment was made for; SERVING is where it is live.ankra pages get
Show a site and the deployment each of its aliases servesankra pages list
List your organisation’s sitesankra pages promote
Point the site’s production alias at the deployment another alias serves now, and print the production address. The other alias keeps serving it.ankra pages rollback
Point the site’s production alias back at an earlier deployment and print the address. Without--to it returns to the newest ready deployment made for production
before the one production serves now, which after deploys alone is what
production served before. The platform records where each deployment was
made, not every place an alias has pointed, so a second rollback steps back
once more, and a deployment that reached production only by ‘promote’ is
not chosen: name it with --to.