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
    gthonragents page deploy ./dist --name "Launch Site" --publish

    GthonrAgents saves the new site_id in gthonragents.toml.

  3. Deploy the next version.

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

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

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

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

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

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