localtool
Unified CLI for local development — DNS management and HTTPS certificates in one tool.
Installation
cargo install localtool
# Or build from source:
# git clone https://github.com/veduket/localtool
# cd localtool && cargo build --release && sudo cp target/release/localtool /usr/local/bin/Quick start
1
Initialize DNS
$ localtool dns init2
Add a domain
$ localtool dns add myapp.test 127.0.0.13
Apply DNS config
$ localtool dns apply4
Verify DNS
$ ping myapp.test5
Initialize SSL CA
$ localtool ssl init6
Generate HTTPS cert
$ localtool ssl generate myapp.testDNS Commands
All local-dns commands are available under localtool dns.
localtool dns add <domain> <ip>Add a DNS entry--zone, --group, --commentlocaltool dns remove <domain>Remove a DNS entrylocaltool dns move <domain>Move entry to another zone/group--zone, --grouplocaltool dns copy <domain>Copy entry to another zone/group--zone, --grouplocaltool dns edit <domain>Edit IP or comment--ip, --commentlocaltool dns listList all entrieslocaltool dns initInitialize DNS configurationlocaltool dns resetDelete database and re-initializelocaltool dns statusShow DNS system statuslocaltool dns applyApply DNS configurationlocaltool dns detectDetect system DNS setuplocaltool dns logsView dnsmasq logs--follow, --errors, --lineslocaltool dns profileManage profilescreate, switch, list, deletelocaltool dns zoneManage zonescreate, list, delete, showlocaltool dns groupManage groupscreate, list, deleteSSL Commands
All local-ssl commands are available under localtool ssl.
localtool ssl initInitialize CA and install system trustlocaltool ssl generate <domains>Generate HTTPS certificateslocaltool ssl listList all generated certificateslocaltool ssl show <domain>Show certificate detailslocaltool ssl trustReinstall CA system trustlocaltool ssl statusShow CA and certificate statuslocaltool ssl check <domain>Check certificate validityBackwards Compatibility
The standalone local-dns and local-ssl binaries continue to work as before. They are thin wrappers that delegate to the same underlying libraries.
# These still work:
local-dns add myapp.test 127.0.0.1
local-ssl generate myapp.test
# Equivalent unified commands:
localtool dns add myapp.test 127.0.0.1
localtool ssl generate myapp.test