Skip to content

Publish a Static Site

  1. Build the site locally.

    Terminal window
    npm run build
  2. Create and publish the first version.

    Terminal window
    anycap page deploy ./dist --name "Launch Site" --publish

    AnyCap saves the new site_id in anycap.toml.

  3. Deploy the next version.

    Terminal window
    anycap page deploy ./dist --publish
  4. Inspect or restore history.

    Terminal window
    anycap page versions
    anycap page rollback --version <version>

For a disposable report or preview that will not be updated:

Terminal window
anycap page deploy ./report.html --new --publish

The JSON response includes page_url, version, publication state, uploaded file count, and total bytes.

Terminal window
anycap page set --access password --password "<secret>"
anycap page set --spa-fallback