CLI Reference
Project Discovery
Commands for auto-detecting projects and managing the project index.
Project Discovery
localdns provision
Auto-detect project type and provision a domain mapping. Reads package.json, detects framework (Next.js, React, Vue, etc.), and suggests domain and port.
localdns provision [path] [options]Aliases: prov
| Option | Description |
|---|---|
-d, --domain <domain> | Custom domain name (default: auto-generated) |
-p, --port <port> | Fixed port (default: auto-assign) |
-c, --cmd <command> | Custom command (default: auto-detect) |
--no-auto-start | Don't auto-start the daemon |
localdns provision
localdns provision ./apps/api --domain api.locallocaldns index
Scan filesystem directories and build a project index for fast searching.
localdns index [options]Aliases: scan
| Option | Description |
|---|---|
-p, --path <path> | Custom scan path (can be specified multiple times) |
--depth <depth> | Max scan depth (default: 3) |
--register | Auto-register discovered projects |
--json | Output as JSON |
localdns index
localdns index --path ~/Code --path ~/Work --depth 4
localdns index --registerlocaldns search
Search the project index.
localdns search [query] [options]Aliases: find
| Option | Description |
|---|---|
--json | Output as JSON |
--org <org> | Filter by GitHub organization |
--type <type> | Filter by project type |
localdns search myapp
localdns search --type nextjs --json