Publish a Static Site
-
Build the site locally.
Terminal window npm run build -
Create and publish the first version.
Terminal window anycap page deploy ./dist --name "Launch Site" --publishAnyCap saves the new
site_idinanycap.toml. -
Deploy the next version.
Terminal window anycap page deploy ./dist --publish -
Inspect or restore history.
Terminal window anycap page versionsanycap page rollback --version <version>
One-shot publishing
Section titled “One-shot publishing”For a disposable report or preview that will not be updated:
anycap page deploy ./report.html --new --publishThe JSON response includes page_url, version, publication state, uploaded file count, and total bytes.
Access and SPA settings
Section titled “Access and SPA settings”anycap page set --access password --password "<secret>"anycap page set --spa-fallback