@hamedb89/localghost 0.5.0 → 0.6.1
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/dist/cli.js +82 -19
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +36 -2
- package/dist/index.js.map +1 -1
- package/dist/vite.js +34 -0
- package/dist/vite.js.map +1 -1
- package/docs/localghost.1.md +10 -0
- package/package.json +1 -1
package/docs/localghost.1.md
CHANGED
|
@@ -148,6 +148,16 @@ localghost test --instance smoke-1 -- npm test
|
|
|
148
148
|
localghost test --instance smoke-2 -- npm test
|
|
149
149
|
```
|
|
150
150
|
|
|
151
|
+
### ports
|
|
152
|
+
|
|
153
|
+
Use `ports prune` to remove expired or dead leases while preserving remembered allocations. Use `ports prune --test-only` for test cleanup; it removes only stale `test:` leases and orphaned test allocations, preserving live sessions and other Localghost leases. Use `ports reset --yes` to clear the entire port registry, including remembered allocations.
|
|
154
|
+
|
|
155
|
+
```sh
|
|
156
|
+
localghost ports prune
|
|
157
|
+
localghost ports prune --test-only
|
|
158
|
+
localghost ports reset --yes
|
|
159
|
+
```
|
|
160
|
+
|
|
151
161
|
### ps
|
|
152
162
|
|
|
153
163
|
Shows Localghost `dev` and `run` sessions that are currently running on the machine. Stale records are pruned automatically when their wrapper process is gone. Each route also reports whether its upstream `127.0.0.1:<port>` is listening. Pass `--json` for menu bar helpers or other polling tools.
|