Quickstart
Deploy a static site in two minutes.
Preview. This works today, but the surface may still change.
This walkthrough deploys a static site — any framework's build output, or a directory of plain HTML. It assumes the CLI is installed and you are signed in.
1. Build your site
Use whatever you already use:
bun run build # astro build, vite build, next build with output: "export", …The result is a directory of files — dist/, build/, out/. That
directory is what gets deployed. The framework is your business, not ours;
Frameworks has the details for the common ones.
2. Describe the app
Create pilvia.app.json in the project root:
{
"name": "my-site",
"auth": "public",
"assets": "dist"
}Each line is worth a pause:
"name"becomes the hostname,<name>.pilvia.app, and names are unique across the platform, so a name likemy-siteis likely taken. Pick your own, or leavenameout and the platform mints one (see the tip below)."auth": "public"is an explicit choice. The platform default isrequired— an app with noauthkey is served only to signed-in users of your organization. Nothing goes public by accident, including a half-finished customer site. Sign-in needs an organisation, which an early-access account does not include: see Authentication."assets"points at the build output. A release of assets with no server code is a complete site — the host serves it and no isolate ever runs.
3. Deploy
pilvia app deployThe first deploy creates the app; every later one updates it. The CLI hashes your files, asks the server which of them it has never seen, uploads only those, and activates the release — an unchanged redeploy moves zero bytes, and a typical edit moves a few files. Your site is live at:
https://my-site.pilvia.appTLS is already on. Every response carries an honest cache policy you can read in the headers — see Caching.
4. Iterate
-
Ship a fix:
bun run build && pilvia app deploy— seconds, differential. -
Take it back:
pilvia app rollback my-sitereturns to the previous release. -
See what's running:
pilvia app listshows each app's active release and the git commit it was built from. -
Share a draft:
pilvia app deploy --branchgives the branch you are on its own URL and leaves production alone. Every deploy also prints an immutable build URL. See Preview URLs.
Where next
- A form handler with zero client JavaScript: Server functions
- Astro with on-demand rendering: the Astro adapter
- Your customer's real domain: Custom domains