Build static output
Use whatever already produces files: Vite dist, Astro dist, exported Next.js, docs, reports, dashboards, or one HTML file.
For developers and coding agents with static output already on disk.
WGW Deploy is a CLI path for previews, repros, docs, dashboards, and agent output. Default deploys go from./dist to a publicwgw.lol URL. Every deploy also gives you an immutable pinned revision.
$ npm run build
created dist/
$ npx wgw-deploy
prepare ./dist
upload changed files
latest https://careful-fall-mqstr7zz.wgw.lol/
pinned https://careful-fall-mqstr7zz--26704cb219eb67f3.wgw.lol/Use whatever already produces files: Vite dist, Astro dist, exported Next.js, docs, reports, dashboards, or one HTML file.
Run the default command for dist, or pass --dir and --cwd when the output lives somewhere else.
Send the latest URL for live review and the pinned URL when the exact files need to stay reachable.
Assign a WGW subdomain or external custom hostname when a preview turns into something people should remember.
List local projects when you need state, then delete throwaway projects instead of leaving old URLs around.
Use the default command when the artifact isdist. Add flags only when the folder, domain, output format, or lifecycle needs more precision.
npx wgw-deployUses the dist folder in the current working directory and returns a latest URL plus a pinned revision URL.
npx wgw-deploy --dir ./publicUse this when the build output is not dist, or when the artifact is a folder of docs, reports, or static files.
npx wgw-deploy --cwd /path/to/app --dir buildProjects are tied to cwd and deploy directory, so this keeps repeated deploys attached to the same tracked project.
npx wgw-deploy --domain preview.example.comMaps the current project to a WGW subdomain or external hostname. External domains point a CNAME at cname.wgw.lol.
npx wgw-deploy --delete-domainReturns the project to its generated wgw.lol domain and starts a fresh generated-project expiration window.
npx wgw-deploy --list --jsonReads locally tracked projects, URLs, hashes, directories, and expiration state from the CLI project store.
npx wgw-deploy --skillGives coding agents the operating instructions for when to deploy, which URL to return, and what not to upload.
npx wgw-deploy --deleteRemoves the locally tracked project and the remote project when a temporary preview has done its job.
The latest URL is the moving pointer. The pinned URL is the fixed record. Use the one that matches the job instead of arguing about which file a reviewer saw.
https://careful-fall-mqstr7zz.wgw.lol/Use it for demos, review threads, docs, dashboards, and previews that should move forward with the next deploy.
https://careful-fall-mqstr7zz--26704cb219eb67f3.wgw.lol/Use it for bug reports, audits, evals, and handoffs where later deploys must not change the evidence.
Assign a WGW subdomain with a bare name, or assign an external hostname and point DNS at the CNAME target the CLI returns.
$ npx wgw-deploy --domain launch-preview
url https://launch-preview.wgw.lol/
pinned https://launch-preview--26704cb219eb67f3.wgw.lol/
$ npx wgw-deploy --domain docs.example.com --json
dns CNAME docs.example.com -> cname.wgw.lol
$ npx wgw-deploy --delete-domainWGW Deploy ships an agent skill so a coding agent can publish generated pages, repros, docs, dashboards, or reports without learning a hosting dashboard.
npx wgw-deploy --skillNo account flow. No project setup page. No localhost tunnel. Build the static output, deploy it, send the URL that matches the review.