@rocket.chat/houston 0.27.0-next.3 → 2.1.8

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 (293) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +108 -15
  3. package/bin/houston +62 -0
  4. package/data/docs/ARCHITECTURE.md +387 -0
  5. package/data/docs/automation.md +107 -0
  6. package/data/docs/e2ee.md +76 -0
  7. package/data/docs/eks.md +258 -0
  8. package/data/docs/gui.md +282 -0
  9. package/data/docs/guide.md +669 -0
  10. package/data/docs/kubernetes.md +138 -0
  11. package/data/docs/troubleshooting.md +193 -0
  12. package/data/docs/upgrading.md +84 -0
  13. package/data/docs/voice.md +253 -0
  14. package/data/iam/engineer-policy.json +11 -0
  15. package/data/iam/engineer-rbac.yaml +42 -0
  16. package/data/iam/operator-policy.json +211 -0
  17. package/data/loadtest/badbot.js +22 -0
  18. package/data/loadtest/common.js +168 -0
  19. package/data/loadtest/custom.js +20 -0
  20. package/data/loadtest/journey.js +58 -0
  21. package/data/loadtest/login.js +18 -0
  22. package/data/loadtest/messages.js +13 -0
  23. package/data/loadtest/mixed.js +39 -0
  24. package/data/loadtest/read.js +12 -0
  25. package/data/loadtest/webhook.js +20 -0
  26. package/data/monitoring/houston-logs.json +98 -0
  27. package/data/monitoring/k6-loadtest.json +610 -0
  28. package/data/monitoring/mongodb-exporter.json +3007 -0
  29. package/data/monitoring/node-exporter-full.json +16114 -0
  30. package/data/monitoring/rocketchat-metrics.json +6471 -0
  31. package/data/presets/airgapped.yaml +16 -0
  32. package/data/presets/default.yaml +9 -0
  33. package/data/seed/avatar-0.png +0 -0
  34. package/data/seed/avatar-1.png +0 -0
  35. package/data/seed/avatar-2.png +0 -0
  36. package/data/seed/avatar-3.png +0 -0
  37. package/data/seed/avatar-4.png +0 -0
  38. package/data/seed/avatar-5.png +0 -0
  39. package/data/seed/avatar-6.png +0 -0
  40. package/data/seed/avatar-7.png +0 -0
  41. package/data/seed/seed-metrics.csv +3 -0
  42. package/data/seed/seed-preview.png +0 -0
  43. package/data/seed/seed-report.pdf +32 -0
  44. package/data/seed/seed-runbook.txt +3 -0
  45. package/data/skill/SKILL.md +399 -0
  46. package/data/versions.yaml +55 -0
  47. package/data/voice/freeswitch/drachtio.xml +52 -0
  48. package/data/voice/freeswitch/public.xml +87 -0
  49. package/data/webui/app.css +2003 -0
  50. package/data/webui/index.html +678 -0
  51. package/data/webui/js/api.js +561 -0
  52. package/data/webui/js/boot.js +44 -0
  53. package/data/webui/js/clusters-tail.js +1377 -0
  54. package/data/webui/js/clusters.js +896 -0
  55. package/data/webui/js/create.js +276 -0
  56. package/data/webui/js/detail.js +507 -0
  57. package/data/webui/js/jobs.js +636 -0
  58. package/data/webui/js/logs.js +634 -0
  59. package/data/webui/js/main.js +14 -0
  60. package/data/webui/js/options.js +408 -0
  61. package/data/webui/js/people.js +438 -0
  62. package/data/webui/js/perf.js +303 -0
  63. package/data/webui/js/render.js +438 -0
  64. package/data/webui/js/shared.js +3 -0
  65. package/data/webui/js/state.js +583 -0
  66. package/data/webui/js/theme.js +123 -0
  67. package/data/webui/js/util.js +584 -0
  68. package/dist/cli/app.js +593 -0
  69. package/dist/cli/capabilities.js +76 -0
  70. package/dist/cli/cell-widths.js +495 -0
  71. package/dist/cli/entry.js +10 -0
  72. package/dist/cli/error-panel.js +492 -0
  73. package/dist/cli/handlers/actor.js +84 -0
  74. package/dist/cli/handlers/https.js +614 -0
  75. package/dist/cli/handlers/prompt.js +299 -0
  76. package/dist/cli/handlers/users.js +226 -0
  77. package/dist/cli/handlers.js +3678 -0
  78. package/dist/cli/help.js +183 -0
  79. package/dist/cli/index.js +15 -0
  80. package/dist/cli/perf.js +810 -0
  81. package/dist/cli/render.js +254 -0
  82. package/dist/cli/serve.js +858 -0
  83. package/dist/cli/spec-data.js +2593 -0
  84. package/dist/cli/spec-types.js +8 -0
  85. package/dist/cli/usage-error.js +520 -0
  86. package/dist/cli/wire.js +70 -0
  87. package/dist/core/audit.js +346 -0
  88. package/dist/core/backup-compat.js +85 -0
  89. package/dist/core/backup.js +1639 -0
  90. package/dist/core/cluster.js +1398 -0
  91. package/dist/core/configimport.js +344 -0
  92. package/dist/core/data.js +267 -0
  93. package/dist/core/database-of.js +82 -0
  94. package/dist/core/diagnose.js +159 -0
  95. package/dist/core/doctor.js +1518 -0
  96. package/dist/core/edge/acme.js +338 -0
  97. package/dist/core/edge/engine.js +500 -0
  98. package/dist/core/edge/networks.js +174 -0
  99. package/dist/core/edge/paths.js +107 -0
  100. package/dist/core/edge/routes.js +251 -0
  101. package/dist/core/edge/routeyml.js +195 -0
  102. package/dist/core/edge/runtime.js +493 -0
  103. package/dist/core/edge/spec.js +305 -0
  104. package/dist/core/edge/types.js +202 -0
  105. package/dist/core/eks-docs.js +135 -0
  106. package/dist/core/eks.js +2240 -0
  107. package/dist/core/envvars.js +562 -0
  108. package/dist/core/eventlog.js +541 -0
  109. package/dist/core/firstrun.js +153 -0
  110. package/dist/core/journal.js +691 -0
  111. package/dist/core/kube/ask.js +231 -0
  112. package/dist/core/kube/capabilities.js +269 -0
  113. package/dist/core/kube/certmanager.js +452 -0
  114. package/dist/core/kube/chart.js +413 -0
  115. package/dist/core/kube/cluster.js +196 -0
  116. package/dist/core/kube/context.js +545 -0
  117. package/dist/core/kube/endpoints.js +448 -0
  118. package/dist/core/kube/exec.js +195 -0
  119. package/dist/core/kube/forward.js +732 -0
  120. package/dist/core/kube/grafana-ingress.js +110 -0
  121. package/dist/core/kube/ingress.js +218 -0
  122. package/dist/core/kube/manifests.js +361 -0
  123. package/dist/core/kube/monitoring.js +768 -0
  124. package/dist/core/kube/names.js +237 -0
  125. package/dist/core/kube/namespace.js +678 -0
  126. package/dist/core/kube/operator.js +941 -0
  127. package/dist/core/kube/probe.js +202 -0
  128. package/dist/core/kube/reachability.js +163 -0
  129. package/dist/core/kube/release.js +439 -0
  130. package/dist/core/kube/replicaset.js +180 -0
  131. package/dist/core/kube/scale.js +398 -0
  132. package/dist/core/kube/status.js +633 -0
  133. package/dist/core/kube/tools.js +238 -0
  134. package/dist/core/kube/transfer.js +173 -0
  135. package/dist/core/kube/workspace.js +423 -0
  136. package/dist/core/lifecycle/admin.js +64 -0
  137. package/dist/core/lifecycle/create-docker.js +1533 -0
  138. package/dist/core/lifecycle/create-k8s.js +939 -0
  139. package/dist/core/lifecycle/destroy.js +339 -0
  140. package/dist/core/lifecycle/inspect.js +635 -0
  141. package/dist/core/lifecycle/naming.js +298 -0
  142. package/dist/core/lifecycle/notes.js +726 -0
  143. package/dist/core/lifecycle/ownership.js +313 -0
  144. package/dist/core/lifecycle/payload.js +401 -0
  145. package/dist/core/lifecycle/ports.js +388 -0
  146. package/dist/core/lifecycle/preconditions.js +367 -0
  147. package/dist/core/lifecycle/pruning.js +551 -0
  148. package/dist/core/lifecycle/ready.js +753 -0
  149. package/dist/core/lifecycle/request.js +525 -0
  150. package/dist/core/lifecycle/seeding.js +281 -0
  151. package/dist/core/lifecycle/sizing.js +392 -0
  152. package/dist/core/lifecycle/state.js +286 -0
  153. package/dist/core/lifecycle/tlsplan.js +704 -0
  154. package/dist/core/lifecycle/types.js +232 -0
  155. package/dist/core/loadtest.js +995 -0
  156. package/dist/core/migrate.js +612 -0
  157. package/dist/core/monitor.js +494 -0
  158. package/dist/core/postready.js +969 -0
  159. package/dist/core/promote.js +804 -0
  160. package/dist/core/rcapi.js +1285 -0
  161. package/dist/core/recovery.js +75 -0
  162. package/dist/core/runner/engine.js +394 -0
  163. package/dist/core/runner/host.js +298 -0
  164. package/dist/core/runner/locks.js +129 -0
  165. package/dist/core/runner/paths.js +173 -0
  166. package/dist/core/runner/ports.js +172 -0
  167. package/dist/core/runner/queries.js +612 -0
  168. package/dist/core/runner/record.js +563 -0
  169. package/dist/core/scaleseed.js +271 -0
  170. package/dist/core/seed-db.js +208 -0
  171. package/dist/core/sessions.js +472 -0
  172. package/dist/core/skill.js +326 -0
  173. package/dist/core/sso-identities.js +172 -0
  174. package/dist/core/sso.js +703 -0
  175. package/dist/core/tls-local.js +311 -0
  176. package/dist/core/tls.js +878 -0
  177. package/dist/core/topology.js +482 -0
  178. package/dist/core/upgrade.js +868 -0
  179. package/dist/core/users.js +739 -0
  180. package/dist/lib/audit.js +100 -0
  181. package/dist/lib/close-matches.js +238 -0
  182. package/dist/lib/compose.js +672 -0
  183. package/dist/lib/config.js +1398 -0
  184. package/dist/lib/context.js +18 -0
  185. package/dist/lib/errors.js +305 -0
  186. package/dist/lib/events.js +208 -0
  187. package/dist/lib/float-text.js +126 -0
  188. package/dist/lib/format.js +1320 -0
  189. package/dist/lib/home.js +325 -0
  190. package/dist/lib/journal.js +122 -0
  191. package/dist/lib/json-text.js +733 -0
  192. package/dist/lib/jsonout.js +382 -0
  193. package/dist/lib/lock.js +516 -0
  194. package/dist/lib/login-name.js +202 -0
  195. package/dist/lib/map-limit.js +29 -0
  196. package/dist/lib/mkdir-parents.js +90 -0
  197. package/dist/lib/mongo-kernel.js +67 -0
  198. package/dist/lib/monitoring.js +492 -0
  199. package/dist/lib/platform-name.js +59 -0
  200. package/dist/lib/presets/common.js +390 -0
  201. package/dist/lib/presets/composite.js +326 -0
  202. package/dist/lib/presets/e2ee.js +143 -0
  203. package/dist/lib/presets/email.js +172 -0
  204. package/dist/lib/presets/guides.js +27 -0
  205. package/dist/lib/presets/index.js +490 -0
  206. package/dist/lib/presets/keycloak.js +369 -0
  207. package/dist/lib/presets/ldap.js +1285 -0
  208. package/dist/lib/presets/livechat.js +220 -0
  209. package/dist/lib/presets/multi-instance.js +124 -0
  210. package/dist/lib/presets/oidc.js +161 -0
  211. package/dist/lib/presets/public.js +496 -0
  212. package/dist/lib/presets/registry.js +64 -0
  213. package/dist/lib/presets/s3-minio.js +300 -0
  214. package/dist/lib/presets/saml.js +149 -0
  215. package/dist/lib/presets/scenario.js +51 -0
  216. package/dist/lib/presets/types.js +86 -0
  217. package/dist/lib/presets/voice-pbx.js +320 -0
  218. package/dist/lib/presets/voice.js +345 -0
  219. package/dist/lib/presets/webhooks.js +182 -0
  220. package/dist/lib/redact.js +106 -0
  221. package/dist/lib/seed-options.js +68 -0
  222. package/dist/lib/seed-profiles.js +59 -0
  223. package/dist/lib/targz.js +1383 -0
  224. package/dist/lib/teammode.js +25 -0
  225. package/dist/lib/tempdir.js +162 -0
  226. package/dist/lib/unicode-tables.js +2335 -0
  227. package/dist/lib/version-spec.js +357 -0
  228. package/dist/lib/versions.js +463 -0
  229. package/dist/lib/yaml-dump.js +1361 -0
  230. package/dist/perf/baseline.js +168 -0
  231. package/dist/perf/constrain.js +296 -0
  232. package/dist/perf/k6.js +235 -0
  233. package/dist/perf/mongoprof.js +171 -0
  234. package/dist/perf/rcmetrics.js +178 -0
  235. package/dist/perf/report.js +386 -0
  236. package/dist/perf/resources.js +224 -0
  237. package/dist/perf/slo.js +111 -0
  238. package/dist/perf/timeline.js +187 -0
  239. package/dist/perf/timings.js +85 -0
  240. package/dist/perf/verdict.js +201 -0
  241. package/dist/seams/aws-cli.js +126 -0
  242. package/dist/seams/docker-cli.js +280 -0
  243. package/dist/seams/exec.js +861 -0
  244. package/dist/seams/fs/lock.js +528 -0
  245. package/dist/seams/kubectl.js +83 -0
  246. package/dist/seams/rc-http.js +921 -0
  247. package/dist/seed/apply.js +190 -0
  248. package/dist/seed/assets.js +76 -0
  249. package/dist/seed/check.js +391 -0
  250. package/dist/seed/client.js +172 -0
  251. package/dist/seed/executor.js +726 -0
  252. package/dist/seed/history.js +281 -0
  253. package/dist/seed/kinds.js +91 -0
  254. package/dist/seed/plan.js +432 -0
  255. package/dist/seed/receipt.js +339 -0
  256. package/dist/seed/repairs.js +75 -0
  257. package/dist/seed/verification.js +363 -0
  258. package/dist/seed/wording.js +248 -0
  259. package/dist/web/app.js +326 -0
  260. package/dist/web/jobs.js +510 -0
  261. package/dist/web/route-deps.js +211 -0
  262. package/dist/web/route-table.js +213 -0
  263. package/dist/web/routes/backup.js +244 -0
  264. package/dist/web/routes/clusters.js +303 -0
  265. package/dist/web/routes/data.js +187 -0
  266. package/dist/web/routes/edge.js +82 -0
  267. package/dist/web/routes/index.js +63 -0
  268. package/dist/web/routes/jobs.js +95 -0
  269. package/dist/web/routes/logs.js +297 -0
  270. package/dist/web/routes/meta.js +191 -0
  271. package/dist/web/routes/people.js +151 -0
  272. package/dist/web/routes/perf.js +95 -0
  273. package/dist/web/routes/repros.js +550 -0
  274. package/dist/web/routes/session.js +361 -0
  275. package/dist/web/routes/spa.js +198 -0
  276. package/dist/web/security.js +475 -0
  277. package/dist/web/signin.js +246 -0
  278. package/package.json +67 -32
  279. package/.eslintrc +0 -94
  280. package/.swcrc +0 -18
  281. package/dist/bin.js +0 -3
  282. package/dist/cli.js +0 -184
  283. package/dist/commands/createBranch.js +0 -194
  284. package/dist/outputCI.js +0 -59
  285. package/src/bin.js +0 -4
  286. package/src/cli.ts +0 -25
  287. package/src/commands/createBranch.ts +0 -28
  288. package/src/outputCI.ts +0 -12
  289. package/src-old/logs.js +0 -323
  290. package/src-old/md.js +0 -191
  291. package/src-old/release-table.js +0 -60
  292. package/src-old/set-version.js +0 -614
  293. package/src-old/utils.js +0 -15
