@hamedb89/localghost 0.1.15 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -2
- package/dist/cli.js +169 -27
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +40 -4
- package/dist/index.js +83 -6
- package/dist/index.js.map +1 -1
- package/dist/vite.js +13 -0
- package/dist/vite.js.map +1 -1
- package/docs/localghost.1.md +6 -4
- package/package.json +1 -1
package/docs/localghost.1.md
CHANGED
|
@@ -9,8 +9,9 @@ localghost - friendly local hostnames for app repos
|
|
|
9
9
|
```sh
|
|
10
10
|
localghost [--cwd path] [--dry-run]
|
|
11
11
|
localghost init [--write-scripts] [--config file] [--host host] [--port port]
|
|
12
|
-
localghost doctor
|
|
12
|
+
localghost doctor [--cwd path] [--config file] [--config-pattern regex] [--json]
|
|
13
13
|
localghost setup [--project name] [--config file] [--config-pattern regex] [--https|--ssl]
|
|
14
|
+
localghost repair [--project name] [--config file] [--config-pattern regex] [--https|--ssl] [--trust] [--reallocate-port] [--prune-registry]
|
|
14
15
|
localghost trust [--project name] [--config file] [--config-pattern regex] [--https|--ssl]
|
|
15
16
|
localghost reset [--project name]
|
|
16
17
|
localghost teardown [--project name] [--remove-caddyfile]
|
|
@@ -71,13 +72,13 @@ Options:
|
|
|
71
72
|
|
|
72
73
|
### doctor
|
|
73
74
|
|
|
74
|
-
Checks machine prerequisites.
|
|
75
|
+
Checks machine prerequisites, the configured project port, and Localghost registry state. Use `--json` for agent-readable output. The command reports occupied ports, stale leases, and duplicate allocations without changing state.
|
|
75
76
|
|
|
76
77
|
```sh
|
|
77
78
|
localghost doctor
|
|
78
79
|
```
|
|
79
80
|
|
|
80
|
-
|
|
81
|
+
It checks Caddy and prints `brew install caddy` when missing.
|
|
81
82
|
|
|
82
83
|
### setup
|
|
83
84
|
|
|
@@ -97,11 +98,12 @@ localghost trust
|
|
|
97
98
|
|
|
98
99
|
### repair
|
|
99
100
|
|
|
100
|
-
Reconciles the managed hosts block, regenerates and validates the Caddyfile, and refreshes project setup state. Use `--https --trust` to also re-run Caddy's local certificate trust step.
|
|
101
|
+
Reconciles the managed hosts block, regenerates and validates the Caddyfile, and refreshes project setup state. Use `--https --trust` to also re-run Caddy's local certificate trust step. `--reallocate-port` selects and remembers a stable available replacement for an occupied port without editing `.localghost`. `--prune-registry` removes expired or dead leases.
|
|
101
102
|
|
|
102
103
|
```sh
|
|
103
104
|
localghost repair
|
|
104
105
|
localghost repair --https --trust
|
|
106
|
+
localghost repair --reallocate-port --prune-registry
|
|
105
107
|
```
|
|
106
108
|
|
|
107
109
|
### teardown
|