Quick Start
Auto-detect your project
Section titled “Auto-detect your project”The easiest way to get started is to let lokl detect your project structure:
cd your-projectlokl initThis scans your project, detects services, and generates a lokl.yaml config file.
Or create manually
Section titled “Or create manually”Create a lokl.yaml in your project root:
name: my-projectversion: "1"
proxy: domain: myproject.dev
services: app: command: pnpm dev port: 3000Start your environment
Section titled “Start your environment”lokl upThis will:
- Start all services
- Generate HTTPS certificates
- Configure local DNS
- Open the interactive TUI
DNS Setup
Section titled “DNS Setup”For custom domains to work, run once:
sudo lokl dns setupThis adds entries to /etc/hosts.
Access your services
Section titled “Access your services”With the config above, your app is available at:
https://myproject.devTUI Controls
Section titled “TUI Controls”| Key | Action |
|---|---|
j/k | Navigate services |
s | Start service |
x | Stop service |
r | Restart service |
l | Toggle logs |
p | Toggle proxy |
q | Quit |