Deploy your first site
Scaffold a site from a template and ship it live on Kodena with the CLI — from nothing to a public URL in about ten minutes.
TODO: translate to Indonesian. English source is authoritative; render it into Indonesian below.
In this tutorial you'll deploy a working site to Kodena and get a public URL. Budget about ten minutes. You'll need a Sawala Cloud account, a project, and Node ≥ 20.
1. Install the CLI and sign in
npm i -g @sawala/kodena
kodena loginkodena login opens your browser to authorize — there's nothing to copy or paste. (Headless? See CLI & SDKs.)
Then pick where your site will live:
kodena org use <org-slug> # if you belong to more than one org
kodena project use <project> # the target project2. Scaffold from a template
The fastest start is a curated template:
kodena template list # see what's available
kodena init # pick one + a target directory
cd my-site
npm installkodena init writes the project and a ready-to-deploy kodena.json, so the next deploy works with no hand-editing.
Already have a project? Skip the scaffold. Just add a kodena.json with a slug, build your bundle, and deploy — see the CLI reference.
3. Deploy
kodena deploy --build--build runs your project's build first, then uploads the bundle. On success the CLI prints your live URL:
https://my-site-acme.kodena.idThat's <script-slug>-<org-handle>.kodena.id. Open it — your site is live.
4. Ship a change
Edit a file, then redeploy:
kodena deploy --buildA small edit doesn't re-upload everything — Kodena patches only the files that changed, so routine updates are fast.
What's next
- Add a custom domain — serve your site on your own hostname.
- CLI reference — every command, deploy flag, and
kodena.jsonoption.
What is Kodena
Kodena is Sawala Cloud's hosting & deployment product — ship a static site or a small Worker to the edge, with custom domains and one-command deploys.
How to add a custom domain
Serve a Kodena site on your own hostname — attach the domain, point a DNS record at Kodena, and let SSL provision automatically.