Skip to content

Quick Start

The easiest way to get started is to let lokl detect your project structure:

Terminal window
cd your-project
lokl init

This scans your project, detects services, and generates a lokl.yaml config file.

Create a lokl.yaml in your project root:

name: my-project
version: "1"
proxy:
domain: myproject.dev
services:
app:
command: pnpm dev
port: 3000
Terminal window
lokl up

This will:

  1. Start all services
  2. Generate HTTPS certificates
  3. Configure local DNS
  4. Open the interactive TUI

For custom domains to work, run once:

Terminal window
sudo lokl dns setup

This adds entries to /etc/hosts.

With the config above, your app is available at:

https://myproject.dev
KeyAction
j/kNavigate services
sStart service
xStop service
rRestart service
lToggle logs
pToggle proxy
qQuit