@@ -0,0 +1,2593 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.COMMAND_SPECS = void 0;
4
+ const spec_types_1 = require("./spec-types");
5
+ /** The frozen command surface: 40 routable paths; root invocation is separate. */
6
+ exports.COMMAND_SPECS = [
7
+ (0, spec_types_1.defineCommand)({
8
+ id: 'up',
9
+ path: 'up',
10
+ description: 'Create and start a version-matched Rocket.Chat workspace.',
11
+ arguments: [],
12
+ options: [
13
+ {
14
+ key: 'version',
15
+ long: '--version',
16
+ short: '-v',
17
+ value: 'string',
18
+ required: true,
19
+ repeatable: false,
20
+ defaultValue: null,
21
+ description: 'Rocket.Chat version, e.g. 6.5.3',
22
+ hidden: false,
23
+ negatablePair: false,
24
+ },
25
+ {
26
+ key: 'preset',
27
+ long: '--preset',
28
+ short: '-p',
29
+ value: 'string',
30
+ required: false,
31
+ repeatable: true,
32
+ defaultValue: 'default',
33
+ description: 'preset to apply: ldap, saml, oidc, email, s3_minio, livechat, airgapped, e2ee, voice, webhooks (repeat to combine)',
34
+ hidden: false,
35
+ negatablePair: false,
36
+ },
37
+ {
38
+ key: 'runtime',
39
+ long: '--runtime',
40
+ value: 'string',
41
+ required: false,
42
+ repeatable: false,
43
+ defaultValue: '',
44
+ description: 'where it runs: docker (default) | kubernetes',
45
+ hidden: false,
46
+ negatablePair: false,
47
+ },
48
+ {
49
+ key: 'deployment',
50
+ long: '--deployment',
51
+ value: 'string',
52
+ required: false,
53
+ repeatable: false,
54
+ defaultValue: '',
55
+ description: 'how Rocket.Chat runs. docker: monolith (default) | multi-instance. kubernetes: microservices (default) | monolith. Microservices, and live updates across multi-instance, need an Enterprise license (--license); monolith needs none',
56
+ hidden: false,
57
+ negatablePair: false,
58
+ },
59
+ {
60
+ key: 'replicas',
61
+ long: '--replicas',
62
+ value: 'integer',
63
+ required: false,
64
+ repeatable: false,
65
+ defaultValue: 0,
66
+ description: 'Rocket.Chat instances (needs --deployment multi-instance on docker)',
67
+ hidden: false,
68
+ negatablePair: false,
69
+ },
70
+ {
71
+ key: 'context',
72
+ long: '--context',
73
+ value: 'string',
74
+ required: false,
75
+ repeatable: false,
76
+ defaultValue: '',
77
+ description: 'which Kubernetes cluster — its own name (`support`) or the full context name. ADOPTS it; never creates one. Remembered after the first use (`houston config set kubernetes.context`)',
78
+ hidden: false,
79
+ negatablePair: false,
80
+ },
81
+ {
82
+ key: 'mongo_operator',
83
+ long: '--mongo-operator',
84
+ value: 'boolean',
85
+ required: false,
86
+ repeatable: false,
87
+ defaultValue: false,
88
+ description: 'kubernetes: manage MongoDB with the official operator (adds SCRAM auth; needs MongoDB 6.0+)',
89
+ hidden: false,
90
+ negatablePair: false,
91
+ },
92
+ {
93
+ key: 'name',
94
+ long: '--name',
95
+ short: '-n',
96
+ value: 'string',
97
+ required: false,
98
+ repeatable: false,
99
+ defaultValue: '',
100
+ description: 'workspace name (default: rc<version>[-<preset>]), prefixed with your houston account when you have one. On a shared server give it a ticket name',
101
+ hidden: false,
102
+ negatablePair: false,
103
+ },
104
+ {
105
+ key: 'port',
106
+ long: '--port',
107
+ value: 'integer',
108
+ required: false,
109
+ repeatable: false,
110
+ defaultValue: 0,
111
+ description: 'host port (default: first free >= 3000)',
112
+ hidden: false,
113
+ negatablePair: false,
114
+ },
115
+ {
116
+ key: 'root_url',
117
+ long: '--root-url',
118
+ value: 'string',
119
+ required: false,
120
+ repeatable: false,
121
+ defaultValue: '',
122
+ description: 'override ROOT_URL',
123
+ hidden: false,
124
+ negatablePair: false,
125
+ },
126
+ {
127
+ key: 'bind',
128
+ long: '--bind',
129
+ value: 'string',
130
+ required: false,
131
+ repeatable: false,
132
+ defaultValue: '',
133
+ description: 'host interface for published ports (default 127.0.0.1, or `config set bind_host`): on 127.0.0.1 only a browser on the machine running houston opens it. 0.0.0.0 exposes Rocket.Chat AND its sidecars, with their fixed logins, to anyone who can reach its ports — on a cloud server possibly the internet. Use deliberately',
134
+ hidden: false,
135
+ negatablePair: false,
136
+ },
137
+ {
138
+ key: 'rc_image',
139
+ long: '--rc-image',
140
+ value: 'string',
141
+ required: false,
142
+ repeatable: false,
143
+ defaultValue: '',
144
+ description: 'override the RC image repo',
145
+ hidden: false,
146
+ negatablePair: false,
147
+ },
148
+ {
149
+ key: 'mongo',
150
+ long: '--mongo',
151
+ value: 'string',
152
+ required: false,
153
+ repeatable: false,
154
+ defaultValue: '',
155
+ description: 'override the resolved MongoDB tag',
156
+ hidden: false,
157
+ negatablePair: false,
158
+ },
159
+ {
160
+ key: 'reg_token',
161
+ long: '--reg-token',
162
+ value: 'string',
163
+ required: false,
164
+ repeatable: false,
165
+ defaultValue: '',
166
+ description: 'cloud registration token, for an Enterprise license',
167
+ hidden: false,
168
+ negatablePair: false,
169
+ },
170
+ {
171
+ key: 'license',
172
+ long: '--license',
173
+ value: 'string',
174
+ required: false,
175
+ repeatable: false,
176
+ defaultValue: '',
177
+ description: 'Enterprise license FILE, or - to read it from stdin (never the license itself: ps shows argv)',
178
+ hidden: false,
179
+ negatablePair: false,
180
+ },
181
+ {
182
+ key: 'set_',
183
+ long: '--set',
184
+ value: 'string',
185
+ required: false,
186
+ repeatable: true,
187
+ defaultValue: null,
188
+ description: "preset parameter KEY=VALUE (repeatable), e.g. --set users=5; 'houston presets' lists each preset's keys",
189
+ hidden: false,
190
+ negatablePair: false,
191
+ },
192
+ {
193
+ key: 'seed',
194
+ long: '--seed',
195
+ value: 'boolean',
196
+ required: false,
197
+ repeatable: false,
198
+ defaultValue: false,
199
+ description: 'populate with sample users/channels/messages after boot',
200
+ hidden: false,
201
+ negatablePair: false,
202
+ },
203
+ {
204
+ key: 'seed_profile',
205
+ long: '--seed-profile',
206
+ value: 'string',
207
+ required: false,
208
+ repeatable: false,
209
+ defaultValue: 'small',
210
+ description: 'seed size: small | standard | large',
211
+ hidden: false,
212
+ negatablePair: false,
213
+ },
214
+ {
215
+ key: 'seed_scenario',
216
+ long: '--seed-scenario',
217
+ value: 'string',
218
+ required: false,
219
+ repeatable: true,
220
+ defaultValue: null,
221
+ description: 'with --seed: extra sample rooms, room-states | permissions (repeatable; not a preset)',
222
+ hidden: false,
223
+ negatablePair: false,
224
+ },
225
+ {
226
+ key: 'seed_history_days',
227
+ long: '--seed-history-days',
228
+ value: 'integer',
229
+ required: false,
230
+ repeatable: false,
231
+ defaultValue: null,
232
+ description: 'with --seed: synthetic history across N days (1–36500)',
233
+ hidden: false,
234
+ negatablePair: false,
235
+ },
236
+ {
237
+ key: 'verify_seed',
238
+ long: '--verify-seed',
239
+ value: 'boolean',
240
+ required: false,
241
+ repeatable: false,
242
+ defaultValue: false,
243
+ description: 'with --seed: fail if the readback disagrees with the plan',
244
+ hidden: false,
245
+ negatablePair: false,
246
+ },
247
+ {
248
+ key: 'pin',
249
+ long: '--pin',
250
+ value: 'boolean',
251
+ required: false,
252
+ repeatable: false,
253
+ defaultValue: false,
254
+ description: 'keep it from `houston prune`, and make it the default: for everyone using this houston home, commands without --name act on it',
255
+ hidden: false,
256
+ negatablePair: false,
257
+ },
258
+ {
259
+ key: 'wait',
260
+ long: '--wait',
261
+ value: 'boolean',
262
+ required: false,
263
+ repeatable: false,
264
+ defaultValue: false,
265
+ description: 'block until RC is serving',
266
+ hidden: false,
267
+ negatablePair: false,
268
+ },
269
+ {
270
+ key: 'offline',
271
+ long: '--offline',
272
+ value: 'boolean',
273
+ required: false,
274
+ repeatable: false,
275
+ defaultValue: false,
276
+ description: 'skip the live version lookup',
277
+ hidden: false,
278
+ negatablePair: false,
279
+ },
280
+ {
281
+ key: 'no_pull',
282
+ long: '--no-pull',
283
+ value: 'boolean',
284
+ required: false,
285
+ repeatable: false,
286
+ defaultValue: false,
287
+ description: "don't pull images first",
288
+ hidden: false,
289
+ negatablePair: false,
290
+ },
291
+ {
292
+ key: 'fresh',
293
+ long: '--fresh',
294
+ value: 'boolean',
295
+ required: false,
296
+ repeatable: false,
297
+ defaultValue: false,
298
+ description: "wipe this workspace's data first",
299
+ hidden: false,
300
+ negatablePair: false,
301
+ },
302
+ {
303
+ key: 'force',
304
+ long: '--force',
305
+ value: 'boolean',
306
+ required: false,
307
+ repeatable: false,
308
+ defaultValue: false,
309
+ description: "rebuild an existing workspace with the flags given now; its data is kept (--fresh wipes it). Also overrides the free-memory refusal, which on a shared server can get a colleague's workspace killed",
310
+ hidden: false,
311
+ negatablePair: false,
312
+ },
313
+ {
314
+ key: 'monitor',
315
+ long: '--monitor',
316
+ value: 'boolean',
317
+ required: false,
318
+ repeatable: false,
319
+ defaultValue: false,
320
+ description: 'also add Prometheus + Grafana (RC metrics dashboard)',
321
+ hidden: false,
322
+ negatablePair: false,
323
+ },
324
+ {
325
+ key: 'stats',
326
+ long: '--stats',
327
+ value: 'boolean',
328
+ required: false,
329
+ repeatable: false,
330
+ defaultValue: false,
331
+ description: 'with --seed: report the CPU/RAM cost of seeding',
332
+ hidden: false,
333
+ negatablePair: false,
334
+ },
335
+ {
336
+ key: 'domain',
337
+ long: '--domain',
338
+ value: 'string',
339
+ required: false,
340
+ repeatable: false,
341
+ defaultValue: '',
342
+ description: "serve HTTPS at this full hostname (ticket-1234.rc.example.com) with a Let's Encrypt certificate. It must already resolve to the machine running houston, and 443 must be reachable; a wildcard DNS record (*.rc.example.com) covers every name under it, with nothing to add per workspace",
343
+ hidden: false,
344
+ negatablePair: false,
345
+ },
346
+ {
347
+ key: 'email',
348
+ long: '--email',
349
+ value: 'string',
350
+ required: false,
351
+ repeatable: false,
352
+ defaultValue: '',
353
+ description: "contact email for the Let's Encrypt certificate of --domain (or of the name the workspace or its cluster's zone already has); refused with no name, as --https needs none. Remembered after the first use (`houston config set acme.email`)",
354
+ hidden: false,
355
+ negatablePair: false,
356
+ },
357
+ {
358
+ key: 'https',
359
+ long: '--https',
360
+ value: 'boolean',
361
+ required: false,
362
+ repeatable: false,
363
+ defaultValue: false,
364
+ description: 'serve HTTPS with a local certificate instead — no domain needed, at <name>.houston.localhost, which opens only in a browser on the machine running houston (run `houston trust-ca` once there). For other computers use --domain',
365
+ hidden: false,
366
+ negatablePair: false,
367
+ },
368
+ {
369
+ key: 'ingress_class',
370
+ long: '--ingress-class',
371
+ value: 'string',
372
+ required: false,
373
+ repeatable: false,
374
+ defaultValue: '',
375
+ description: "Kubernetes only: which IngressClass to route through, when the cluster has more than one (e.g. `alb`, `nginx`). Defaults to the cluster's own default class",
376
+ hidden: false,
377
+ negatablePair: false,
378
+ },
379
+ {
380
+ key: 'env',
381
+ long: '--env',
382
+ short: '-e',
383
+ value: 'string',
384
+ required: false,
385
+ repeatable: true,
386
+ defaultValue: null,
387
+ description: 'extra raw env var KEY=VALUE (repeatable). Persisted, so `up --force` keeps it; change it later with `houston env`',
388
+ hidden: false,
389
+ negatablePair: false,
390
+ },
391
+ {
392
+ key: 'setting',
393
+ long: '--setting',
394
+ value: 'string',
395
+ required: false,
396
+ repeatable: true,
397
+ defaultValue: null,
398
+ description: 'Rocket.Chat SETTING Id=VALUE (repeatable) — adds the OVERWRITE_SETTING_ prefix a setting needs',
399
+ hidden: false,
400
+ negatablePair: false,
401
+ },
402
+ ],
403
+ json: {
404
+ mode: 'flag',
405
+ schema: 'houston.up.v1',
406
+ streams: true,
407
+ option: {
408
+ index: 28,
409
+ description: 'NDJSON progress on stdout, then one final JSON envelope; prose moves to stderr',
410
+ },
411
+ },
412
+ }),
413
+ (0, spec_types_1.defineCommand)({
414
+ id: 'ready',
415
+ path: 'ready',
416
+ description: 'Block until Rocket.Chat is serving (polls /api/info).',
417
+ arguments: [],
418
+ options: [
419
+ {
420
+ key: 'name',
421
+ long: '--name',
422
+ short: '-n',
423
+ value: 'string',
424
+ required: false,
425
+ repeatable: false,
426
+ defaultValue: '',
427
+ description: 'the workspace (default: the one `houston use` set)',
428
+ hidden: false,
429
+ negatablePair: false,
430
+ },
431
+ {
432
+ key: 'timeout',
433
+ long: '--timeout',
434
+ value: 'float',
435
+ required: false,
436
+ repeatable: false,
437
+ defaultValue: 300.0,
438
+ description: 'seconds to wait',
439
+ hidden: false,
440
+ negatablePair: false,
441
+ },
442
+ ],
443
+ json: {
444
+ mode: 'flag',
445
+ schema: 'houston.ready.v1',
446
+ streams: true,
447
+ option: {
448
+ index: 2,
449
+ description: 'NDJSON progress on stdout, then one final JSON envelope',
450
+ },
451
+ },
452
+ }),
453
+ (0, spec_types_1.defineCommand)({
454
+ id: 'down',
455
+ path: 'down',
456
+ description: "Remove a workspace's containers. Keeps data (and the record) unless --volumes.",
457
+ arguments: [],
458
+ options: [
459
+ {
460
+ key: 'name',
461
+ long: '--name',
462
+ short: '-n',
463
+ value: 'string',
464
+ required: false,
465
+ repeatable: false,
466
+ defaultValue: '',
467
+ description: 'the workspace (default: the one `houston use` set)',
468
+ hidden: false,
469
+ negatablePair: false,
470
+ },
471
+ {
472
+ key: 'volumes',
473
+ long: '--volumes',
474
+ value: 'boolean',
475
+ required: false,
476
+ repeatable: false,
477
+ defaultValue: false,
478
+ description: 'also delete the data volume and forget the workspace',
479
+ hidden: false,
480
+ negatablePair: false,
481
+ },
482
+ {
483
+ key: 'yes',
484
+ long: '--yes',
485
+ short: '-y',
486
+ value: 'boolean',
487
+ required: false,
488
+ repeatable: false,
489
+ defaultValue: false,
490
+ description: 'skip the confirmation prompt (for scripts/CI)',
491
+ hidden: false,
492
+ negatablePair: false,
493
+ },
494
+ ],
495
+ json: {
496
+ mode: 'flag',
497
+ schema: 'houston.down.v1',
498
+ streams: false,
499
+ option: {
500
+ index: 3,
501
+ description: 'print the result as one JSON envelope; --volumes then requires --yes',
502
+ },
503
+ },
504
+ }),
505
+ (0, spec_types_1.defineCommand)({
506
+ id: 'monitor',
507
+ path: 'monitor',
508
+ description: 'Attach (or --off to detach) Prometheus + Grafana on a running workspace.',
509
+ arguments: [],
510
+ options: [
511
+ {
512
+ key: 'name',
513
+ long: '--name',
514
+ short: '-n',
515
+ value: 'string',
516
+ required: false,
517
+ repeatable: false,
518
+ defaultValue: '',
519
+ description: 'the workspace (default: the one `houston use` set)',
520
+ hidden: false,
521
+ negatablePair: false,
522
+ },
523
+ {
524
+ key: 'off',
525
+ long: '--off',
526
+ value: 'boolean',
527
+ required: false,
528
+ repeatable: false,
529
+ defaultValue: false,
530
+ description: 'detach: remove Prometheus + Grafana',
531
+ hidden: false,
532
+ negatablePair: false,
533
+ },
534
+ ],
535
+ json: {
536
+ mode: 'none',
537
+ streams: false,
538
+ },
539
+ }),
540
+ (0, spec_types_1.defineCommand)({
541
+ id: 'prune',
542
+ path: 'prune',
543
+ description: "Delete every workspace taken down with `down` — INCLUDING its data volume and record. Skips pinned, running and stopped ones. An admin's prune covers everyone's workspaces; anyone else's, only their own.",
544
+ arguments: [],
545
+ options: [
546
+ {
547
+ key: 'yes',
548
+ long: '--yes',
549
+ short: '-y',
550
+ value: 'boolean',
551
+ required: false,
552
+ repeatable: false,
553
+ defaultValue: false,
554
+ description: 'skip the confirmation prompt (for scripts/CI)',
555
+ hidden: false,
556
+ negatablePair: false,
557
+ },
558
+ {
559
+ key: 'orphans',
560
+ long: '--orphans',
561
+ value: 'boolean',
562
+ required: false,
563
+ repeatable: false,
564
+ defaultValue: false,
565
+ description: 'also delete Kubernetes namespaces houston owns that no local record explains',
566
+ hidden: false,
567
+ negatablePair: false,
568
+ },
569
+ {
570
+ key: 'force',
571
+ long: '--force',
572
+ value: 'boolean',
573
+ required: false,
574
+ repeatable: false,
575
+ defaultValue: false,
576
+ description: 'with --orphans, sweep namespaces that belong to somebody else, name no owner, or whose owner cannot be read',
577
+ hidden: false,
578
+ negatablePair: false,
579
+ },
580
+ ],
581
+ json: {
582
+ mode: 'none',
583
+ streams: false,
584
+ },
585
+ }),
586
+ (0, spec_types_1.defineCommand)({
587
+ id: 'start',
588
+ path: 'start',
589
+ description: 'Resume a stopped workspace (fast, no rebuild).',
590
+ arguments: [],
591
+ options: [
592
+ {
593
+ key: 'name',
594
+ long: '--name',
595
+ short: '-n',
596
+ value: 'string',
597
+ required: false,
598
+ repeatable: false,
599
+ defaultValue: '',
600
+ description: 'the workspace (default: the one `houston use` set)',
601
+ hidden: false,
602
+ negatablePair: false,
603
+ },
604
+ ],
605
+ json: {
606
+ mode: 'none',
607
+ streams: false,
608
+ },
609
+ }),
610
+ (0, spec_types_1.defineCommand)({
611
+ id: 'stop',
612
+ path: 'stop',
613
+ description: 'Pause a workspace, keeping its containers and data.',
614
+ arguments: [],
615
+ options: [
616
+ {
617
+ key: 'name',
618
+ long: '--name',
619
+ short: '-n',
620
+ value: 'string',
621
+ required: false,
622
+ repeatable: false,
623
+ defaultValue: '',
624
+ description: 'the workspace (default: the one `houston use` set)',
625
+ hidden: false,
626
+ negatablePair: false,
627
+ },
628
+ ],
629
+ json: {
630
+ mode: 'none',
631
+ streams: false,
632
+ },
633
+ }),
634
+ (0, spec_types_1.defineCommand)({
635
+ id: 'restart',
636
+ path: 'restart',
637
+ description: 'Restart a workspace.',
638
+ arguments: [],
639
+ options: [
640
+ {
641
+ key: 'name',
642
+ long: '--name',
643
+ short: '-n',
644
+ value: 'string',
645
+ required: false,
646
+ repeatable: false,
647
+ defaultValue: '',
648
+ description: 'the workspace (default: the one `houston use` set)',
649
+ hidden: false,
650
+ negatablePair: false,
651
+ },
652
+ ],
653
+ json: {
654
+ mode: 'none',
655
+ streams: false,
656
+ },
657
+ }),
658
+ (0, spec_types_1.defineCommand)({
659
+ id: 'use',
660
+ path: 'use',
661
+ description: 'Set the default workspace: for everyone using this houston home, commands run without --name act on it.',
662
+ arguments: [
663
+ {
664
+ name: 'name',
665
+ value: 'string',
666
+ required: true,
667
+ defaultValue: null,
668
+ description: 'the workspace to make the default',
669
+ },
670
+ ],
671
+ options: [],
672
+ json: {
673
+ mode: 'none',
674
+ streams: false,
675
+ },
676
+ }),
677
+ (0, spec_types_1.defineCommand)({
678
+ id: 'list',
679
+ path: 'list',
680
+ description: 'List all workspaces with version, port, status and URL.',
681
+ arguments: [],
682
+ options: [],
683
+ json: {
684
+ mode: 'flag',
685
+ schema: 'houston.list.v1',
686
+ streams: false,
687
+ option: {
688
+ index: 0,
689
+ description: 'print the result as one JSON envelope (see `--json` on `info`)',
690
+ },
691
+ },
692
+ }),
693
+ (0, spec_types_1.defineCommand)({
694
+ id: 'info',
695
+ path: 'info',
696
+ description: "Show a workspace's URL, admin credentials and a curl snippet.",
697
+ arguments: [],
698
+ options: [
699
+ {
700
+ key: 'name',
701
+ long: '--name',
702
+ short: '-n',
703
+ value: 'string',
704
+ required: false,
705
+ repeatable: false,
706
+ defaultValue: '',
707
+ description: 'the workspace (default: the one `houston use` set)',
708
+ hidden: false,
709
+ negatablePair: false,
710
+ },
711
+ ],
712
+ json: {
713
+ mode: 'flag',
714
+ schema: 'houston.info.v1',
715
+ streams: false,
716
+ option: {
717
+ index: 1,
718
+ description: 'print the result as one JSON envelope on stdout; prose moves to stderr',
719
+ },
720
+ },
721
+ }),
722
+ (0, spec_types_1.defineCommand)({
723
+ id: 'users',
724
+ path: 'users',
725
+ description: 'Manage who can sign in to the web GUI.\n\n`houston serve` signs people in with named accounts, so every job records who\nran it ("who tore down TICKET-1234?"). The first account comes from the\none-time /setup link `serve` prints on its first run; add the rest here.\n\n\b\n`add` and `passwd` GENERATE the password and show it once:\n houston users add bob\n houston users add bob readonly # with a role; member by default\n houston users add bob --ask-password # type one instead\n\nThe GUI has always minted them, and for two reasons that apply just as much at\na terminal. An admin who types a colleague\'s password also knows it, which\nmakes every audit line signed with that name deniable. And a generated one is\n~96 bits, where a typed one clears a twelve-character minimum and is otherwise\nwhatever somebody thought of — which is the only thing standing between an\naccount and a distributed guessing attack, because the sign-in throttle bounds\none address and nothing bounds a thousand.\n\nEither way the password is never an ARGUMENT: `ps` shows command lines to every\nuser on the machine.\n\nWith Okta sign-in on (`houston config set sso.issuer ...`), an Okta person signs\nin as the account their Okta username names (`first.last` is `first-last`), and\none is created when `sso.provision` allows it. A different name is never linked.\nAn admin account links only once an admin approves it, and a link can be turned\noff, keeping the account and its password:\n houston users link-sso alice\n houston users unlink-sso alice',
726
+ arguments: [
727
+ {
728
+ name: 'action',
729
+ value: 'string',
730
+ required: false,
731
+ defaultValue: 'list',
732
+ description: 'list | add | passwd | remove | role | link-sso | unlink-sso',
733
+ },
734
+ {
735
+ name: 'name',
736
+ value: 'string',
737
+ required: false,
738
+ defaultValue: '',
739
+ description: 'the user name, for every action but list',
740
+ },
741
+ {
742
+ name: 'role',
743
+ value: 'string',
744
+ required: false,
745
+ defaultValue: '',
746
+ description: 'admin | member | readonly, for `add` and `role`',
747
+ },
748
+ ],
749
+ options: [
750
+ {
751
+ key: 'ask_password',
752
+ long: '--ask-password',
753
+ value: 'boolean',
754
+ required: false,
755
+ repeatable: false,
756
+ defaultValue: false,
757
+ description: 'type a password instead of letting houston generate one',
758
+ hidden: false,
759
+ negatablePair: false,
760
+ },
761
+ ],
762
+ json: {
763
+ mode: 'none',
764
+ streams: false,
765
+ },
766
+ }),
767
+ (0, spec_types_1.defineCommand)({
768
+ id: 'edge',
769
+ path: 'edge',
770
+ description: "The shared Traefik that serves every HTTPS name on this box.\n\nIt is not a workspace, so it never appears in `list` and `prune`/`down` cannot\ntouch it — but something holding :443 and routing your traffic should be\nanswerable, and this is where it answers.\n\nIt starts by itself when the first workspace needs a name. `stop` frees :80\nand :443 for something else, and takes every HTTPS workspace on this machine,\nand a `serve --domain` GUI, offline for everyone until `houston edge start`.\nRoutes are files, so starting it again restores every name with no\nre-registration.\n\n`delete <host>` forgets a name completely — its route, its certificate, its\nprivate key and its Let's Encrypt entry. `down --volumes` removes the route\nand stops there, so the certificate material for a name you are finished with\noutlives the workspace it was issued for; this is how it goes.",
771
+ arguments: [
772
+ {
773
+ name: 'action',
774
+ value: 'string',
775
+ required: false,
776
+ defaultValue: 'status',
777
+ description: 'status | start | stop | restart | logs | delete',
778
+ },
779
+ {
780
+ name: 'host',
781
+ value: 'string',
782
+ required: false,
783
+ defaultValue: '',
784
+ description: 'the hostname, for `delete`',
785
+ },
786
+ ],
787
+ options: [
788
+ {
789
+ key: 'follow',
790
+ long: '--follow',
791
+ short: '-f',
792
+ value: 'boolean',
793
+ required: false,
794
+ repeatable: false,
795
+ defaultValue: false,
796
+ description: 'follow the log (logs)',
797
+ hidden: false,
798
+ negatablePair: false,
799
+ },
800
+ {
801
+ key: 'tail',
802
+ long: '--tail',
803
+ value: 'integer',
804
+ required: false,
805
+ repeatable: false,
806
+ defaultValue: 200,
807
+ description: 'how many lines of log to show',
808
+ hidden: false,
809
+ negatablePair: false,
810
+ },
811
+ {
812
+ key: 'yes',
813
+ long: '--yes',
814
+ short: '-y',
815
+ value: 'boolean',
816
+ required: false,
817
+ repeatable: false,
818
+ defaultValue: false,
819
+ description: 'skip the confirmation prompt (delete)',
820
+ hidden: false,
821
+ negatablePair: false,
822
+ },
823
+ ],
824
+ json: {
825
+ mode: 'none',
826
+ streams: false,
827
+ },
828
+ }),
829
+ (0, spec_types_1.defineCommand)({
830
+ id: 'config',
831
+ path: 'config',
832
+ description: 'Read or write remembered settings, so they need not be retyped every run.\n\nKeys: kubernetes.context, cluster.approved_accounts, acme.email, acme.staging,\nacme.challenge (http | tlsalpn | dns), acme.dns_provider,\nbind_host, gui.create_policy, gui.destroy_policy, sso.issuer, sso.client_id,\nsso.public_url, sso.email_domains, sso.provision (off | member | readonly). Stored\nin ~/.houston/config.yaml.\n\n\b\nMembers may set --rc-image/--reg-token/--bind by default. Where an account is\nnot the same thing as trust, narrow it:\n houston config set gui.create_policy admin\n\b\nAnd to publish every workspace on the machine running houston beyond loopback,\none decision instead of one per create. It opens each Rocket.Chat and its\nsidecars, fixed logins and all, to anyone who can reach their ports:\n houston config set bind_host 0.0.0.0\n\b\nOkta sign-in for the GUI: the issuer goes last, because setting it turns Okta\non. The client secret is never a key here: it goes in ~/.houston/sso.env\n(HOUSTON_SSO_CLIENT_SECRET=<secret>, mode 0600) or that environment variable.\n houston config set sso.client_id <client id>\n houston config set sso.public_url https://houston.example.com\n houston config set sso.email_domains example.com\n houston config set sso.provision member\n houston config set sso.issuer https://login.example.com',
833
+ arguments: [
834
+ {
835
+ name: 'action',
836
+ value: 'string',
837
+ required: false,
838
+ defaultValue: 'list',
839
+ description: 'list | get | set | unset',
840
+ },
841
+ {
842
+ name: 'key',
843
+ value: 'string',
844
+ required: false,
845
+ defaultValue: '',
846
+ description: 'e.g. kubernetes.context',
847
+ },
848
+ {
849
+ name: 'value',
850
+ value: 'string',
851
+ required: false,
852
+ defaultValue: '',
853
+ description: 'the value, for `set`',
854
+ },
855
+ ],
856
+ options: [],
857
+ json: {
858
+ mode: 'none',
859
+ streams: false,
860
+ },
861
+ }),
862
+ (0, spec_types_1.defineCommand)({
863
+ id: 'env',
864
+ path: 'env',
865
+ description: "Show or change a workspace's Rocket.Chat environment variables.\n\nWith no --set/--unset, lists the effective environment (credentials masked) and\nmarks which keys you have overridden.\n\nAn env var cannot be changed inside a running container, so applying a change\nrecreates the Rocket.Chat container. MongoDB keeps running and its volume is\nuntouched, so no data is lost and it takes seconds.",
866
+ arguments: [],
867
+ options: [
868
+ {
869
+ key: 'name',
870
+ long: '--name',
871
+ short: '-n',
872
+ value: 'string',
873
+ required: false,
874
+ repeatable: false,
875
+ defaultValue: '',
876
+ description: 'the workspace (default: the one `houston use` set)',
877
+ hidden: false,
878
+ negatablePair: false,
879
+ },
880
+ {
881
+ key: 'set_',
882
+ long: '--set',
883
+ value: 'string',
884
+ required: false,
885
+ repeatable: true,
886
+ defaultValue: null,
887
+ description: 'raw env var KEY=VALUE (repeatable)',
888
+ hidden: false,
889
+ negatablePair: false,
890
+ },
891
+ {
892
+ key: 'setting',
893
+ long: '--setting',
894
+ value: 'string',
895
+ required: false,
896
+ repeatable: true,
897
+ defaultValue: null,
898
+ description: 'Rocket.Chat SETTING Id=VALUE (repeatable) — adds the OVERWRITE_SETTING_ prefix for you, which a setting needs to take effect',
899
+ hidden: false,
900
+ negatablePair: false,
901
+ },
902
+ {
903
+ key: 'unset',
904
+ long: '--unset',
905
+ value: 'string',
906
+ required: false,
907
+ repeatable: true,
908
+ defaultValue: null,
909
+ description: 'KEY to remove entirely, including a preset default (repeatable)',
910
+ hidden: false,
911
+ negatablePair: false,
912
+ },
913
+ {
914
+ key: 'no_restart',
915
+ long: '--no-restart',
916
+ value: 'boolean',
917
+ required: false,
918
+ repeatable: false,
919
+ defaultValue: false,
920
+ description: "write the change but don't recreate the container yet",
921
+ hidden: false,
922
+ negatablePair: false,
923
+ },
924
+ ],
925
+ json: {
926
+ mode: 'none',
927
+ streams: false,
928
+ },
929
+ }),
930
+ (0, spec_types_1.defineCommand)({
931
+ id: 'tls-status',
932
+ path: 'tls-status',
933
+ description: 'Report what is ACTUALLY being served over HTTPS for a workspace.\n\n`up --wait` only proves Rocket.Chat booted -- it polls the internal http port.\nTraefik obtains certificates in the background AFTER it starts and falls back\nto a self-signed dummy when ACME fails, so a workspace can look ready while HTTPS\nserves nothing usable. This makes the real TLS connection and says so.',
934
+ arguments: [],
935
+ options: [
936
+ {
937
+ key: 'name',
938
+ long: '--name',
939
+ short: '-n',
940
+ value: 'string',
941
+ required: false,
942
+ repeatable: false,
943
+ defaultValue: '',
944
+ description: 'the workspace (default: the one `houston use` set)',
945
+ hidden: false,
946
+ negatablePair: false,
947
+ },
948
+ ],
949
+ json: {
950
+ mode: 'none',
951
+ streams: false,
952
+ },
953
+ }),
954
+ (0, spec_types_1.defineCommand)({
955
+ id: 'trust-ca',
956
+ path: 'trust-ca',
957
+ description: "Install houston's local CA so `--https` workspaces are trusted without warnings.\n\nIt goes into the trust store of the machine running houston (with sudo), so it\nhelps a browser there only. It cannot help a browser on another computer,\nwhich never opens a .houston.localhost name anyway: --domain is for that.\n\nOnly needed for `up --https` on its own (the local-CA mode). A Let's Encrypt\nor self-supplied certificate is already trusted, so this does nothing for those.",
958
+ arguments: [],
959
+ options: [
960
+ {
961
+ key: 'uninstall',
962
+ long: '--uninstall',
963
+ value: 'boolean',
964
+ required: false,
965
+ repeatable: false,
966
+ defaultValue: false,
967
+ description: 'remove it again',
968
+ hidden: false,
969
+ negatablePair: false,
970
+ },
971
+ {
972
+ key: 'show',
973
+ long: '--show',
974
+ value: 'boolean',
975
+ required: false,
976
+ repeatable: false,
977
+ defaultValue: false,
978
+ description: 'just print the CA path and fingerprint',
979
+ hidden: false,
980
+ negatablePair: false,
981
+ },
982
+ ],
983
+ json: {
984
+ mode: 'none',
985
+ streams: false,
986
+ },
987
+ }),
988
+ (0, spec_types_1.defineCommand)({
989
+ id: 'token',
990
+ path: 'token',
991
+ description: 'Mint an API auth token (X-Auth-Token / X-User-Id headers).',
992
+ arguments: [],
993
+ options: [
994
+ {
995
+ key: 'name',
996
+ long: '--name',
997
+ short: '-n',
998
+ value: 'string',
999
+ required: false,
1000
+ repeatable: false,
1001
+ defaultValue: '',
1002
+ description: 'the workspace (default: the one `houston use` set)',
1003
+ hidden: false,
1004
+ negatablePair: false,
1005
+ },
1006
+ ],
1007
+ json: {
1008
+ mode: 'none',
1009
+ streams: false,
1010
+ },
1011
+ }),
1012
+ (0, spec_types_1.defineCommand)({
1013
+ id: 'api',
1014
+ path: 'api',
1015
+ description: 'Make an authenticated REST call against a workspace and print the response.\n\nExamples:\n houston api GET /api/v1/me\n houston api POST /api/v1/users.update --pat -d \'{"userId":"ID","data":{"name":"X"}}\'\n houston api POST /api/v1/users.update --2fa -d \'{"userId":"ID","data":{"name":"X"}}\'',
1016
+ arguments: [
1017
+ {
1018
+ name: 'method',
1019
+ value: 'string',
1020
+ required: true,
1021
+ defaultValue: null,
1022
+ description: 'HTTP method, e.g. GET / POST',
1023
+ },
1024
+ {
1025
+ name: 'path',
1026
+ value: 'string',
1027
+ required: true,
1028
+ defaultValue: null,
1029
+ description: 'API path, e.g. /api/v1/users.update',
1030
+ },
1031
+ ],
1032
+ options: [
1033
+ {
1034
+ key: 'name',
1035
+ long: '--name',
1036
+ short: '-n',
1037
+ value: 'string',
1038
+ required: false,
1039
+ repeatable: false,
1040
+ defaultValue: '',
1041
+ description: 'the workspace (default: the one `houston use` set)',
1042
+ hidden: false,
1043
+ negatablePair: false,
1044
+ },
1045
+ {
1046
+ key: 'data',
1047
+ long: '--data',
1048
+ short: '-d',
1049
+ value: 'string',
1050
+ required: false,
1051
+ repeatable: false,
1052
+ defaultValue: '',
1053
+ description: 'JSON request body (for POST/PUT)',
1054
+ hidden: false,
1055
+ negatablePair: false,
1056
+ },
1057
+ {
1058
+ key: 'pat',
1059
+ long: '--pat',
1060
+ value: 'boolean',
1061
+ required: false,
1062
+ repeatable: false,
1063
+ defaultValue: false,
1064
+ description: 'auth with a bypass-2FA Personal Access Token (like a customer script)',
1065
+ hidden: false,
1066
+ negatablePair: false,
1067
+ },
1068
+ {
1069
+ key: 'two_fa',
1070
+ long: '--2fa',
1071
+ value: 'boolean',
1072
+ required: false,
1073
+ repeatable: false,
1074
+ defaultValue: false,
1075
+ description: 'add the admin password-2FA header (to pass 2FA-guarded endpoints)',
1076
+ hidden: false,
1077
+ negatablePair: false,
1078
+ },
1079
+ ],
1080
+ json: {
1081
+ mode: 'none',
1082
+ streams: false,
1083
+ },
1084
+ }),
1085
+ (0, spec_types_1.defineCommand)({
1086
+ id: 'pat',
1087
+ path: 'pat',
1088
+ description: 'Mint a Personal Access Token and print ready-to-use headers (curl/Postman).',
1089
+ arguments: [],
1090
+ options: [
1091
+ {
1092
+ key: 'name',
1093
+ long: '--name',
1094
+ short: '-n',
1095
+ value: 'string',
1096
+ required: false,
1097
+ repeatable: false,
1098
+ defaultValue: '',
1099
+ description: 'the workspace (default: the one `houston use` set)',
1100
+ hidden: false,
1101
+ negatablePair: false,
1102
+ },
1103
+ {
1104
+ key: 'label',
1105
+ long: '--label',
1106
+ value: 'string',
1107
+ required: false,
1108
+ repeatable: false,
1109
+ defaultValue: 'houston',
1110
+ description: 'token name shown in the admin UI',
1111
+ hidden: false,
1112
+ negatablePair: false,
1113
+ },
1114
+ {
1115
+ key: 'bypass_2fa',
1116
+ long: '--bypass-2fa/--no-bypass-2fa',
1117
+ value: 'boolean',
1118
+ required: false,
1119
+ repeatable: false,
1120
+ defaultValue: true,
1121
+ description: 'create with "Ignore Two Factor Authentication"',
1122
+ hidden: false,
1123
+ negatablePair: true,
1124
+ },
1125
+ ],
1126
+ json: {
1127
+ mode: 'none',
1128
+ streams: false,
1129
+ },
1130
+ }),
1131
+ (0, spec_types_1.defineCommand)({
1132
+ id: 'seed',
1133
+ path: 'seed',
1134
+ description: 'Populate a workspace with sample users, channels, DMs and messages.\n\n--scale bulk-inserts users/messages straight into MongoDB (orders of\nmagnitude faster than the REST seed) to reproduce SCALE/perf behaviour.\nBulk users are credential-less and messages fire no app hooks; use the\ndefault REST seed when you need real, loginable users.',
1135
+ arguments: [],
1136
+ options: [
1137
+ {
1138
+ key: 'name',
1139
+ long: '--name',
1140
+ short: '-n',
1141
+ value: 'string',
1142
+ required: false,
1143
+ repeatable: false,
1144
+ defaultValue: '',
1145
+ description: 'the workspace (default: the one `houston use` set)',
1146
+ hidden: false,
1147
+ negatablePair: false,
1148
+ },
1149
+ {
1150
+ key: 'profile',
1151
+ long: '--profile',
1152
+ value: 'string',
1153
+ required: false,
1154
+ repeatable: false,
1155
+ defaultValue: 'small',
1156
+ description: 'small | standard | large',
1157
+ hidden: false,
1158
+ negatablePair: false,
1159
+ },
1160
+ {
1161
+ key: 'scenario',
1162
+ long: '--scenario',
1163
+ value: 'string',
1164
+ required: false,
1165
+ repeatable: true,
1166
+ defaultValue: null,
1167
+ description: 'extra sample rooms: room-states | permissions (repeatable; not a preset)',
1168
+ hidden: false,
1169
+ negatablePair: false,
1170
+ },
1171
+ {
1172
+ key: 'history_days',
1173
+ long: '--history-days',
1174
+ value: 'integer',
1175
+ required: false,
1176
+ repeatable: false,
1177
+ defaultValue: null,
1178
+ description: 'synthetic history across N days (1–36500)',
1179
+ hidden: false,
1180
+ negatablePair: false,
1181
+ },
1182
+ {
1183
+ key: 'users',
1184
+ long: '--users',
1185
+ value: 'integer',
1186
+ required: false,
1187
+ repeatable: false,
1188
+ defaultValue: null,
1189
+ description: 'override user count',
1190
+ hidden: false,
1191
+ negatablePair: false,
1192
+ },
1193
+ {
1194
+ key: 'channels',
1195
+ long: '--channels',
1196
+ value: 'integer',
1197
+ required: false,
1198
+ repeatable: false,
1199
+ defaultValue: null,
1200
+ description: 'override channel count',
1201
+ hidden: false,
1202
+ negatablePair: false,
1203
+ },
1204
+ {
1205
+ key: 'messages',
1206
+ long: '--messages',
1207
+ value: 'integer',
1208
+ required: false,
1209
+ repeatable: false,
1210
+ defaultValue: null,
1211
+ description: 'override messages per channel',
1212
+ hidden: false,
1213
+ negatablePair: false,
1214
+ },
1215
+ {
1216
+ key: 'stats',
1217
+ long: '--stats',
1218
+ value: 'boolean',
1219
+ required: false,
1220
+ repeatable: false,
1221
+ defaultValue: false,
1222
+ description: 'also report CPU/RAM cost of the seed',
1223
+ hidden: false,
1224
+ negatablePair: false,
1225
+ },
1226
+ {
1227
+ key: 'scale',
1228
+ long: '--scale',
1229
+ value: 'string',
1230
+ required: false,
1231
+ repeatable: false,
1232
+ defaultValue: null,
1233
+ description: 'bulk Mongo prefill for scale and performance tests, e.g. users=50000,messages=800000@team-chat',
1234
+ hidden: false,
1235
+ negatablePair: false,
1236
+ },
1237
+ {
1238
+ key: 'clear_scale',
1239
+ long: '--clear-scale',
1240
+ value: 'boolean',
1241
+ required: false,
1242
+ repeatable: false,
1243
+ defaultValue: false,
1244
+ description: 'remove data a prior --scale added, then exit',
1245
+ hidden: false,
1246
+ negatablePair: false,
1247
+ },
1248
+ {
1249
+ key: 'verify',
1250
+ long: '--verify-seed',
1251
+ value: 'boolean',
1252
+ required: false,
1253
+ repeatable: false,
1254
+ defaultValue: false,
1255
+ description: 'fail if the readback disagrees with the plan (the readback runs and is recorded either way)',
1256
+ hidden: false,
1257
+ negatablePair: false,
1258
+ },
1259
+ ],
1260
+ json: {
1261
+ mode: 'none',
1262
+ streams: false,
1263
+ },
1264
+ }),
1265
+ (0, spec_types_1.defineCommand)({
1266
+ id: 'config-import',
1267
+ path: 'config-import',
1268
+ description: "Apply a customer's exported settings (from a support dump) to a workspace.\n\nImports only settings the customer CHANGED from default, skipping secrets the\ndump redacts and identity/environment settings (license, Site_Url, assets)\nthat would break or pollute a local workspace.",
1269
+ arguments: [
1270
+ {
1271
+ name: 'settings_file',
1272
+ value: 'string',
1273
+ required: true,
1274
+ defaultValue: null,
1275
+ description: 'path to a support-dump *-settings.json',
1276
+ },
1277
+ ],
1278
+ options: [
1279
+ {
1280
+ key: 'name',
1281
+ long: '--name',
1282
+ short: '-n',
1283
+ value: 'string',
1284
+ required: false,
1285
+ repeatable: false,
1286
+ defaultValue: '',
1287
+ description: 'the workspace (default: the one `houston use` set)',
1288
+ hidden: false,
1289
+ negatablePair: false,
1290
+ },
1291
+ {
1292
+ key: 'only',
1293
+ long: '--only',
1294
+ value: 'string',
1295
+ required: false,
1296
+ repeatable: false,
1297
+ defaultValue: null,
1298
+ description: 'comma-separated id prefixes, e.g. Livechat,LDAP,Accounts',
1299
+ hidden: false,
1300
+ negatablePair: false,
1301
+ },
1302
+ {
1303
+ key: 'dry_run',
1304
+ long: '--dry-run',
1305
+ value: 'boolean',
1306
+ required: false,
1307
+ repeatable: false,
1308
+ defaultValue: false,
1309
+ description: 'show the import plan without changing anything',
1310
+ hidden: false,
1311
+ negatablePair: false,
1312
+ },
1313
+ ],
1314
+ json: {
1315
+ mode: 'none',
1316
+ streams: false,
1317
+ },
1318
+ }),
1319
+ (0, spec_types_1.defineCommand)({
1320
+ id: 'backup',
1321
+ path: 'backup',
1322
+ description: "Back up a workspace's Rocket.Chat database into a restorable bundle.\n\nRocket.Chat is stopped for the dump so it is consistent, then started again;\nMongoDB keeps running throughout and its data volume is untouched.\n\nThe bundle carries the database alongside the workspace's version, preset and\nparameters, so `houston restore --new` can rebuild the whole workspace from\nit — on this machine or somebody else's.",
1323
+ arguments: [],
1324
+ options: [
1325
+ {
1326
+ key: 'name',
1327
+ long: '--name',
1328
+ short: '-n',
1329
+ value: 'string',
1330
+ required: false,
1331
+ repeatable: false,
1332
+ defaultValue: '',
1333
+ description: 'the workspace (default: the one `houston use` set)',
1334
+ hidden: false,
1335
+ negatablePair: false,
1336
+ },
1337
+ {
1338
+ key: 'out',
1339
+ long: '--out',
1340
+ value: 'string',
1341
+ required: false,
1342
+ repeatable: false,
1343
+ defaultValue: '',
1344
+ description: 'write the bundle here instead of ~/.houston/backups/',
1345
+ hidden: false,
1346
+ negatablePair: false,
1347
+ },
1348
+ {
1349
+ key: 'label',
1350
+ long: '--label',
1351
+ value: 'string',
1352
+ required: false,
1353
+ repeatable: false,
1354
+ defaultValue: '',
1355
+ description: "a note stored in the bundle, e.g. 'before upgrade'",
1356
+ hidden: false,
1357
+ negatablePair: false,
1358
+ },
1359
+ {
1360
+ key: 'live',
1361
+ long: '--live',
1362
+ value: 'boolean',
1363
+ required: false,
1364
+ repeatable: false,
1365
+ defaultValue: false,
1366
+ description: "don't stop Rocket.Chat first (faster, but the dump may be inconsistent)",
1367
+ hidden: false,
1368
+ negatablePair: false,
1369
+ },
1370
+ ],
1371
+ json: {
1372
+ mode: 'none',
1373
+ streams: false,
1374
+ },
1375
+ }),
1376
+ (0, spec_types_1.defineCommand)({
1377
+ id: 'backups',
1378
+ path: 'backups',
1379
+ description: 'List backup bundles in ~/.houston/backups/, newest first.',
1380
+ arguments: [],
1381
+ options: [
1382
+ {
1383
+ key: 'name',
1384
+ long: '--name',
1385
+ short: '-n',
1386
+ value: 'string',
1387
+ required: false,
1388
+ repeatable: false,
1389
+ defaultValue: '',
1390
+ description: 'only bundles from this workspace',
1391
+ hidden: false,
1392
+ negatablePair: false,
1393
+ },
1394
+ ],
1395
+ json: {
1396
+ mode: 'none',
1397
+ streams: false,
1398
+ },
1399
+ }),
1400
+ (0, spec_types_1.defineCommand)({
1401
+ id: 'restore',
1402
+ path: 'restore',
1403
+ description: "Restore a backup bundle into a workspace.\n\nThree targets:\n\n houston restore B in place — the workspace it came from\n houston restore B --new a fresh workspace built from the bundle\n houston restore B --name other an existing, different workspace\n\nExisting collections are DROPPED, so the result is the backup's data and not a\nmerge of the two. Downgrading (newer data into an older workspace) is refused:\nRocket.Chat does not migrate a database backwards.",
1404
+ arguments: [
1405
+ {
1406
+ name: 'bundle',
1407
+ value: 'string',
1408
+ required: true,
1409
+ defaultValue: null,
1410
+ description: 'path to a .rcbak bundle',
1411
+ },
1412
+ ],
1413
+ options: [
1414
+ {
1415
+ key: 'name',
1416
+ long: '--name',
1417
+ short: '-n',
1418
+ value: 'string',
1419
+ required: false,
1420
+ repeatable: false,
1421
+ defaultValue: '',
1422
+ description: 'restore into this workspace (default: the one it came from)',
1423
+ hidden: false,
1424
+ negatablePair: false,
1425
+ },
1426
+ {
1427
+ key: 'new',
1428
+ long: '--new',
1429
+ value: 'boolean',
1430
+ required: false,
1431
+ repeatable: false,
1432
+ defaultValue: false,
1433
+ description: 'create a fresh workspace from the bundle instead of restoring into an existing one',
1434
+ hidden: false,
1435
+ negatablePair: false,
1436
+ },
1437
+ {
1438
+ key: 'allow_upgrade',
1439
+ long: '--allow-upgrade',
1440
+ value: 'boolean',
1441
+ required: false,
1442
+ repeatable: false,
1443
+ defaultValue: false,
1444
+ description: 'permit restoring older data into a newer workspace (Rocket.Chat will migrate it)',
1445
+ hidden: false,
1446
+ negatablePair: false,
1447
+ },
1448
+ {
1449
+ key: 'force',
1450
+ long: '--force',
1451
+ value: 'boolean',
1452
+ required: false,
1453
+ repeatable: false,
1454
+ defaultValue: false,
1455
+ description: 'ignore compatibility refusals',
1456
+ hidden: false,
1457
+ negatablePair: false,
1458
+ },
1459
+ ],
1460
+ json: {
1461
+ mode: 'none',
1462
+ streams: false,
1463
+ },
1464
+ }),
1465
+ (0, spec_types_1.defineCommand)({
1466
+ id: 'upgrade',
1467
+ path: 'upgrade',
1468
+ description: 'Upgrade a RUNNING workspace to another Rocket.Chat version.\n\nRocket.Chat runs its database migrations on boot, so this is the honest way to\nreproduce "it broke after we upgraded": real data, real migrations. A\npre-upgrade backup is taken automatically and `--rollback` restores it.\n\nThe workspace has to be running — the backup needs MongoDB up, and the migrations\nonly happen when Rocket.Chat boots.',
1469
+ arguments: [],
1470
+ options: [
1471
+ {
1472
+ key: 'to',
1473
+ long: '--to',
1474
+ value: 'string',
1475
+ required: false,
1476
+ repeatable: false,
1477
+ defaultValue: '',
1478
+ description: 'target Rocket.Chat version, e.g. 8.6.1',
1479
+ hidden: false,
1480
+ negatablePair: false,
1481
+ },
1482
+ {
1483
+ key: 'name',
1484
+ long: '--name',
1485
+ short: '-n',
1486
+ value: 'string',
1487
+ required: false,
1488
+ repeatable: false,
1489
+ defaultValue: '',
1490
+ description: 'the workspace (default: the one `houston use` set)',
1491
+ hidden: false,
1492
+ negatablePair: false,
1493
+ },
1494
+ {
1495
+ key: 'dry_run',
1496
+ long: '--dry-run',
1497
+ value: 'boolean',
1498
+ required: false,
1499
+ repeatable: false,
1500
+ defaultValue: false,
1501
+ description: 'show what would happen and stop',
1502
+ hidden: false,
1503
+ negatablePair: false,
1504
+ },
1505
+ {
1506
+ key: 'no_backup',
1507
+ long: '--no-backup',
1508
+ value: 'boolean',
1509
+ required: false,
1510
+ repeatable: false,
1511
+ defaultValue: false,
1512
+ description: 'skip the automatic pre-upgrade backup (no rollback will be possible)',
1513
+ hidden: false,
1514
+ negatablePair: false,
1515
+ },
1516
+ {
1517
+ key: 'no_rollback',
1518
+ long: '--no-rollback',
1519
+ value: 'boolean',
1520
+ required: false,
1521
+ repeatable: false,
1522
+ defaultValue: false,
1523
+ description: 'leave a failed upgrade in place instead of rolling it back',
1524
+ hidden: false,
1525
+ negatablePair: false,
1526
+ },
1527
+ {
1528
+ key: 'rollback',
1529
+ long: '--rollback',
1530
+ value: 'boolean',
1531
+ required: false,
1532
+ repeatable: false,
1533
+ defaultValue: false,
1534
+ description: 'undo the last upgrade from its pre-upgrade backup',
1535
+ hidden: false,
1536
+ negatablePair: false,
1537
+ },
1538
+ {
1539
+ key: 'bundle',
1540
+ long: '--bundle',
1541
+ value: 'string',
1542
+ required: false,
1543
+ repeatable: false,
1544
+ defaultValue: '',
1545
+ description: 'with --rollback: restore this bundle instead of the recorded one',
1546
+ hidden: false,
1547
+ negatablePair: false,
1548
+ },
1549
+ {
1550
+ key: 'offline',
1551
+ long: '--offline',
1552
+ value: 'boolean',
1553
+ required: false,
1554
+ repeatable: false,
1555
+ defaultValue: false,
1556
+ description: 'resolve the version from the built-in map, no network (so a version that was never released still resolves — the map matches on the series)',
1557
+ hidden: false,
1558
+ negatablePair: false,
1559
+ },
1560
+ {
1561
+ key: 'force',
1562
+ long: '--force',
1563
+ value: 'boolean',
1564
+ required: false,
1565
+ repeatable: false,
1566
+ defaultValue: false,
1567
+ description: 'ignore refusals (downgrades, MongoDB major changes)',
1568
+ hidden: false,
1569
+ negatablePair: false,
1570
+ },
1571
+ ],
1572
+ json: {
1573
+ mode: 'none',
1574
+ streams: false,
1575
+ },
1576
+ }),
1577
+ (0, spec_types_1.defineCommand)({
1578
+ id: 'stats',
1579
+ path: 'stats',
1580
+ description: "Sample a workspace's container CPU/RAM (peak over a window, or --watch live).",
1581
+ arguments: [],
1582
+ options: [
1583
+ {
1584
+ key: 'name',
1585
+ long: '--name',
1586
+ short: '-n',
1587
+ value: 'string',
1588
+ required: false,
1589
+ repeatable: false,
1590
+ defaultValue: '',
1591
+ description: 'the workspace (default: the one `houston use` set)',
1592
+ hidden: false,
1593
+ negatablePair: false,
1594
+ },
1595
+ {
1596
+ key: 'for_',
1597
+ long: '--for',
1598
+ value: 'float',
1599
+ required: false,
1600
+ repeatable: false,
1601
+ defaultValue: 5.0,
1602
+ description: 'seconds to sample',
1603
+ hidden: false,
1604
+ negatablePair: false,
1605
+ },
1606
+ {
1607
+ key: 'watch',
1608
+ long: '--watch',
1609
+ short: '-w',
1610
+ value: 'boolean',
1611
+ required: false,
1612
+ repeatable: false,
1613
+ defaultValue: false,
1614
+ description: 'stream live (Ctrl-C to stop)',
1615
+ hidden: false,
1616
+ negatablePair: false,
1617
+ },
1618
+ ],
1619
+ json: {
1620
+ mode: 'none',
1621
+ streams: false,
1622
+ },
1623
+ }),
1624
+ (0, spec_types_1.defineCommand)({
1625
+ id: 'loadtest',
1626
+ path: 'loadtest',
1627
+ description: "Drive real HTTP load at a workspace with k6 and check it against an SLO.\n\nLoad is spread across seeded users when available (--users, default 10) so\nit carries real per-user identity; the journey scenario times each step of a\nrealistic session. --save/--compare give before/after deltas across runs.\nk6 runs on the workspace's docker network (works with loopback-only binds); the\nREST rate limiter is disabled for the run and restored after. Exits non-zero\nif a --slo rule is not met — usable as a CI gate.",
1628
+ arguments: [],
1629
+ options: [
1630
+ {
1631
+ key: 'name',
1632
+ long: '--name',
1633
+ short: '-n',
1634
+ value: 'string',
1635
+ required: false,
1636
+ repeatable: false,
1637
+ defaultValue: '',
1638
+ description: 'the workspace (default: the one `houston use` set)',
1639
+ hidden: false,
1640
+ negatablePair: false,
1641
+ },
1642
+ {
1643
+ key: 'scenario',
1644
+ long: '--scenario',
1645
+ value: 'string',
1646
+ required: false,
1647
+ repeatable: false,
1648
+ defaultValue: 'messages',
1649
+ description: 'the load to drive (not a preset): messages | login | read | mixed | journey | webhook | badbot | custom',
1650
+ hidden: false,
1651
+ negatablePair: false,
1652
+ },
1653
+ {
1654
+ key: 'endpoint',
1655
+ long: '--endpoint',
1656
+ value: 'string',
1657
+ required: false,
1658
+ repeatable: false,
1659
+ defaultValue: '',
1660
+ description: 'custom scenario: the call to hit, e.g. "GET /api/v1/channels.list?count=100"',
1661
+ hidden: false,
1662
+ negatablePair: false,
1663
+ },
1664
+ {
1665
+ key: 'body',
1666
+ long: '--body',
1667
+ value: 'string',
1668
+ required: false,
1669
+ repeatable: false,
1670
+ defaultValue: '',
1671
+ description: 'custom scenario: JSON request body for POST/PUT/PATCH',
1672
+ hidden: false,
1673
+ negatablePair: false,
1674
+ },
1675
+ {
1676
+ key: 'vus',
1677
+ long: '--vus',
1678
+ value: 'integer',
1679
+ required: false,
1680
+ repeatable: false,
1681
+ defaultValue: 10,
1682
+ description: 'virtual users (k6 concurrent workers — not RC accounts)',
1683
+ hidden: false,
1684
+ negatablePair: false,
1685
+ },
1686
+ {
1687
+ key: 'users_n',
1688
+ long: '--users',
1689
+ value: 'integer',
1690
+ required: false,
1691
+ repeatable: false,
1692
+ defaultValue: 10,
1693
+ description: 'spread load across up to N seeded users (alice, bob, …); 0 = admin token only',
1694
+ hidden: false,
1695
+ negatablePair: false,
1696
+ },
1697
+ {
1698
+ key: 'duration',
1699
+ long: '--duration',
1700
+ value: 'string',
1701
+ required: false,
1702
+ repeatable: false,
1703
+ defaultValue: '30s',
1704
+ description: 'test duration, e.g. 60s, 2m',
1705
+ hidden: false,
1706
+ negatablePair: false,
1707
+ },
1708
+ {
1709
+ key: 'ramp',
1710
+ long: '--ramp',
1711
+ value: 'string',
1712
+ required: false,
1713
+ repeatable: false,
1714
+ defaultValue: '',
1715
+ description: 'ramp VUs start:end over --duration, e.g. 10:200',
1716
+ hidden: false,
1717
+ negatablePair: false,
1718
+ },
1719
+ {
1720
+ key: 'spike',
1721
+ long: '--spike',
1722
+ value: 'string',
1723
+ required: false,
1724
+ repeatable: false,
1725
+ defaultValue: '',
1726
+ description: 'spike test base:peak over --duration (base 1/3, peak 1/3, recovery 1/3), e.g. 10:100 — reports recovery time',
1727
+ hidden: false,
1728
+ negatablePair: false,
1729
+ },
1730
+ {
1731
+ key: 'live',
1732
+ long: '--live',
1733
+ value: 'boolean',
1734
+ required: false,
1735
+ repeatable: false,
1736
+ defaultValue: false,
1737
+ description: "stream k6 metrics into the attached monitoring stack's Prometheus (watch live in Grafana)",
1738
+ hidden: false,
1739
+ negatablePair: false,
1740
+ },
1741
+ {
1742
+ key: 'slo',
1743
+ long: '--slo',
1744
+ value: 'string',
1745
+ required: false,
1746
+ repeatable: false,
1747
+ defaultValue: '',
1748
+ description: 'pass/fail gate, e.g. p95=300ms,error=1%,rps=100',
1749
+ hidden: false,
1750
+ negatablePair: false,
1751
+ },
1752
+ {
1753
+ key: 'constrain',
1754
+ long: '--constrain',
1755
+ value: 'string',
1756
+ required: false,
1757
+ repeatable: false,
1758
+ defaultValue: '',
1759
+ description: 'cap services to customer-sized hardware for the test, e.g. "rc=2cpu/2g,mongo=1cpu/1g" (live docker update; restored after)',
1760
+ hidden: false,
1761
+ negatablePair: false,
1762
+ },
1763
+ {
1764
+ key: 'diag',
1765
+ long: '--diag/--no-diag',
1766
+ value: 'boolean',
1767
+ required: false,
1768
+ repeatable: false,
1769
+ defaultValue: true,
1770
+ description: 'server-side diagnosis: RC event-loop lag, Mongo slow queries, latency-over-time, verdict',
1771
+ hidden: false,
1772
+ negatablePair: true,
1773
+ },
1774
+ {
1775
+ key: 'slowms',
1776
+ long: '--slowms',
1777
+ value: 'integer',
1778
+ required: false,
1779
+ repeatable: false,
1780
+ defaultValue: 100,
1781
+ description: 'Mongo profiler threshold in ms (queries slower than this are captured)',
1782
+ hidden: false,
1783
+ negatablePair: false,
1784
+ },
1785
+ {
1786
+ key: 'stats',
1787
+ long: '--stats',
1788
+ value: 'boolean',
1789
+ required: false,
1790
+ repeatable: false,
1791
+ defaultValue: false,
1792
+ description: 'also report container CPU/RAM during the test',
1793
+ hidden: false,
1794
+ negatablePair: false,
1795
+ },
1796
+ {
1797
+ key: 'save',
1798
+ long: '--save',
1799
+ value: 'string',
1800
+ required: false,
1801
+ repeatable: false,
1802
+ defaultValue: '',
1803
+ description: 'save this run as a named baseline (~/.houston/loadtests/)',
1804
+ hidden: false,
1805
+ negatablePair: false,
1806
+ },
1807
+ {
1808
+ key: 'compare',
1809
+ long: '--compare',
1810
+ value: 'string',
1811
+ required: false,
1812
+ repeatable: false,
1813
+ defaultValue: '',
1814
+ description: 'compare this run against a saved baseline',
1815
+ hidden: false,
1816
+ negatablePair: false,
1817
+ },
1818
+ {
1819
+ key: 'report',
1820
+ long: '--report',
1821
+ value: 'boolean',
1822
+ required: false,
1823
+ repeatable: false,
1824
+ defaultValue: false,
1825
+ description: 'write a markdown report to {reports_dir}',
1826
+ hidden: false,
1827
+ negatablePair: false,
1828
+ },
1829
+ {
1830
+ key: 'report_path',
1831
+ long: '--report-path',
1832
+ value: 'string',
1833
+ required: false,
1834
+ repeatable: false,
1835
+ defaultValue: '',
1836
+ description: 'write the report to this file/dir instead (implies --report)',
1837
+ hidden: false,
1838
+ negatablePair: false,
1839
+ },
1840
+ ],
1841
+ json: {
1842
+ mode: 'flag',
1843
+ schema: 'houston.loadtest.v1',
1844
+ streams: false,
1845
+ option: {
1846
+ index: 17,
1847
+ description: 'print the result as JSON (for CI/scripts); suppresses pretty output',
1848
+ },
1849
+ },
1850
+ }),
1851
+ (0, spec_types_1.defineCommand)({
1852
+ id: 'capacity',
1853
+ path: 'capacity',
1854
+ description: 'Find how much concurrency a workspace sustains before the SLO breaks.\n\nDoubles VUs (start, 2x, 4x, …) running the scenario at each step until a\nrule fails, then bisects between the last pass and first fail — ending with\n"handles ~N concurrent VUs" plus why it broke (event-loop lag at the wall).',
1855
+ arguments: [],
1856
+ options: [
1857
+ {
1858
+ key: 'name',
1859
+ long: '--name',
1860
+ short: '-n',
1861
+ value: 'string',
1862
+ required: false,
1863
+ repeatable: false,
1864
+ defaultValue: '',
1865
+ description: 'the workspace (default: the one `houston use` set)',
1866
+ hidden: false,
1867
+ negatablePair: false,
1868
+ },
1869
+ {
1870
+ key: 'scenario',
1871
+ long: '--scenario',
1872
+ value: 'string',
1873
+ required: false,
1874
+ repeatable: false,
1875
+ defaultValue: 'journey',
1876
+ description: 'which workload to scale: journey | messages | read | mixed | login | badbot',
1877
+ hidden: false,
1878
+ negatablePair: false,
1879
+ },
1880
+ {
1881
+ key: 'users_n',
1882
+ long: '--users',
1883
+ value: 'integer',
1884
+ required: false,
1885
+ repeatable: false,
1886
+ defaultValue: 10,
1887
+ description: 'spread load across up to N seeded users; 0 = admin only',
1888
+ hidden: false,
1889
+ negatablePair: false,
1890
+ },
1891
+ {
1892
+ key: 'slo',
1893
+ long: '--slo',
1894
+ value: 'string',
1895
+ required: false,
1896
+ repeatable: false,
1897
+ defaultValue: 'p95=500ms,error=2%',
1898
+ description: "the limit that defines 'capacity'",
1899
+ hidden: false,
1900
+ negatablePair: false,
1901
+ },
1902
+ {
1903
+ key: 'start',
1904
+ long: '--start',
1905
+ value: 'integer',
1906
+ required: false,
1907
+ repeatable: false,
1908
+ defaultValue: 10,
1909
+ description: 'first VU step',
1910
+ hidden: false,
1911
+ negatablePair: false,
1912
+ },
1913
+ {
1914
+ key: 'max_vus',
1915
+ long: '--max',
1916
+ value: 'integer',
1917
+ required: false,
1918
+ repeatable: false,
1919
+ defaultValue: 640,
1920
+ description: 'stop doubling past this many VUs',
1921
+ hidden: false,
1922
+ negatablePair: false,
1923
+ },
1924
+ {
1925
+ key: 'step_duration',
1926
+ long: '--step-duration',
1927
+ value: 'string',
1928
+ required: false,
1929
+ repeatable: false,
1930
+ defaultValue: '20s',
1931
+ description: 'how long each step runs',
1932
+ hidden: false,
1933
+ negatablePair: false,
1934
+ },
1935
+ {
1936
+ key: 'constrain',
1937
+ long: '--constrain',
1938
+ value: 'string',
1939
+ required: false,
1940
+ repeatable: false,
1941
+ defaultValue: '',
1942
+ description: 'find capacity on customer-sized hardware, e.g. "rc=2cpu/2g" (restored after)',
1943
+ hidden: false,
1944
+ negatablePair: false,
1945
+ },
1946
+ {
1947
+ key: 'report',
1948
+ long: '--report',
1949
+ value: 'boolean',
1950
+ required: false,
1951
+ repeatable: false,
1952
+ defaultValue: false,
1953
+ description: 'write a markdown report to {reports_dir}',
1954
+ hidden: false,
1955
+ negatablePair: false,
1956
+ },
1957
+ {
1958
+ key: 'report_path',
1959
+ long: '--report-path',
1960
+ value: 'string',
1961
+ required: false,
1962
+ repeatable: false,
1963
+ defaultValue: '',
1964
+ description: 'write the report to this file/dir instead (implies --report)',
1965
+ hidden: false,
1966
+ negatablePair: false,
1967
+ },
1968
+ ],
1969
+ json: {
1970
+ mode: 'flag',
1971
+ schema: 'houston.capacity.v1',
1972
+ streams: false,
1973
+ option: {
1974
+ index: 10,
1975
+ description: 'print the result as JSON',
1976
+ },
1977
+ },
1978
+ }),
1979
+ (0, spec_types_1.defineCommand)({
1980
+ id: 'logs',
1981
+ path: 'logs',
1982
+ description: "Tail a workspace's logs.",
1983
+ arguments: [],
1984
+ options: [
1985
+ {
1986
+ key: 'name',
1987
+ long: '--name',
1988
+ short: '-n',
1989
+ value: 'string',
1990
+ required: false,
1991
+ repeatable: false,
1992
+ defaultValue: '',
1993
+ description: 'the workspace (default: the one `houston use` set)',
1994
+ hidden: false,
1995
+ negatablePair: false,
1996
+ },
1997
+ {
1998
+ key: 'follow',
1999
+ long: '--follow',
2000
+ short: '-f',
2001
+ value: 'boolean',
2002
+ required: false,
2003
+ repeatable: false,
2004
+ defaultValue: false,
2005
+ description: 'stream logs',
2006
+ hidden: false,
2007
+ negatablePair: false,
2008
+ },
2009
+ {
2010
+ key: 'tail',
2011
+ long: '--tail',
2012
+ value: 'integer',
2013
+ required: false,
2014
+ repeatable: false,
2015
+ defaultValue: 0,
2016
+ description: 'only the last N lines (0 = all)',
2017
+ hidden: false,
2018
+ negatablePair: false,
2019
+ },
2020
+ ],
2021
+ json: {
2022
+ mode: 'none',
2023
+ streams: false,
2024
+ },
2025
+ }),
2026
+ (0, spec_types_1.defineCommand)({
2027
+ id: 'presets',
2028
+ path: 'presets',
2029
+ description: 'List available presets.',
2030
+ arguments: [],
2031
+ options: [],
2032
+ json: {
2033
+ mode: 'none',
2034
+ streams: false,
2035
+ },
2036
+ }),
2037
+ (0, spec_types_1.defineCommand)({
2038
+ id: 'versions',
2039
+ path: 'versions',
2040
+ description: 'Show the resolved MongoDB pairing for a Rocket.Chat version.',
2041
+ arguments: [
2042
+ {
2043
+ name: 'version',
2044
+ value: 'string',
2045
+ required: true,
2046
+ defaultValue: null,
2047
+ description: 'Rocket.Chat version, e.g. 7.4.1',
2048
+ },
2049
+ ],
2050
+ options: [
2051
+ {
2052
+ key: 'offline',
2053
+ long: '--offline',
2054
+ value: 'boolean',
2055
+ required: false,
2056
+ repeatable: false,
2057
+ defaultValue: false,
2058
+ description: 'answer from the version table shipped with houston, skipping the live lookup',
2059
+ hidden: false,
2060
+ negatablePair: false,
2061
+ },
2062
+ ],
2063
+ json: {
2064
+ mode: 'none',
2065
+ streams: false,
2066
+ },
2067
+ }),
2068
+ (0, spec_types_1.defineCommand)({
2069
+ id: 'audit',
2070
+ path: 'audit',
2071
+ description: 'Read the activity trail: who did what, and whether it was allowed.\n\nThe log has been written since accounts landed and there was no way to read\nit -- "who tore down TICKET-1234?" meant ssh and `cat`. Six tab-separated\ncolumns: time, who, action, target, origin, outcome.\n\n`origin` says how the identity was established, which is what makes a line\nevidence or not:\n\n session a signed-in GUI request; the server checked a credential\n local the CLI, where the OS login matched a known account\n asserted the CLI with HOUSTON_USER set -- honoured as given, so a CLAIM\n system houston acting on its own behalf',
2072
+ arguments: [],
2073
+ options: [
2074
+ {
2075
+ key: 'actor',
2076
+ long: '--actor',
2077
+ value: 'string',
2078
+ required: false,
2079
+ repeatable: false,
2080
+ defaultValue: '',
2081
+ description: 'only this account',
2082
+ hidden: false,
2083
+ negatablePair: false,
2084
+ },
2085
+ {
2086
+ key: 'kind',
2087
+ long: '--kind',
2088
+ value: 'string',
2089
+ required: false,
2090
+ repeatable: false,
2091
+ defaultValue: '',
2092
+ description: 'only this action, e.g. down-volumes',
2093
+ hidden: false,
2094
+ negatablePair: false,
2095
+ },
2096
+ {
2097
+ key: 'since',
2098
+ long: '--since',
2099
+ value: 'string',
2100
+ required: false,
2101
+ repeatable: false,
2102
+ defaultValue: '',
2103
+ description: 'only after this ISO date, e.g. 2026-08-01',
2104
+ hidden: false,
2105
+ negatablePair: false,
2106
+ },
2107
+ {
2108
+ key: 'q',
2109
+ long: '--grep',
2110
+ value: 'string',
2111
+ required: false,
2112
+ repeatable: false,
2113
+ defaultValue: '',
2114
+ description: 'substring of the action or its target',
2115
+ hidden: false,
2116
+ negatablePair: false,
2117
+ },
2118
+ {
2119
+ key: 'n',
2120
+ long: '--lines',
2121
+ short: '-n',
2122
+ shortFirst: true,
2123
+ value: 'integer',
2124
+ required: false,
2125
+ repeatable: false,
2126
+ defaultValue: 50,
2127
+ description: 'how many to show',
2128
+ hidden: false,
2129
+ negatablePair: false,
2130
+ },
2131
+ {
2132
+ key: 'denied',
2133
+ long: '--denied',
2134
+ value: 'boolean',
2135
+ required: false,
2136
+ repeatable: false,
2137
+ defaultValue: false,
2138
+ description: 'only refusals',
2139
+ hidden: false,
2140
+ negatablePair: false,
2141
+ },
2142
+ {
2143
+ key: 'tsv',
2144
+ long: '--tsv',
2145
+ value: 'boolean',
2146
+ required: false,
2147
+ repeatable: false,
2148
+ defaultValue: false,
2149
+ description: 'raw tab-separated, for awk/cut and log shipping',
2150
+ hidden: false,
2151
+ negatablePair: false,
2152
+ },
2153
+ ],
2154
+ json: {
2155
+ mode: 'none',
2156
+ streams: false,
2157
+ },
2158
+ }),
2159
+ (0, spec_types_1.defineCommand)({
2160
+ id: 'chown',
2161
+ path: 'chown',
2162
+ description: 'Hand a workspace over to somebody else.\n\nIts owner or an admin may run it, and --to must be a houston account\n(`houston users list` lists them).\n\nTicket handover is the workflow the shared box is built around, and the record\nonly ever knew who typed `up` -- so "belongs to alice" kept warning the wrong\nperson, which is how people learn to click through warnings. Who CREATED it\nstays in the record; who owns it now is what moves.',
2163
+ arguments: [],
2164
+ options: [
2165
+ {
2166
+ key: 'name',
2167
+ long: '--name',
2168
+ short: '-n',
2169
+ value: 'string',
2170
+ required: false,
2171
+ repeatable: false,
2172
+ defaultValue: '',
2173
+ description: 'the workspace (default: the one `houston use` set)',
2174
+ hidden: false,
2175
+ negatablePair: false,
2176
+ },
2177
+ {
2178
+ key: 'to',
2179
+ long: '--to',
2180
+ value: 'string',
2181
+ required: true,
2182
+ repeatable: false,
2183
+ defaultValue: null,
2184
+ description: 'the account taking it over',
2185
+ hidden: false,
2186
+ negatablePair: false,
2187
+ },
2188
+ ],
2189
+ json: {
2190
+ mode: 'none',
2191
+ streams: false,
2192
+ },
2193
+ }),
2194
+ (0, spec_types_1.defineCommand)({
2195
+ id: 'capabilities',
2196
+ path: 'capabilities',
2197
+ description: 'What this build can do, as JSON, for an agent or a script.\n\nNo `--json` flag, deliberately: this command IS JSON. A flag that is accepted\nand then ignored is worse than no flag.\n\nEvery field is derived from the registered app rather than written out, because\na hardcoded list is right on the day it is written and wrong the first time a\nflag moves -- which is exactly the drift a caller reads this to avoid. Answers\noffline and with no container engine: it is asked BEFORE anybody knows whether\nthe environment works, and the question "does this box work" is `doctor`.',
2198
+ arguments: [],
2199
+ options: [],
2200
+ json: {
2201
+ mode: 'always',
2202
+ schema: 'houston.capabilities.v1',
2203
+ streams: false,
2204
+ },
2205
+ }),
2206
+ (0, spec_types_1.defineCommand)({
2207
+ id: 'skill install',
2208
+ path: 'skill install',
2209
+ description: 'Copy the packaged skill where an agent will find it.',
2210
+ arguments: [],
2211
+ options: [
2212
+ {
2213
+ key: 'host',
2214
+ long: '--host',
2215
+ value: 'string',
2216
+ required: false,
2217
+ repeatable: false,
2218
+ defaultValue: 'all',
2219
+ description: 'claude | agents | all',
2220
+ hidden: false,
2221
+ negatablePair: false,
2222
+ },
2223
+ {
2224
+ key: 'force',
2225
+ long: '--force',
2226
+ value: 'boolean',
2227
+ required: false,
2228
+ repeatable: false,
2229
+ defaultValue: false,
2230
+ description: 'overwrite a locally-edited copy',
2231
+ hidden: false,
2232
+ negatablePair: false,
2233
+ },
2234
+ ],
2235
+ json: {
2236
+ mode: 'flag',
2237
+ schema: 'houston.skill-install.v1',
2238
+ streams: false,
2239
+ option: {
2240
+ index: 2,
2241
+ description: 'print the result as one JSON envelope',
2242
+ },
2243
+ },
2244
+ }),
2245
+ (0, spec_types_1.defineCommand)({
2246
+ id: 'skill status',
2247
+ path: 'skill status',
2248
+ description: 'Whether the installed skill matches this build.',
2249
+ arguments: [],
2250
+ options: [],
2251
+ json: {
2252
+ mode: 'flag',
2253
+ schema: 'houston.skill-status.v1',
2254
+ streams: false,
2255
+ option: {
2256
+ index: 0,
2257
+ description: 'print the result as one JSON envelope',
2258
+ },
2259
+ },
2260
+ }),
2261
+ (0, spec_types_1.defineCommand)({
2262
+ id: 'doctor',
2263
+ path: 'doctor',
2264
+ description: 'Preflight: check Docker, Compose, disk, connectivity and ports.',
2265
+ arguments: [],
2266
+ options: [
2267
+ {
2268
+ key: 'context',
2269
+ long: '--context',
2270
+ value: 'string',
2271
+ required: false,
2272
+ repeatable: false,
2273
+ defaultValue: '',
2274
+ description: 'report on this Kubernetes cluster by kubeconfig context name, as `up --context` would use it',
2275
+ hidden: false,
2276
+ negatablePair: false,
2277
+ },
2278
+ ],
2279
+ json: {
2280
+ mode: 'flag',
2281
+ schema: 'houston.doctor.v1',
2282
+ streams: false,
2283
+ option: {
2284
+ index: 0,
2285
+ description: 'print the report as one JSON envelope; exits 3 on any failing check',
2286
+ },
2287
+ },
2288
+ }),
2289
+ (0, spec_types_1.defineCommand)({
2290
+ id: 'cluster',
2291
+ path: 'cluster',
2292
+ description: "Inspect and manage the Kubernetes clusters that hold workspaces.\n\nNEW TO EKS? Build a cluster houston manages, or find one it already built:\n houston cluster create <name> --zone <dns-zone> # about 20 minutes; bills by the hour\n houston cluster list --force # every EKS cluster, not only houston's\n houston cluster connect <full-eks-arn>\n houston up --version <version> --name <ticket> --context <full-eks-arn>\n\n`create` ends with the one DNS record (a CNAME) to add so workspaces get public names;\n`houston cluster overview` repeats it until it answers. `connect` checks the AWS account\nand adds the cluster to this server's kubeconfig. It does not create a cluster. `up` creates a workspace, never a cloud cluster.\nThe GUI uses the Houston server's AWS identity; a CLI command uses the identity\nfrom its own shell. See `houston cluster guide` for SSO, roles, keys and access.\n\n`status` also works for local and other Kubernetes contexts. `create` builds a new\nEKS cluster and starts an AWS bill; `delete` stops one only after checking ownership.\nAn unreadable cost or resource is shown as `?`, never as zero.",
2293
+ arguments: [
2294
+ {
2295
+ name: 'action',
2296
+ value: 'string',
2297
+ required: false,
2298
+ defaultValue: 'status',
2299
+ description: 'status | list | connect | guide | iam-policy | create | prepare | delete | forget | keep | share | overview',
2300
+ },
2301
+ {
2302
+ name: 'name',
2303
+ value: 'string',
2304
+ required: false,
2305
+ defaultValue: '',
2306
+ description: "the cluster's name (status, create, prepare, delete, keep, share); full ARN (connect); which document, for `iam-policy`",
2307
+ },
2308
+ ],
2309
+ options: [
2310
+ {
2311
+ key: 'context',
2312
+ long: '--context',
2313
+ value: 'string',
2314
+ required: false,
2315
+ repeatable: false,
2316
+ defaultValue: '',
2317
+ description: 'which cluster — its own name (`support`) or the full context name (status). Defaults to `kubernetes.context`, then to the one `up` would use',
2318
+ hidden: false,
2319
+ negatablePair: false,
2320
+ },
2321
+ {
2322
+ key: 'region',
2323
+ long: '--region',
2324
+ value: 'string',
2325
+ required: false,
2326
+ repeatable: false,
2327
+ defaultValue: '',
2328
+ description: 'AWS region (create/delete; narrows `list` to one region). Defaults to the one `aws` resolves',
2329
+ hidden: false,
2330
+ negatablePair: false,
2331
+ },
2332
+ {
2333
+ key: 'nodes',
2334
+ long: '--nodes',
2335
+ value: 'integer',
2336
+ required: false,
2337
+ repeatable: false,
2338
+ defaultValue: 3,
2339
+ description: 'how many nodes (create). 5 is the size for a production-like workspace',
2340
+ hidden: false,
2341
+ negatablePair: false,
2342
+ },
2343
+ {
2344
+ key: 'expires',
2345
+ long: '--expires',
2346
+ value: 'string',
2347
+ required: false,
2348
+ repeatable: false,
2349
+ defaultValue: '',
2350
+ description: 'days until you expect to be finished with this cluster, or `never` (create). Default 7. A REMINDER only — nothing deletes on it',
2351
+ hidden: false,
2352
+ negatablePair: false,
2353
+ },
2354
+ {
2355
+ key: 'days',
2356
+ long: '--days',
2357
+ value: 'integer',
2358
+ required: false,
2359
+ repeatable: false,
2360
+ defaultValue: 7,
2361
+ description: 'days from today to keep the cluster (keep). Moves the reminder tag; nothing deletes on it',
2362
+ hidden: false,
2363
+ negatablePair: false,
2364
+ },
2365
+ {
2366
+ key: 'user',
2367
+ long: '--user',
2368
+ value: 'string',
2369
+ required: false,
2370
+ repeatable: false,
2371
+ defaultValue: '',
2372
+ description: 'the IAM user name, or a full principal ARN, to let run workspaces on the cluster (share)',
2373
+ hidden: false,
2374
+ negatablePair: false,
2375
+ },
2376
+ {
2377
+ key: 'zone',
2378
+ long: '--zone',
2379
+ value: 'string',
2380
+ required: false,
2381
+ repeatable: false,
2382
+ defaultValue: '',
2383
+ description: 'the DNS zone workspace names live under, e.g. rc.example.com (create, prepare). Point *.<zone> at the cluster once; `up --context` then names each workspace <name>.<zone> unless --domain says otherwise',
2384
+ hidden: false,
2385
+ negatablePair: false,
2386
+ },
2387
+ {
2388
+ key: 'subnet',
2389
+ long: '--subnet',
2390
+ value: 'string',
2391
+ required: false,
2392
+ repeatable: true,
2393
+ defaultValue: null,
2394
+ description: 'use an EXISTING VPC: `--subnet <az>=<subnet-id>`, repeatable. Without any, a new VPC is created',
2395
+ hidden: false,
2396
+ negatablePair: false,
2397
+ },
2398
+ {
2399
+ key: 'force',
2400
+ long: '--force',
2401
+ value: 'boolean',
2402
+ required: false,
2403
+ repeatable: false,
2404
+ defaultValue: false,
2405
+ description: 'on `delete`, delete the cluster without first reading what it holds, so any workspace still on it goes with it; on `list`, show every EKS cluster, not only the ones houston built',
2406
+ hidden: false,
2407
+ negatablePair: false,
2408
+ },
2409
+ {
2410
+ key: 'yes',
2411
+ long: '--yes',
2412
+ short: '-y',
2413
+ value: 'boolean',
2414
+ required: false,
2415
+ repeatable: false,
2416
+ defaultValue: false,
2417
+ description: 'skip the confirmation prompt (delete)',
2418
+ hidden: false,
2419
+ negatablePair: false,
2420
+ },
2421
+ {
2422
+ key: 'path_only',
2423
+ long: '--path',
2424
+ value: 'boolean',
2425
+ required: false,
2426
+ repeatable: false,
2427
+ defaultValue: false,
2428
+ description: 'print where the shipped guide is on this machine, and nothing else (guide)',
2429
+ hidden: false,
2430
+ negatablePair: false,
2431
+ },
2432
+ ],
2433
+ json: {
2434
+ mode: 'flag',
2435
+ schema: 'houston.cluster.v1',
2436
+ variants: {
2437
+ argument: 'action',
2438
+ byValue: {
2439
+ status: 'houston.cluster.v1',
2440
+ list: 'houston.cluster-list.v1',
2441
+ connect: 'houston.cluster-connect.v1',
2442
+ guide: 'houston.cluster-guide.v1',
2443
+ 'iam-policy': 'houston.cluster-iam-policy.v1',
2444
+ create: 'houston.cluster-create.v1',
2445
+ prepare: 'houston.cluster-prepare.v1',
2446
+ delete: 'houston.cluster-delete.v1',
2447
+ forget: 'houston.cluster-forget.v1',
2448
+ keep: 'houston.cluster-keep.v1',
2449
+ share: 'houston.cluster-share.v1',
2450
+ overview: 'houston.cluster-overview.v1',
2451
+ },
2452
+ },
2453
+ streams: false,
2454
+ option: {
2455
+ index: 8,
2456
+ description: 'print the ledger as one JSON envelope',
2457
+ },
2458
+ },
2459
+ }),
2460
+ (0, spec_types_1.defineCommand)({
2461
+ id: 'serve',
2462
+ path: 'serve',
2463
+ description: 'Launch the web GUI.\n\n\b\nTRYING IT OUT? There is nothing to learn:\n houston serve\n\nBinds localhost, which is the machine running it — nothing crosses a network,\nand none of the options below apply. The first run prints a one-time link\nending in /setup#k=... ; open the whole url, including the part after #, to\nmake the first account. From your computer, forward the port first (7070\nunless --port says otherwise), then open the link there:\n ssh -L 7070:localhost:7070 <you>@<this server>\n\n(On a box already set up with --domain, plain `serve` keeps serving that name.\nAdd --no-domain for a local session.)\n\nThe rest is only about letting OTHER machines reach it:\n\n\b\n your team, over HTTPS --domain rc.example.com --email you@example.com\n a lab or proxy in front --bind 0.0.0.0 --allow-host <name> --trust-proxy <ip>\n a plain IP, no TLS --bind 0.0.0.0 --allow-host <ip>\n\n--bind decides whether anything off the machine running it can reach it;\n--allow-host says which names may be used to. Whatever you type in the address\nbar must be listed there or every request is a 403, and either flag alone does\nnothing.\n\n--trust-proxy names whatever already terminates TLS (a lab url, ngrok, a load\nbalancer) so the session cookie can be marked Secure. Address or CIDR — a bare\n0.0.0.0 is one address and matches nothing; 0.0.0.0/0 is anywhere.\n\nThe third row is refused until you say what protects the password. `serve`\nprints the flag to add, and why, at the point it stops.\n\nBinding anything but localhost exposes docker control — creating and deleting\nrepros and their volumes — to whoever can reach the port.',
2464
+ arguments: [],
2465
+ options: [
2466
+ {
2467
+ key: 'port',
2468
+ long: '--port',
2469
+ value: 'integer',
2470
+ required: false,
2471
+ repeatable: false,
2472
+ defaultValue: 7070,
2473
+ description: 'host port for the web GUI',
2474
+ hidden: false,
2475
+ negatablePair: false,
2476
+ },
2477
+ {
2478
+ key: 'domain',
2479
+ long: '--domain',
2480
+ value: 'string',
2481
+ required: false,
2482
+ repeatable: false,
2483
+ defaultValue: '',
2484
+ description: "serve the GUI over HTTPS on this full hostname, via houston's shared front door. It and every workspace's <ticket>.<hostname> must resolve to the machine running houston: a DNS record for it, and one wildcard record (*.<hostname>) for every workspace",
2485
+ hidden: false,
2486
+ negatablePair: false,
2487
+ },
2488
+ {
2489
+ key: 'email',
2490
+ long: '--email',
2491
+ value: 'string',
2492
+ required: false,
2493
+ repeatable: false,
2494
+ defaultValue: '',
2495
+ description: "contact address for the Let's Encrypt certificate (remembered after the first use)",
2496
+ hidden: false,
2497
+ negatablePair: false,
2498
+ },
2499
+ {
2500
+ key: 'no_domain',
2501
+ long: '--no-domain',
2502
+ value: 'boolean',
2503
+ required: false,
2504
+ repeatable: false,
2505
+ defaultValue: false,
2506
+ description: 'ignore the domain this box was set up with and serve locally',
2507
+ hidden: false,
2508
+ negatablePair: false,
2509
+ },
2510
+ {
2511
+ key: 'bind',
2512
+ long: '--bind',
2513
+ value: 'string',
2514
+ required: false,
2515
+ repeatable: false,
2516
+ defaultValue: '',
2517
+ description: 'interface to bind (default: loopback, or the Docker bridge with --domain)',
2518
+ hidden: false,
2519
+ negatablePair: false,
2520
+ },
2521
+ {
2522
+ key: 'allow_host',
2523
+ long: '--allow-host',
2524
+ value: 'string',
2525
+ required: false,
2526
+ repeatable: true,
2527
+ defaultValue: null,
2528
+ description: "extra Host header to accept, e.g. a reverse-proxy domain (repeatable; '*' = any host). Needed behind a proxy, a lab URL or Codespaces",
2529
+ hidden: false,
2530
+ negatablePair: false,
2531
+ },
2532
+ {
2533
+ key: 'no_open',
2534
+ long: '--no-open',
2535
+ value: 'boolean',
2536
+ required: false,
2537
+ repeatable: false,
2538
+ defaultValue: false,
2539
+ description: "don't open a browser",
2540
+ hidden: false,
2541
+ negatablePair: false,
2542
+ },
2543
+ {
2544
+ key: 'no_token',
2545
+ long: '--no-token',
2546
+ value: 'boolean',
2547
+ required: false,
2548
+ repeatable: false,
2549
+ defaultValue: false,
2550
+ description: 'deprecated no-op: there is no session token any more',
2551
+ hidden: true,
2552
+ negatablePair: false,
2553
+ },
2554
+ {
2555
+ key: 'print_service',
2556
+ long: '--print-service',
2557
+ value: 'boolean',
2558
+ required: false,
2559
+ repeatable: false,
2560
+ defaultValue: false,
2561
+ description: 'print how to keep this running (systemd unit, or nohup) and exit — writes nothing',
2562
+ hidden: false,
2563
+ negatablePair: false,
2564
+ },
2565
+ {
2566
+ key: 'insecure',
2567
+ long: '--insecure',
2568
+ value: 'boolean',
2569
+ required: false,
2570
+ repeatable: false,
2571
+ defaultValue: false,
2572
+ description: 'no TLS anywhere: the password crosses the network readable, and you accept that. Only needed on a reachable bind with no proxy in front',
2573
+ hidden: true,
2574
+ negatablePair: false,
2575
+ },
2576
+ {
2577
+ key: 'trust_proxy',
2578
+ long: '--trust-proxy',
2579
+ value: 'string',
2580
+ required: false,
2581
+ repeatable: true,
2582
+ defaultValue: null,
2583
+ description: 'TLS ends at this proxy: believe its X-Forwarded-Proto/-For and mark the cookie Secure (address or CIDR, repeatable)',
2584
+ hidden: false,
2585
+ negatablePair: false,
2586
+ },
2587
+ ],
2588
+ json: {
2589
+ mode: 'none',
2590
+ streams: false,
2591
+ },
2592
+ }),
2593
+ ];