localbase is a lightweight tool for provisioning secure .local domains. It simplifies the process of setting up local development environments with HTTPS support.
go install github.com/noelukwa/localbase@latest
curl -sSL https://raw.githubusercontent.com/noelukwa/localbase/main/install.sh | sudo sh
✨ ensure caddy is setup and running
start the localbase service in foreground:
localbase start
start the localbase service in detached mode:
localbase start -d
add a new domain:
localbase add hello --port 3000
✨ now visit https://hello.local
remove a domain:
localbase remove hello
list all configured domains:
localbase list
stop the localbase service:
localbase stop