sontairo CLI deploys static sites to Sontairo Hosting: link a directory to a site, run a security and performance doctor, and ship to production or a preview. It has zero dependencies and requires Node.js 18+.
Install
cli/ package of the Sontairo repository and exposes a single sontairo binary.
Commands
sontairo link <siteId>
Links the current directory to a site. The site ID (starts with site_) is shown in the site’s Settings. Linking writes a sontairo.json file in the directory recording the siteId.
sontairo doctor
Runs security and performance checks on the current directory without deploying. Blocking issues (✖) must be fixed before a deploy will proceed; warnings (▲) are advisory.
Blocking checks:
Warnings:
sontairo deploy
Deploys the current directory to production:
- Auth — reads the site ID from
sontairo.jsonand the deploy token from theSONTAIRO_DEPLOY_TOKENenvironment variable - Doctor — runs all checks; any blocking issue stops the deploy
- Upload — sends your files to Sontairo Hosting
- On success, prints the live URL:
✓ Deployed <n> files — live at <url>
--preview to deploy to the site’s preview target instead of production.
The CLI automatically skips node_modules, .git, build caches, OS junk files, sontairo.json, and all .env* files.
Deploy tokens
Deploys authenticate with a per-site deploy token instead of your login session:- Generate a token in the site’s Settings → Deploy token. Generating requires the ADMIN role.
- The token is shown once — store it immediately (for example in your CI secrets).
- Set it as the
SONTAIRO_DEPLOY_TOKENenvironment variable where you runsontairo deploy. - Generating a new token invalidates the previous one — use this to rotate a token you suspect is compromised.
