Sawala CloudSawala Cloud — Docs
Kodena

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 login

kodena 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 project

2. 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 install

kodena 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.id

That's <script-slug>-<org-handle>.kodena.id. Open it — your site is live.

4. Ship a change

Edit a file, then redeploy:

kodena deploy --build

A small edit doesn't re-upload everything — Kodena patches only the files that changed, so routine updates are fast.

What's next

Daftar Isi