turnout-cli 0.16.1 → 0.18.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.
Files changed (2) hide show
  1. package/README.md +5 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -74,7 +74,7 @@ And see what has been going on:
74
74
 
75
75
  ```console
76
76
  $ turnout status
77
- turnout 0.16.1
77
+ turnout 0.18.0
78
78
  Data directory: ~/.local/share/lacodda/turnout
79
79
  Apps: 2 (api, web)
80
80
  Servers: 2 (prod-eu, staging)
@@ -85,8 +85,9 @@ Targets: 1 (web-prod-eu)
85
85
  Bindings:
86
86
  api -> staging
87
87
  web -> prod-eu
88
- Gateway: running (pid 24180; web:7100 -> VITE_API_URL, api:7101 -> TURNOUT_GATEWAY_URL)
88
+ Gateway: running (pid 24180)
89
89
  Front: http://localhost - http://NAME.localhost
90
+ Spare: web:7100 -> VITE_API_URL, api:7101 -> TURNOUT_GATEWAY_URL
90
91
  Recent:
91
92
  2026-08-09T01:15:02Z deploy web -> prod-eu (142 files)
92
93
  2026-08-09T01:12:44Z use web -> prod-eu
@@ -96,7 +97,7 @@ Recent:
96
97
 
97
98
  - **A dev gateway.** Apps always talk to `localhost`; turnout forwards to the selected stand over HTTP or HTTPS (self-signed certificates allowed per server), rewrites redirects, proxies WebSockets, and keeps a cookie jar per app+stand pair so switching does not log you out.
98
99
  - **One address per app.** `http://myapp.localhost` reaches the dev server turnout started for `myapp`, whichever port it took - the gateway's front door routes by name, and `*.localhost` needs no hosts file. The port is assigned once and handed to the server as `PORT` and `{port}`; `turnout open myapp` opens the address.
99
- - **The port is written once.** An app's gateway port lives in turnout only; the app is handed the address - `turnout dev` sets it as an environment variable the framework can see (`VITE_API_URL`, `REACT_APP_API_URL`, your pick), and a `.env.development.local` that turnout keeps in step covers a dev server started from an IDE. `build` never gets it, so a production bundle cannot bake in localhost.
100
+ - **You never type a port.** turnout assigns an app's gateway port when you register it and its dev port on the first `dev`; both live in turnout only, and the app is handed the address - `turnout dev` sets it as an environment variable the framework can see (`VITE_API_URL`, `REACT_APP_API_URL`, your pick), and a `.env.development.local` that turnout keeps in step covers a dev server started from an IDE. `build` never gets it, so a production bundle cannot bake in localhost.
100
101
  - **Servers, logins and paths kept apart.** A machine, the credential that logs into it and the directory files land in are three named entities. Define a deploy account once and point every stand at it; declare a web root once and reuse it across servers.
101
102
  - **Named deploy targets.** The four of them under one name: `turnout deploy web-prod-eu` from any directory, no flags to re-type. A first deploy that has no target yet offers to save the one it just used.
102
103
  - **Key access set up, not just used.** `turnout key setup prod` generates an ed25519 key, authorizes it on the server, proves it signs in and only then switches the credential over - so a server-side misconfiguration never costs you the password that still works. Windows servers included: an administrator account keeps its keys in a different file that sshd reads instead, and turnout writes to the right one.
@@ -156,7 +157,7 @@ Both installers take the newest release by default; set `TURNOUT_VERSION` to a t
156
157
 
157
158
  ```bash
158
159
  turnout setup # first-run wizard: creates the data directory
159
- turnout app add # register a project (detects its commands)
160
+ turnout app add # register a project (a wizard over every field)
160
161
  turnout server add # register a stand
161
162
  turnout use # bind one to the other
162
163
  turnout gateway start # route traffic through the gateway
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "turnout-cli",
3
- "version": "0.16.1",
3
+ "version": "0.18.0",
4
4
  "turnout": {
5
- "binary": "v0.16.1"
5
+ "binary": "v0.18.0"
6
6
  },
7
7
  "description": "A developer's switchyard: point local apps at any backend stand, keep servers and secrets at hand, build and deploy from any directory",
8
8
  "license": "MIT",