Getting started
From an empty directory, paste this block into your shell:
curl -fsSL https://putnami.dev/install.sh | bash
export PATH="$HOME/.putnami/bin:$PATH"
putnami init webapp
putnami serve webappThe first line installs the putnami CLI under ~/.putnami. The second line
makes putnami reachable in the shell you are in. putnami init webapp
creates a workspace with a web app named webapp, and putnami serve webapp
runs it.
See it
This is the same block, run in an empty directory named hello, from a new
home directory, and sped up. … marks output left out.
Open http://webapp.localhost:3000/, the last URL that putnami serve
prints: a React web app, rendered on the server, answers. init takes about
40 s the first time, because it downloads Bun and the starter's packages.
This project is TypeScript. The same CLI runs Go, Python, Java, Rust and more.
Change it
Keep putnami serve running. Open webapp/src/app/page.tsx, change the text
Welcome to Putnami to your own words, and save. The terminal shows the
restart:
[watch] restarting server...
changed: webapp/src/app/page.tsx
…
serve(webapp) ● [putnami] 🤖 readyRefresh the page in your browser: it shows your words. The page does not reload by itself.
What you need
macOS and Linux, on amd64 or arm64, with Bash, curl, tar and
sha256sum or shasum, and network access to putnami.dev, the artifact
registry and https://npm.putnami.dev. Putnami does not support Windows for now.
Bun is not a prerequisite: Putnami installs Bun under
~/.putnami/toolchains/bun/bun-<version>/ when the machine holds none that
fits. The installer verifies every download, never asks for sudo, and writes
only under ~/.putnami. The CLI reference
covers versions, upgrades and every install option.
Next
- TypeScript: build on the starter you run now.
- Go:
putnami init --extension go --project apistarts a Go service, in another empty directory. - Cloud: deploy the workspace, with environments, build cache, CI and agents, as a hosted service.
Labs covers an existing repository, other languages, monorepo
tools, and what else is not stable yet. Python
is experimental. Experimental Python requires an explicit workspace opt-in:
putnami deps add @putnami/python, then putnami extensions install.