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

    UseTrawsn saves the new site_id in usetrawsn.toml.

  3. Deploy the next version.

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

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

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

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

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

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