DocsStart here
Quickstart
This takes about five minutes. You need a beta invite, a GitHub account, and Node.js 18 or newer on your machine for the CLI.
1. Sign in
Open the invite link you received. It is tied to your GitHub login and works once, within 14 days. Sign in with GitHub. Snapwake asks GitHub only for your public profile: no email, no repositories.
You can turn on an authenticator app as a second step later, under Settings → Two-step sign-in.
2. Install the CLI and log in
npm install -g snapwake
snapwake loginsnapwake login opens the console in your browser and prints a short code. Check that the page shows the same code, then approve. The CLI saves its token in ~/.flare/api.env (readable only by you) and never prints it.
On a machine without a browser, use snapwake login --no-browser and open the printed link anywhere you are signed in.
3. Deploy something
Any public Docker image works:
snapwake deploy --image traefik/whoami --port 80Or deploy your own code. Make a folder named hello with two files.
package.json:
{ "name": "hello", "scripts": { "start": "node server.js" } }server.js:
const http = require("node:http");
http
.createServer((req, res) => res.end(`hello from ${req.headers["x-forwarded-host"]}\n`))
.listen(process.env.PORT || 3000);Then, from inside the folder:
snapwake deploy .The app is named after the folder (hello). The CLI uploads the folder, the app's home server builds it in a throwaway VM, starts it, and the CLI waits until the new version answers:
→ hello: uploading the source (0.0 MB)
→ hello: v1764158400123 building on n2
→ hello: v1764158400123 live after 31.2 s: https://hello.snapwake.app/The first deploy of an app takes longer than later ones: the build has nothing cached yet.
4. Watch it sleep and wake
curl https://hello.snapwake.app/
snapwake status hellostatus shows whether the app is awake, how many VMs it runs and its health. Leave it alone for a short while and it goes to sleep; the next curl wakes it. See Sleep and wake for when exactly that happens.
5. Configure it
snapwake secret hello set GREETING=hi DATABASE_URL=postgres://...
snapwake redeploy hello # restart with the new values
snapwake logs hello -f # follow the log
snapwake scale hello --max 3 # up to 3 VMs under loadWhy redeploy: most apps read environment variables once, when they start. See Secrets.
6. Undo and clean up
snapwake rollback hello # back to the previous version, instantly
snapwake delete hello --yes # stops the app on every server; cannot be undoneNext
- Deploying an app: Dockerfiles, frameworks, ports, build arguments, private images.
- Sleep and wake: what your app must do to wake correctly. Most Node.js and Python apps need nothing.
- Volumes and SQLite if your app stores files or a database.