Local development
./bin/kesita dev setup./bin/kesita dev upUse ./bin/kesita dev status to inspect the environment and ./bin/kesita dev logs to follow it. The CLI help is the command reference:
./bin/kesita dev --help./bin/kesita dev up --helpChoose a mode
Section titled “Choose a mode”flowchart LR
CLI[kesita dev up] --> Host[Default<br/>Next.js on host]
CLI --> Container[--mode container<br/>app in Compose]
CLI --> Connected[--connected<br/>selected real dev services]
Host --> Local[Local PostgreSQL, Azurite,<br/>workers and simulations]
Container --> Local
Connected --> Shared[Shared legal corpus<br/>and real providers]
The default host mode gives the fastest frontend hot reload. Container mode runs the app with the rest of the Compose stack and is useful for image and networking parity. --connected is independent: it keeps product data local while using explicitly configured development integrations.
For connected development, copy infra/env/connected.env.example to the ignored infra/env/connected.env, fill only development credentials, then run:
./bin/kesita dev up app --connected./bin/kesita dev doctor --connectedWhat runs
Section titled “What runs”flowchart TB
Supervisor[Kesita supervisor] --> App[Product app]
Supervisor --> Compose[Local Compose dependencies]
Compose --> ProductDB[(Product PostgreSQL)]
Compose --> LegalDB[(Legal PostgreSQL)]
Compose --> Blob[Azurite]
Compose --> APIs[Product and Legal APIs]
Compose --> Workers[Product and corpus workers]
Compose --> Sim[Provider simulation]
Separate[Separate targets] --> Site[Public site]
Separate --> Docs[Docs site]
Start the public site with ./bin/kesita dev up site and docs with ./bin/kesita dev up docs. Simulated providers are the default and unmatched requests fail instead of reaching paid services.
Stop or reset
Section titled “Stop or reset”./bin/kesita dev down./bin/kesita dev resetreset destroys disposable local databases and emulator uploads, then rebuilds fixtures. Never use it against shared, staging, or production resources.
If startup fails, run ./bin/kesita dev doctor, then inspect status and logs. Fix the first unhealthy dependency before restarting the full stack.