@mostra/cli 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +18 -2
  3. package/dist/bin.d.ts +1 -0
  4. package/dist/bin.js +79 -0
  5. package/dist/bin.js.map +1 -0
  6. package/dist/bootstrap-DfEe_yPr.js +113 -0
  7. package/dist/bootstrap-DfEe_yPr.js.map +1 -0
  8. package/dist/exit-CBIf8nAU.js +79 -0
  9. package/dist/exit-CBIf8nAU.js.map +1 -0
  10. package/dist/flush-BCuWs0Zh.js +718 -0
  11. package/dist/flush-BCuWs0Zh.js.map +1 -0
  12. package/dist/index.d.ts +230 -0
  13. package/dist/index.d.ts.map +1 -0
  14. package/dist/index.js +3 -0
  15. package/dist/reference/cli.md +977 -0
  16. package/dist/reference/diagnostics.json +1264 -0
  17. package/dist/reference/errors/MOSTRA_A11Y_MINOR.md +23 -0
  18. package/dist/reference/errors/MOSTRA_A11Y_SERIOUS.md +23 -0
  19. package/dist/reference/errors/MOSTRA_ACTION_CANCELLED.md +23 -0
  20. package/dist/reference/errors/MOSTRA_ACTION_EVENT_INVALID.md +23 -0
  21. package/dist/reference/errors/MOSTRA_ACTION_EXPORT_INVALID.md +23 -0
  22. package/dist/reference/errors/MOSTRA_ACTION_INTERRUPTED.md +23 -0
  23. package/dist/reference/errors/MOSTRA_ACTION_RUN_NOT_FOUND.md +23 -0
  24. package/dist/reference/errors/MOSTRA_ACTION_THREW.md +23 -0
  25. package/dist/reference/errors/MOSTRA_ACTION_TOO_LARGE.md +23 -0
  26. package/dist/reference/errors/MOSTRA_ACTION_UNKNOWN_FUNCTION.md +23 -0
  27. package/dist/reference/errors/MOSTRA_ACTION_UNSERIALIZABLE.md +23 -0
  28. package/dist/reference/errors/MOSTRA_ARTIFACT_DIR_NOT_EMPTY.md +23 -0
  29. package/dist/reference/errors/MOSTRA_ARTIFACT_ENTRY_AMBIGUOUS.md +23 -0
  30. package/dist/reference/errors/MOSTRA_ARTIFACT_NOT_FOUND.md +23 -0
  31. package/dist/reference/errors/MOSTRA_ARTIFACT_NO_ENTRY.md +23 -0
  32. package/dist/reference/errors/MOSTRA_ARTIFACT_NO_PAGE.md +23 -0
  33. package/dist/reference/errors/MOSTRA_ARTIFACT_SOURCE_MISSING.md +23 -0
  34. package/dist/reference/errors/MOSTRA_ARTIFACT_SOURCE_UNREADABLE.md +23 -0
  35. package/dist/reference/errors/MOSTRA_ARTIFACT_TEMPLATE_UNKNOWN.md +23 -0
  36. package/dist/reference/errors/MOSTRA_ARTIFACT_VERSION_COLLECTED.md +23 -0
  37. package/dist/reference/errors/MOSTRA_ARTIFACT_VERSION_NOT_FOUND.md +23 -0
  38. package/dist/reference/errors/MOSTRA_BUILD_CRASHED.md +23 -0
  39. package/dist/reference/errors/MOSTRA_BUILD_FAILED.md +23 -0
  40. package/dist/reference/errors/MOSTRA_BUILD_TIMEOUT.md +23 -0
  41. package/dist/reference/errors/MOSTRA_BUILD_UNRESOLVED.md +23 -0
  42. package/dist/reference/errors/MOSTRA_CLI_CONFIG_UNWRITABLE.md +23 -0
  43. package/dist/reference/errors/MOSTRA_CLI_UNKNOWN_COMMAND.md +23 -0
  44. package/dist/reference/errors/MOSTRA_CLI_USAGE.md +23 -0
  45. package/dist/reference/errors/MOSTRA_CONSOLE_ERROR.md +23 -0
  46. package/dist/reference/errors/MOSTRA_CONSOLE_WARNING.md +23 -0
  47. package/dist/reference/errors/MOSTRA_DEP_INSTALL_FAILED.md +23 -0
  48. package/dist/reference/errors/MOSTRA_DEP_MISSING.md +23 -0
  49. package/dist/reference/errors/MOSTRA_DEP_NOT_FOUND.md +23 -0
  50. package/dist/reference/errors/MOSTRA_DEP_OFFLINE.md +23 -0
  51. package/dist/reference/errors/MOSTRA_DEP_SPEC_INVALID.md +23 -0
  52. package/dist/reference/errors/MOSTRA_DEP_TIMEOUT.md +23 -0
  53. package/dist/reference/errors/MOSTRA_DEP_WARM_CONFLICT.md +23 -0
  54. package/dist/reference/errors/MOSTRA_ENV_BIND_FAILED.md +23 -0
  55. package/dist/reference/errors/MOSTRA_ENV_BROWSER_MISSING.md +23 -0
  56. package/dist/reference/errors/MOSTRA_ENV_BUNDLE_DOWNLOAD_FAILED.md +23 -0
  57. package/dist/reference/errors/MOSTRA_ENV_BUNDLE_INVALID.md +23 -0
  58. package/dist/reference/errors/MOSTRA_ENV_BUNDLE_UNAVAILABLE.md +23 -0
  59. package/dist/reference/errors/MOSTRA_ENV_NODE_UNSUPPORTED.md +23 -0
  60. package/dist/reference/errors/MOSTRA_ENV_PORT_TAKEN.md +23 -0
  61. package/dist/reference/errors/MOSTRA_ENV_RUNTIME_MISSING.md +23 -0
  62. package/dist/reference/errors/MOSTRA_ENV_SERVICE_FAILED.md +23 -0
  63. package/dist/reference/errors/MOSTRA_ENV_SHELL_MISSING.md +23 -0
  64. package/dist/reference/errors/MOSTRA_ENV_WARM_MISSING.md +23 -0
  65. package/dist/reference/errors/MOSTRA_FIELD_CONFLICT.md +23 -0
  66. package/dist/reference/errors/MOSTRA_FIELD_DUPLICATE_ID.md +23 -0
  67. package/dist/reference/errors/MOSTRA_FIELD_ID_INVALID.md +23 -0
  68. package/dist/reference/errors/MOSTRA_FIELD_ID_UNSTABLE.md +23 -0
  69. package/dist/reference/errors/MOSTRA_FIELD_MUTATION_ID_REUSED.md +23 -0
  70. package/dist/reference/errors/MOSTRA_FIELD_SHARED.md +23 -0
  71. package/dist/reference/errors/MOSTRA_FIELD_TOO_LARGE.md +23 -0
  72. package/dist/reference/errors/MOSTRA_FIELD_UNBOUND.md +23 -0
  73. package/dist/reference/errors/MOSTRA_HOME_DISK_FULL.md +23 -0
  74. package/dist/reference/errors/MOSTRA_HOME_GC_INCOMPLETE.md +23 -0
  75. package/dist/reference/errors/MOSTRA_HOME_GONE.md +23 -0
  76. package/dist/reference/errors/MOSTRA_HOME_INTEGRITY.md +23 -0
  77. package/dist/reference/errors/MOSTRA_HOME_LEDGER_UNREADABLE.md +23 -0
  78. package/dist/reference/errors/MOSTRA_HOME_LOCKED.md +23 -0
  79. package/dist/reference/errors/MOSTRA_HOME_MISMATCH.md +23 -0
  80. package/dist/reference/errors/MOSTRA_HOME_NOT_ALWAYS_ON.md +23 -0
  81. package/dist/reference/errors/MOSTRA_HOME_NOT_OWNED.md +23 -0
  82. package/dist/reference/errors/MOSTRA_HOME_SOCKET_TOO_LONG.md +23 -0
  83. package/dist/reference/errors/MOSTRA_HOME_TOO_NEW.md +23 -0
  84. package/dist/reference/errors/MOSTRA_HOST_CONNECTION_CLOSED.md +23 -0
  85. package/dist/reference/errors/MOSTRA_HOST_CURSOR_COMPACTED.md +23 -0
  86. package/dist/reference/errors/MOSTRA_HOST_IDENTITY_UNAVAILABLE.md +23 -0
  87. package/dist/reference/errors/MOSTRA_HOST_INITIALIZE_ORDER.md +23 -0
  88. package/dist/reference/errors/MOSTRA_HOST_INTERNAL_ERROR.md +23 -0
  89. package/dist/reference/errors/MOSTRA_HOST_INVALID_PARAMS.md +23 -0
  90. package/dist/reference/errors/MOSTRA_HOST_MALFORMED.md +23 -0
  91. package/dist/reference/errors/MOSTRA_HOST_MESSAGE_TOO_LARGE.md +23 -0
  92. package/dist/reference/errors/MOSTRA_HOST_METHOD_UNKNOWN.md +23 -0
  93. package/dist/reference/errors/MOSTRA_HOST_NOTIFICATION_UNSUPPORTED.md +23 -0
  94. package/dist/reference/errors/MOSTRA_HOST_PORT_UNSUPPORTED.md +23 -0
  95. package/dist/reference/errors/MOSTRA_HOST_REQUEST_ID_REUSED.md +23 -0
  96. package/dist/reference/errors/MOSTRA_HOST_REVISION_UNSUPPORTED.md +23 -0
  97. package/dist/reference/errors/MOSTRA_HOST_SHUTDOWN_REFUSED.md +23 -0
  98. package/dist/reference/errors/MOSTRA_HOST_SUBSCRIPTION_UNKNOWN.md +23 -0
  99. package/dist/reference/errors/MOSTRA_HOST_TIMEOUT.md +23 -0
  100. package/dist/reference/errors/MOSTRA_HYGIENE_CONTENT_TYPE.md +23 -0
  101. package/dist/reference/errors/MOSTRA_HYGIENE_CSRF_MISSING.md +23 -0
  102. package/dist/reference/errors/MOSTRA_HYGIENE_HEADERS_TOO_LARGE.md +23 -0
  103. package/dist/reference/errors/MOSTRA_HYGIENE_HOST_REFUSED.md +23 -0
  104. package/dist/reference/errors/MOSTRA_HYGIENE_NOT_SERVED.md +23 -0
  105. package/dist/reference/errors/MOSTRA_HYGIENE_ORIGIN_REFUSED.md +23 -0
  106. package/dist/reference/errors/MOSTRA_HYGIENE_RATE_LIMITED.md +23 -0
  107. package/dist/reference/errors/MOSTRA_HYGIENE_REQUEST_MALFORMED.md +23 -0
  108. package/dist/reference/errors/MOSTRA_HYGIENE_SCOPE_DENIED.md +23 -0
  109. package/dist/reference/errors/MOSTRA_HYGIENE_SESSION_CONFLICT.md +23 -0
  110. package/dist/reference/errors/MOSTRA_HYGIENE_SESSION_MISSING.md +23 -0
  111. package/dist/reference/errors/MOSTRA_HYGIENE_TOKEN_INVALID.md +23 -0
  112. package/dist/reference/errors/MOSTRA_HYGIENE_TOKEN_REVOKED.md +23 -0
  113. package/dist/reference/errors/MOSTRA_LIVE_SOURCE_FAILED.md +23 -0
  114. package/dist/reference/errors/MOSTRA_LIVE_TOO_LARGE.md +23 -0
  115. package/dist/reference/errors/MOSTRA_MANIFEST_INVALID.md +23 -0
  116. package/dist/reference/errors/MOSTRA_MANIFEST_NOT_LITERAL.md +23 -0
  117. package/dist/reference/errors/MOSTRA_MANIFEST_UNKNOWN_KEY.md +23 -0
  118. package/dist/reference/errors/MOSTRA_NETWORK_EXTERNAL_FAILED.md +23 -0
  119. package/dist/reference/errors/MOSTRA_NETWORK_REQUEST_FAILED.md +23 -0
  120. package/dist/reference/errors/MOSTRA_PLATFORM_UNSUPPORTED.md +23 -0
  121. package/dist/reference/errors/MOSTRA_PUBLISH_ID_CONFLICT.md +23 -0
  122. package/dist/reference/errors/MOSTRA_PUBLISH_SOURCE_CHANGED.md +23 -0
  123. package/dist/reference/errors/MOSTRA_PUBLISH_VERIFY_FAILED.md +23 -0
  124. package/dist/reference/errors/MOSTRA_REGRESSION_ACTION_REMOVED.md +23 -0
  125. package/dist/reference/errors/MOSTRA_REGRESSION_ARIA.md +23 -0
  126. package/dist/reference/errors/MOSTRA_REGRESSION_FIELD_REMOVED.md +23 -0
  127. package/dist/reference/errors/MOSTRA_REGRESSION_LIVE_REMOVED.md +23 -0
  128. package/dist/reference/errors/MOSTRA_REGRESSION_PAGE_REMOVED.md +23 -0
  129. package/dist/reference/errors/MOSTRA_REGRESSION_PIXELS.md +23 -0
  130. package/dist/reference/errors/MOSTRA_RUNTIME_BLANK.md +23 -0
  131. package/dist/reference/errors/MOSTRA_RUNTIME_NOT_READY.md +23 -0
  132. package/dist/reference/errors/MOSTRA_RUNTIME_PAGE_ERROR.md +23 -0
  133. package/dist/reference/errors/MOSTRA_RUNTIME_WORKER_CRASHED.md +23 -0
  134. package/dist/reference/errors/MOSTRA_RUNTIME_WORKER_PARKED.md +23 -0
  135. package/dist/reference/errors/MOSTRA_SECRET_MISSING.md +23 -0
  136. package/dist/reference/errors/MOSTRA_SMOKE_BUDGET.md +23 -0
  137. package/dist/reference/errors/MOSTRA_SMOKE_NO_EFFECT.md +23 -0
  138. package/dist/reference/errors/MOSTRA_SUBMIT_ALREADY.md +23 -0
  139. package/dist/reference/errors/MOSTRA_SUBMIT_BLOCKED.md +23 -0
  140. package/dist/reference/errors/MOSTRA_SUBMIT_CHANNEL_DENIED.md +23 -0
  141. package/dist/reference/errors/MOSTRA_SUBMIT_NOT_FOUND.md +23 -0
  142. package/dist/reference/errors/MOSTRA_SUBMIT_POLICY_NONE.md +23 -0
  143. package/dist/reference/errors/MOSTRA_SUBMIT_REVISION_MOVED.md +23 -0
  144. package/dist/reference/errors/MOSTRA_SUBMIT_SIGNAL_INVALID.md +23 -0
  145. package/dist/reference/errors/MOSTRA_SUBMIT_VIEW_INVALID.md +23 -0
  146. package/dist/reference/errors/MOSTRA_TARGET_UNAVAILABLE.md +23 -0
  147. package/dist/reference/errors/MOSTRA_TYPE_ERROR.md +23 -0
  148. package/dist/reference/errors/MOSTRA_TYPE_UNTYPED_PACKAGE.md +23 -0
  149. package/dist/reference/errors/MOSTRA_VERIFY_ACTION_SKIPPED.md +23 -0
  150. package/dist/reference/errors/MOSTRA_VERIFY_BASELINE_MISSING.md +23 -0
  151. package/dist/reference/errors/MOSTRA_VERIFY_CRASHED.md +23 -0
  152. package/dist/reference/errors/MOSTRA_VERIFY_LIVE_FAILED.md +23 -0
  153. package/dist/reference/errors/MOSTRA_VERIFY_NO_BASELINE.md +23 -0
  154. package/dist/reference/errors/MOSTRA_VERIFY_SECRET_MISSING.md +23 -0
  155. package/dist/reference/errors/MOSTRA_VERIFY_SKIP_CONSEQUENCE.md +23 -0
  156. package/dist/reference/errors/MOSTRA_VERIFY_TIMEOUT.md +23 -0
  157. package/dist/reference/telemetry.md +82 -0
  158. package/dist/run-BJaRnz-Q.js +3824 -0
  159. package/dist/run-BJaRnz-Q.js.map +1 -0
  160. package/dist/run-CMyjOm0Q.js +2 -0
  161. package/dist/telemetry/flush-main.d.ts +1 -0
  162. package/dist/telemetry/flush-main.js +14 -0
  163. package/dist/telemetry/flush-main.js.map +1 -0
  164. package/package.json +62 -3
  165. package/src/bin.ts +70 -0
  166. package/src/bootstrap.ts +156 -0
  167. package/src/browser.ts +186 -0
  168. package/src/client.ts +313 -0
  169. package/src/command.ts +147 -0
  170. package/src/commands/admin.ts +791 -0
  171. package/src/commands/authoring.ts +244 -0
  172. package/src/commands/dev.ts +106 -0
  173. package/src/commands/index.ts +71 -0
  174. package/src/commands/interaction.ts +288 -0
  175. package/src/commands/shared.ts +71 -0
  176. package/src/commands/viewing.ts +153 -0
  177. package/src/docs.ts +111 -0
  178. package/src/exit.ts +89 -0
  179. package/src/help.ts +170 -0
  180. package/src/home.ts +111 -0
  181. package/src/index.ts +23 -0
  182. package/src/node-gate.ts +15 -0
  183. package/src/parse.ts +246 -0
  184. package/src/run.ts +387 -0
  185. package/src/telemetry/decision.ts +101 -0
  186. package/src/telemetry/events.ts +147 -0
  187. package/src/telemetry/flush-main.ts +13 -0
  188. package/src/telemetry/flush.ts +143 -0
  189. package/src/telemetry/harness.ts +39 -0
  190. package/src/telemetry/index.ts +318 -0
  191. package/src/telemetry/store.ts +379 -0
  192. package/src/telemetry/timezone.ts +72 -0
  193. package/src/telemetry/words.ts +87 -0
  194. package/src/telemetry/zone-sets.ts +182 -0
  195. package/src/telemetry/zones.generated.ts +720 -0
  196. package/src/version.ts +43 -0
@@ -0,0 +1,977 @@
1
+ # The mostra CLI
2
+
3
+ <!-- Generated from the command definitions in packages/cli/src/commands/. Don't edit; run `pnpm fix`. -->
4
+
5
+ Every command takes `--json`, which prints one envelope on stdout: `{ "ok": true, "result", "instance", "warnings" }` or `{ "ok": false, "error", "warnings" }`. Streaming commands print one envelope per line, the last one carrying `result` or `error`. Logs and progress go to stderr. Without a terminal, or with `--json`, no command asks a question.
6
+
7
+ Commands: `add`, `daemon`, `dev`, `docs`, `doctor`, `gc`, `host`, `list`, `new`, `open`, `publish`, `push`, `results`, `secret`, `state`, `status`, `telemetry`, `verify`, `wait`.
8
+
9
+ ## mostra new
10
+
11
+ ```text
12
+ Create an artifact in an empty directory, with a generated ID.
13
+
14
+ Usage:
15
+ mostra new <dir> [flags]
16
+
17
+ Arguments:
18
+ <dir> The directory to create it in; it must be empty or not exist.
19
+
20
+ Flags:
21
+ --title <text> The artifact's title. Default: the directory's name.
22
+ --template <family> Start from a template (templates arrive in a later release).
23
+ --request-id <id> Make a retry return the first attempt's result.
24
+
25
+ Global flags:
26
+ --json Print one JSON envelope on stdout (NDJSON for streams).
27
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
28
+ --cwd <dir> Resolve relative paths from this directory.
29
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
30
+ --help Show this command's help; with --json, its definition.
31
+
32
+ Output: ArtifactCreateResult (mostra docs cli)
33
+
34
+ Exit codes:
35
+ 0 success
36
+ 1 artifact failure (verify failed, publish refused, the artifact's state refused the request)
37
+ 2 usage error
38
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
39
+ 4 timeout (--timeout passed)
40
+
41
+ Example:
42
+ mostra new ./sidebar-review --title 'Sidebar review'
43
+ ```
44
+
45
+ ## mostra dev
46
+
47
+ ```text
48
+ Preview an artifact's unpublished source with hot reload, until Ctrl-C; viewers never see it.
49
+
50
+ Usage:
51
+ mostra dev <path> [flags]
52
+
53
+ Arguments:
54
+ <path> The artifact's source: a file, a directory, or its ID.
55
+
56
+ Flags:
57
+ --port <port> The preview's port on 127.0.0.1; default one the system picks.
58
+
59
+ Global flags:
60
+ --json Print one JSON envelope on stdout (NDJSON for streams).
61
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
62
+ --cwd <dir> Resolve relative paths from this directory.
63
+ --help Show this command's help; with --json, its definition.
64
+
65
+ Output: DevStartResult (mostra docs cli)
66
+
67
+ Exit codes:
68
+ 0 success
69
+ 1 artifact failure (verify failed, publish refused, the artifact's state refused the request)
70
+ 2 usage error
71
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
72
+
73
+ Example:
74
+ mostra dev ./sidebar-review
75
+ ```
76
+
77
+ ## mostra verify
78
+
79
+ ```text
80
+ Build, render and check an artifact's source; one verdict, nothing published.
81
+
82
+ Usage:
83
+ mostra verify <path> [flags]
84
+
85
+ Arguments:
86
+ <path> The artifact's source: a file, a directory, or its ID.
87
+
88
+ Flags:
89
+ --screenshots <when> Which screenshots the verdict marks as worth looking at. (on-failure, always, never) Default: on-failure.
90
+
91
+ Global flags:
92
+ --json Print one JSON envelope on stdout (NDJSON for streams).
93
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
94
+ --cwd <dir> Resolve relative paths from this directory.
95
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
96
+ --help Show this command's help; with --json, its definition.
97
+
98
+ Output: VerifyVerdict (mostra docs cli)
99
+
100
+ Exit codes:
101
+ 0 success
102
+ 1 artifact failure (verify failed, publish refused, the artifact's state refused the request)
103
+ 2 usage error
104
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
105
+ 4 timeout (--timeout passed)
106
+
107
+ Example:
108
+ mostra verify ./sidebar-review
109
+ ```
110
+
111
+ ## mostra publish
112
+
113
+ ```text
114
+ Publish an artifact's source as a new immutable version, gated by verify, and print its link.
115
+
116
+ Usage:
117
+ mostra publish <path> [flags]
118
+
119
+ Arguments:
120
+ <path> The artifact's source: a file, a directory, or its ID.
121
+
122
+ Flags:
123
+ --force Publish despite verify's errors and record their codes; never what didn't build.
124
+ --policy <policy> The submission policy to use, instead of the manifest's. (once, once-per-viewer, epochs, none)
125
+ --request-id <id> Make a retry return the first attempt's receipt.
126
+
127
+ Global flags:
128
+ --json Print one JSON envelope on stdout (NDJSON for streams).
129
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
130
+ --cwd <dir> Resolve relative paths from this directory.
131
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
132
+ --help Show this command's help; with --json, its definition.
133
+
134
+ Output: PublishReceipt (mostra docs cli)
135
+
136
+ Exit codes:
137
+ 0 success
138
+ 1 artifact failure (verify failed, publish refused, the artifact's state refused the request)
139
+ 2 usage error
140
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
141
+ 4 timeout (--timeout passed)
142
+ 6 conflict (already submitted, a compare-and-set mismatch, a reused request ID)
143
+
144
+ Example:
145
+ mostra publish ./sidebar-review
146
+ ```
147
+
148
+ ## mostra open
149
+
150
+ ```text
151
+ Print an artifact's capability link and open it in a browser; or mint, rotate or revoke a link.
152
+
153
+ Usage:
154
+ mostra open <artifact> [flags]
155
+
156
+ Arguments:
157
+ <artifact> The artifact: its source path or its ID.
158
+
159
+ Flags:
160
+ --new Mint a separate link instead of the artifact's default one.
161
+ --version <n|id> A new link that opens only this version.
162
+ --scope <a,b> A new link's scopes: view, draft, submit, review, signal, action:*. Default: all.
163
+ --ttl <d> A new link that expires after this long, such as 24h.
164
+ --viewer <ref> A new link that acts for this person, by your own stable key for them.
165
+ --viewer-name <name> The display name of --viewer.
166
+ --rotate <tokenId> Replace this link with a new one; the old one stops working.
167
+ --revoke <tokenId> Stop this link from working.
168
+ --browser Open a browser even without a terminal.
169
+ --no-browser Only print the link.
170
+ --request-id <id> Make a retried --new return the same link.
171
+
172
+ Global flags:
173
+ --json Print one JSON envelope on stdout (NDJSON for streams).
174
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
175
+ --cwd <dir> Resolve relative paths from this directory.
176
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
177
+ --help Show this command's help; with --json, its definition.
178
+
179
+ Output: CapabilityLink (mostra docs cli)
180
+
181
+ Exit codes:
182
+ 0 success
183
+ 1 artifact failure (verify failed, publish refused, the artifact's state refused the request)
184
+ 2 usage error
185
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
186
+ 4 timeout (--timeout passed)
187
+
188
+ Example:
189
+ mostra open ./sidebar-review
190
+ ```
191
+
192
+ ## mostra wait
193
+
194
+ ```text
195
+ Block until an artifact's submission, signal, state change or event; still_waiting on timeout.
196
+
197
+ Usage:
198
+ mostra wait <artifact> [flags]
199
+
200
+ Arguments:
201
+ <artifact> The artifact: its source path or its ID.
202
+
203
+ Flags:
204
+ --until <condition> submitted, signal:<name>, state:<fieldId> or event:<type>.
205
+ --after <cursor> Wait for what comes after this cursor. Default: the latest publish.
206
+ --timeout <d> Stop waiting after this long, with still_waiting and exit 5. Default: no limit.
207
+
208
+ Global flags:
209
+ --json Print one JSON envelope on stdout (NDJSON for streams).
210
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
211
+ --cwd <dir> Resolve relative paths from this directory.
212
+ --help Show this command's help; with --json, its definition.
213
+
214
+ Output: WaitResult (mostra docs cli)
215
+
216
+ Exit codes:
217
+ 0 success
218
+ 1 artifact failure (verify failed, publish refused, the artifact's state refused the request)
219
+ 2 usage error
220
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
221
+ 5 still waiting (the wait timed out; the result says where to resume)
222
+
223
+ Example:
224
+ mostra wait ./sidebar-review --until submitted --timeout 30m
225
+ ```
226
+
227
+ ## mostra results
228
+
229
+ ```text
230
+ Print an artifact's submission in full: answers, state, choices, comments, actions and signals.
231
+
232
+ Usage:
233
+ mostra results <artifact> [flags]
234
+
235
+ Arguments:
236
+ <artifact> The artifact: its source path or its ID.
237
+
238
+ Flags:
239
+ --submission <id> This submission instead of the latest.
240
+ --format <format> Markdown or JSON. Default: Markdown, or JSON with --json. (md, json)
241
+
242
+ Global flags:
243
+ --json Print one JSON envelope on stdout (NDJSON for streams).
244
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
245
+ --cwd <dir> Resolve relative paths from this directory.
246
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
247
+ --help Show this command's help; with --json, its definition.
248
+
249
+ Output: Results (mostra docs cli)
250
+
251
+ Exit codes:
252
+ 0 success
253
+ 1 artifact failure (verify failed, publish refused, the artifact's state refused the request)
254
+ 2 usage error
255
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
256
+ 4 timeout (--timeout passed)
257
+
258
+ Example:
259
+ mostra results ./sidebar-review
260
+ ```
261
+
262
+ ## mostra state get
263
+
264
+ ```text
265
+ Read an artifact's state: the fields every viewer shares, with their revisions.
266
+
267
+ Usage:
268
+ mostra state get <artifact> [<id…>]
269
+
270
+ Arguments:
271
+ <artifact> The artifact: its source path or its ID.
272
+ <id> Only these field IDs.
273
+
274
+ Global flags:
275
+ --json Print one JSON envelope on stdout (NDJSON for streams).
276
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
277
+ --cwd <dir> Resolve relative paths from this directory.
278
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
279
+ --help Show this command's help; with --json, its definition.
280
+
281
+ Output: StateGetResult (mostra docs cli)
282
+
283
+ Exit codes:
284
+ 0 success
285
+ 1 artifact failure (verify failed, publish refused, the artifact's state refused the request)
286
+ 2 usage error
287
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
288
+ 4 timeout (--timeout passed)
289
+
290
+ Example:
291
+ mostra state get ./tasks priorities
292
+ ```
293
+
294
+ ## mostra state set
295
+
296
+ ```text
297
+ Set one field of an artifact's state; viewers see it at once.
298
+
299
+ Usage:
300
+ mostra state set <artifact> <id> <value> [flags]
301
+
302
+ Arguments:
303
+ <artifact> The artifact: its source path or its ID.
304
+ <id> The field ID.
305
+ <value> The value, as JSON.
306
+
307
+ Flags:
308
+ --base <revision> Write only if the fields are unchanged since this revision; else a conflict (exit 6).
309
+ --as <actor> Who the change is attributed to. (agent, host) Default: agent.
310
+ --mutation-id <mut_…> Make a retry return the first attempt's result.
311
+
312
+ Global flags:
313
+ --json Print one JSON envelope on stdout (NDJSON for streams).
314
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
315
+ --cwd <dir> Resolve relative paths from this directory.
316
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
317
+ --help Show this command's help; with --json, its definition.
318
+
319
+ Output: StatePatchResult (mostra docs cli)
320
+
321
+ Exit codes:
322
+ 0 success
323
+ 1 artifact failure (verify failed, publish refused, the artifact's state refused the request)
324
+ 2 usage error
325
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
326
+ 4 timeout (--timeout passed)
327
+ 6 conflict (already submitted, a compare-and-set mismatch, a reused request ID)
328
+
329
+ Example:
330
+ mostra state set ./tasks priorities '["Ship the CLI"]'
331
+ ```
332
+
333
+ ## mostra state patch
334
+
335
+ ```text
336
+ Change several fields of an artifact's state in one revision: [{ id, value } | { id, delete: true }].
337
+
338
+ Usage:
339
+ mostra state patch <artifact> [flags]
340
+
341
+ Arguments:
342
+ <artifact> The artifact: its source path or its ID.
343
+
344
+ Flags:
345
+ --ops <json> The operations, as JSON.
346
+ --file <path> Read the operations from a JSON file.
347
+ --stdin Read the operations from stdin.
348
+ --base <revision> Write only if the fields are unchanged since this revision; else a conflict (exit 6).
349
+ --as <actor> Who the change is attributed to. (agent, host) Default: agent.
350
+ --mutation-id <mut_…> Make a retry return the first attempt's result.
351
+
352
+ Global flags:
353
+ --json Print one JSON envelope on stdout (NDJSON for streams).
354
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
355
+ --cwd <dir> Resolve relative paths from this directory.
356
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
357
+ --help Show this command's help; with --json, its definition.
358
+
359
+ Output: StatePatchResult (mostra docs cli)
360
+
361
+ Exit codes:
362
+ 0 success
363
+ 1 artifact failure (verify failed, publish refused, the artifact's state refused the request)
364
+ 2 usage error
365
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
366
+ 4 timeout (--timeout passed)
367
+ 6 conflict (already submitted, a compare-and-set mismatch, a reused request ID)
368
+
369
+ Example:
370
+ mostra state patch ./tasks --file ops.json
371
+ ```
372
+
373
+ ## mostra push
374
+
375
+ ```text
376
+ Push a value into an artifact's live source; pages showing it update at once.
377
+
378
+ Usage:
379
+ mostra push <artifact> <key> [flags]
380
+
381
+ Arguments:
382
+ <artifact> The artifact: its source path or its ID.
383
+ <key> The live source's key: its export name in live.ts, or a new one.
384
+
385
+ Flags:
386
+ --value <json> The value, as JSON.
387
+ --file <path> Read the value from a JSON file.
388
+ --stdin Read the value from stdin.
389
+ --append Add the value to the source's ring instead of replacing it.
390
+ --request-id <id> Make a retry return the first attempt's revision.
391
+
392
+ Global flags:
393
+ --json Print one JSON envelope on stdout (NDJSON for streams).
394
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
395
+ --cwd <dir> Resolve relative paths from this directory.
396
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
397
+ --help Show this command's help; with --json, its definition.
398
+
399
+ Output: LivePushResult (mostra docs cli)
400
+
401
+ Exit codes:
402
+ 0 success
403
+ 1 artifact failure (verify failed, publish refused, the artifact's state refused the request)
404
+ 2 usage error
405
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
406
+ 4 timeout (--timeout passed)
407
+
408
+ Example:
409
+ mostra push ./dashboard prices --value '{"btc": 64000}'
410
+ ```
411
+
412
+ ## mostra add
413
+
414
+ ```text
415
+ Add npm packages to an artifact's lockfile at exact versions, installing them into the home's store.
416
+
417
+ Usage:
418
+ mostra add <package…> [flags]
419
+
420
+ Arguments:
421
+ <package> npm specs: name, name@version, name@range or name@tag.
422
+
423
+ Flags:
424
+ --artifact <path|id> The artifact. Default: the one in the current directory.
425
+ --request-id <id> Make a retry return the first attempt's result.
426
+
427
+ Global flags:
428
+ --json Print one JSON envelope on stdout (NDJSON for streams).
429
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
430
+ --cwd <dir> Resolve relative paths from this directory.
431
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
432
+ --help Show this command's help; with --json, its definition.
433
+
434
+ Output: DepsAddResult (mostra docs cli)
435
+
436
+ Exit codes:
437
+ 0 success
438
+ 1 artifact failure (verify failed, publish refused, the artifact's state refused the request)
439
+ 2 usage error
440
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
441
+ 4 timeout (--timeout passed)
442
+
443
+ Example:
444
+ mostra add recharts@3 --artifact ./dashboard
445
+ ```
446
+
447
+ ## mostra secret set
448
+
449
+ ```text
450
+ Store a secret that server code reads with secret(name); the value comes from stdin and is never shown.
451
+
452
+ Usage:
453
+ mostra secret set <name> [flags]
454
+
455
+ Arguments:
456
+ <name> Letters, digits, _, . and -, starting with a letter or _.
457
+
458
+ Flags:
459
+ --artifact <path|id> The artifact's own secret, instead of one the whole home shares.
460
+
461
+ Global flags:
462
+ --json Print one JSON envelope on stdout (NDJSON for streams).
463
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
464
+ --cwd <dir> Resolve relative paths from this directory.
465
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
466
+ --help Show this command's help; with --json, its definition.
467
+
468
+ Output: SecretEntry (mostra docs cli)
469
+
470
+ Exit codes:
471
+ 0 success
472
+ 1 artifact failure (verify failed, publish refused, the artifact's state refused the request)
473
+ 2 usage error
474
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
475
+ 4 timeout (--timeout passed)
476
+
477
+ Example:
478
+ mostra secret set MAIL_TOKEN --artifact ./inbox < token.txt
479
+ ```
480
+
481
+ ## mostra secret list
482
+
483
+ ```text
484
+ List the secrets' names and scopes; values are never shown.
485
+
486
+ Usage:
487
+ mostra secret list [flags]
488
+
489
+ Flags:
490
+ --artifact <path|id> The artifact's own secret, instead of one the whole home shares.
491
+
492
+ Global flags:
493
+ --json Print one JSON envelope on stdout (NDJSON for streams).
494
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
495
+ --cwd <dir> Resolve relative paths from this directory.
496
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
497
+ --help Show this command's help; with --json, its definition.
498
+
499
+ Output: SecretListResult (mostra docs cli)
500
+
501
+ Exit codes:
502
+ 0 success
503
+ 1 artifact failure (verify failed, publish refused, the artifact's state refused the request)
504
+ 2 usage error
505
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
506
+ 4 timeout (--timeout passed)
507
+
508
+ Example:
509
+ mostra secret list --artifact ./inbox
510
+ ```
511
+
512
+ ## mostra secret rm
513
+
514
+ ```text
515
+ Delete a secret.
516
+
517
+ Usage:
518
+ mostra secret rm <name> [flags]
519
+
520
+ Arguments:
521
+ <name> The secret's name.
522
+
523
+ Flags:
524
+ --artifact <path|id> The artifact's own secret, instead of one the whole home shares.
525
+
526
+ Global flags:
527
+ --json Print one JSON envelope on stdout (NDJSON for streams).
528
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
529
+ --cwd <dir> Resolve relative paths from this directory.
530
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
531
+ --help Show this command's help; with --json, its definition.
532
+
533
+ Output: SecretDeleteResult (mostra docs cli)
534
+
535
+ Exit codes:
536
+ 0 success
537
+ 1 artifact failure (verify failed, publish refused, the artifact's state refused the request)
538
+ 2 usage error
539
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
540
+ 4 timeout (--timeout passed)
541
+
542
+ Example:
543
+ mostra secret rm MAIL_TOKEN --artifact ./inbox
544
+ ```
545
+
546
+ ## mostra list
547
+
548
+ ```text
549
+ List the home's published artifacts.
550
+
551
+ Usage:
552
+ mostra list [flags]
553
+
554
+ Flags:
555
+ --family <family> Only artifacts of this family.
556
+
557
+ Global flags:
558
+ --json Print one JSON envelope on stdout (NDJSON for streams).
559
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
560
+ --cwd <dir> Resolve relative paths from this directory.
561
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
562
+ --help Show this command's help; with --json, its definition.
563
+
564
+ Output: ArtifactListResult (mostra docs cli)
565
+
566
+ Exit codes:
567
+ 0 success
568
+ 2 usage error
569
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
570
+ 4 timeout (--timeout passed)
571
+
572
+ Example:
573
+ mostra list --family dashboard
574
+ ```
575
+
576
+ ## mostra status
577
+
578
+ ```text
579
+ Show the instance (processes, workers, deliveries) or one artifact (versions, policy, links).
580
+
581
+ Usage:
582
+ mostra status [<artifact>]
583
+
584
+ Arguments:
585
+ <artifact> An artifact: its source path or its ID.
586
+
587
+ Global flags:
588
+ --json Print one JSON envelope on stdout (NDJSON for streams).
589
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
590
+ --cwd <dir> Resolve relative paths from this directory.
591
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
592
+ --help Show this command's help; with --json, its definition.
593
+
594
+ Output: InstanceStatusResult or ArtifactDetail (mostra docs cli)
595
+
596
+ Exit codes:
597
+ 0 success
598
+ 1 artifact failure (verify failed, publish refused, the artifact's state refused the request)
599
+ 2 usage error
600
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
601
+ 4 timeout (--timeout passed)
602
+
603
+ Example:
604
+ mostra status ./sidebar-review
605
+ ```
606
+
607
+ ## mostra daemon start
608
+
609
+ ```text
610
+ Start the home's daemon, or find the one already running.
611
+
612
+ Usage:
613
+ mostra daemon start
614
+
615
+ Global flags:
616
+ --json Print one JSON envelope on stdout (NDJSON for streams).
617
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
618
+ --cwd <dir> Resolve relative paths from this directory.
619
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
620
+ --help Show this command's help; with --json, its definition.
621
+
622
+ Output: DaemonStatus (mostra docs cli)
623
+
624
+ Exit codes:
625
+ 0 success
626
+ 2 usage error
627
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
628
+ 4 timeout (--timeout passed)
629
+
630
+ Example:
631
+ mostra daemon start
632
+ ```
633
+
634
+ ## mostra daemon stop
635
+
636
+ ```text
637
+ Stop the home's daemon; open pages reconnect when it starts again.
638
+
639
+ Usage:
640
+ mostra daemon stop
641
+
642
+ Global flags:
643
+ --json Print one JSON envelope on stdout (NDJSON for streams).
644
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
645
+ --cwd <dir> Resolve relative paths from this directory.
646
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
647
+ --help Show this command's help; with --json, its definition.
648
+
649
+ Output: DaemonStop (mostra docs cli)
650
+
651
+ Exit codes:
652
+ 0 success
653
+ 2 usage error
654
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
655
+ 4 timeout (--timeout passed)
656
+
657
+ Example:
658
+ mostra daemon stop
659
+ ```
660
+
661
+ ## mostra daemon restart
662
+
663
+ ```text
664
+ Stop the home's daemon and start it again, for instance after an update.
665
+
666
+ Usage:
667
+ mostra daemon restart
668
+
669
+ Global flags:
670
+ --json Print one JSON envelope on stdout (NDJSON for streams).
671
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
672
+ --cwd <dir> Resolve relative paths from this directory.
673
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
674
+ --help Show this command's help; with --json, its definition.
675
+
676
+ Output: DaemonStatus (mostra docs cli)
677
+
678
+ Exit codes:
679
+ 0 success
680
+ 2 usage error
681
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
682
+ 4 timeout (--timeout passed)
683
+
684
+ Example:
685
+ mostra daemon restart
686
+ ```
687
+
688
+ ## mostra daemon status
689
+
690
+ ```text
691
+ Whether the home's daemon runs, when it would exit for lack of work, and its login service.
692
+
693
+ Usage:
694
+ mostra daemon status
695
+
696
+ Global flags:
697
+ --json Print one JSON envelope on stdout (NDJSON for streams).
698
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
699
+ --cwd <dir> Resolve relative paths from this directory.
700
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
701
+ --help Show this command's help; with --json, its definition.
702
+
703
+ Output: DaemonStatus (mostra docs cli)
704
+
705
+ Exit codes:
706
+ 0 success
707
+ 2 usage error
708
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
709
+ 4 timeout (--timeout passed)
710
+
711
+ Example:
712
+ mostra daemon status
713
+ ```
714
+
715
+ ## mostra daemon install
716
+
717
+ ```text
718
+ Run the home's daemon as a login service (launchd or systemd), so links answer at any hour.
719
+
720
+ Usage:
721
+ mostra daemon install [flags]
722
+
723
+ Flags:
724
+ --no-start Write or remove the service's file without asking launchd or systemd to load it.
725
+
726
+ Global flags:
727
+ --json Print one JSON envelope on stdout (NDJSON for streams).
728
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
729
+ --cwd <dir> Resolve relative paths from this directory.
730
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
731
+ --help Show this command's help; with --json, its definition.
732
+
733
+ Output: ServiceStatus (mostra docs cli)
734
+
735
+ Exit codes:
736
+ 0 success
737
+ 2 usage error
738
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
739
+ 4 timeout (--timeout passed)
740
+
741
+ Example:
742
+ mostra daemon install
743
+ ```
744
+
745
+ ## mostra daemon uninstall
746
+
747
+ ```text
748
+ Remove the home's login service; the daemon then exits after 30 idle minutes.
749
+
750
+ Usage:
751
+ mostra daemon uninstall [flags]
752
+
753
+ Flags:
754
+ --no-start Write or remove the service's file without asking launchd or systemd to load it.
755
+
756
+ Global flags:
757
+ --json Print one JSON envelope on stdout (NDJSON for streams).
758
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
759
+ --cwd <dir> Resolve relative paths from this directory.
760
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
761
+ --help Show this command's help; with --json, its definition.
762
+
763
+ Output: ServiceStatus (mostra docs cli)
764
+
765
+ Exit codes:
766
+ 0 success
767
+ 2 usage error
768
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
769
+ 4 timeout (--timeout passed)
770
+
771
+ Example:
772
+ mostra daemon uninstall
773
+ ```
774
+
775
+ ## mostra host
776
+
777
+ ```text
778
+ Speak the host protocol on stdin and stdout, for a host that spawns Mostra; it sends no telemetry.
779
+
780
+ Usage:
781
+ mostra host [flags]
782
+
783
+ Flags:
784
+ --bind <address> Serve viewers on this address instead of 127.0.0.1.
785
+ --url-host <name> The host name links use; a wildcard --bind needs it.
786
+
787
+ Global flags:
788
+ --json Print one JSON envelope on stdout (NDJSON for streams).
789
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
790
+ --cwd <dir> Resolve relative paths from this directory.
791
+ --help Show this command's help; with --json, its definition.
792
+
793
+ Output: the host protocol (INTERFACES §6) (mostra docs cli)
794
+
795
+ Exit codes:
796
+ 0 success
797
+ 2 usage error
798
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
799
+
800
+ Example:
801
+ mostra host --home ~/.my-host/mostra
802
+ ```
803
+
804
+ ## mostra docs
805
+
806
+ ```text
807
+ Print Mostra's reference: the CLI, telemetry, and every diagnostic code's page.
808
+
809
+ Usage:
810
+ mostra docs [<topic>]
811
+
812
+ Arguments:
813
+ <topic> A topic or a diagnostic code. Default: the index.
814
+
815
+ Global flags:
816
+ --json Print one JSON envelope on stdout (NDJSON for streams).
817
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
818
+ --cwd <dir> Resolve relative paths from this directory.
819
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
820
+ --help Show this command's help; with --json, its definition.
821
+
822
+ Output: DocsPage (mostra docs cli)
823
+
824
+ Exit codes:
825
+ 0 success
826
+ 2 usage error
827
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
828
+ 4 timeout (--timeout passed)
829
+
830
+ Example:
831
+ mostra docs MOSTRA_DEP_MISSING
832
+ ```
833
+
834
+ ## mostra doctor
835
+
836
+ ```text
837
+ Check the platform, the runtime, the home, its daemon and ledger, and the login service.
838
+
839
+ Usage:
840
+ mostra doctor [flags]
841
+
842
+ Flags:
843
+ --deep Also hash every version against its recorded output digest.
844
+
845
+ Global flags:
846
+ --json Print one JSON envelope on stdout (NDJSON for streams).
847
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
848
+ --cwd <dir> Resolve relative paths from this directory.
849
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
850
+ --help Show this command's help; with --json, its definition.
851
+
852
+ Output: DoctorResult (mostra docs cli)
853
+
854
+ Exit codes:
855
+ 0 success
856
+ 1 artifact failure (verify failed, publish refused, the artifact's state refused the request)
857
+ 2 usage error
858
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
859
+ 4 timeout (--timeout passed)
860
+
861
+ Example:
862
+ mostra doctor
863
+ ```
864
+
865
+ ## mostra gc
866
+
867
+ ```text
868
+ Remove what nothing references: unreferenced versions' files, unused packages and caches.
869
+
870
+ Usage:
871
+ mostra gc [flags]
872
+
873
+ Flags:
874
+ --dry-run List what a run would remove, and remove nothing.
875
+ --compact-events Also replace events before --before with one summary per artifact.
876
+ --before <cursor> The cursor --compact-events compacts before.
877
+
878
+ Global flags:
879
+ --json Print one JSON envelope on stdout (NDJSON for streams).
880
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
881
+ --cwd <dir> Resolve relative paths from this directory.
882
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
883
+ --help Show this command's help; with --json, its definition.
884
+
885
+ Output: GcRunResult (mostra docs cli)
886
+
887
+ Exit codes:
888
+ 0 success
889
+ 1 artifact failure (verify failed, publish refused, the artifact's state refused the request)
890
+ 2 usage error
891
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
892
+ 4 timeout (--timeout passed)
893
+
894
+ Example:
895
+ mostra gc --dry-run
896
+ ```
897
+
898
+ ## mostra telemetry status
899
+
900
+ ```text
901
+ Whether the CLI sends anonymous usage data, and why.
902
+
903
+ Usage:
904
+ mostra telemetry status
905
+
906
+ Global flags:
907
+ --json Print one JSON envelope on stdout (NDJSON for streams).
908
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
909
+ --cwd <dir> Resolve relative paths from this directory.
910
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
911
+ --help Show this command's help; with --json, its definition.
912
+
913
+ Output: TelemetryStatus (mostra docs telemetry)
914
+
915
+ Exit codes:
916
+ 0 success
917
+ 2 usage error
918
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
919
+ 4 timeout (--timeout passed)
920
+
921
+ Example:
922
+ mostra telemetry status
923
+ ```
924
+
925
+ ## mostra telemetry on
926
+
927
+ ```text
928
+ Send anonymous usage data from this CLI; the notice says what it contains.
929
+
930
+ Usage:
931
+ mostra telemetry on
932
+
933
+ Global flags:
934
+ --json Print one JSON envelope on stdout (NDJSON for streams).
935
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
936
+ --cwd <dir> Resolve relative paths from this directory.
937
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
938
+ --help Show this command's help; with --json, its definition.
939
+
940
+ Output: TelemetryStatus (mostra docs telemetry)
941
+
942
+ Exit codes:
943
+ 0 success
944
+ 2 usage error
945
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
946
+ 4 timeout (--timeout passed)
947
+
948
+ Example:
949
+ mostra telemetry on
950
+ ```
951
+
952
+ ## mostra telemetry off
953
+
954
+ ```text
955
+ Stop sending usage data, and delete the install ID and any unsent events.
956
+
957
+ Usage:
958
+ mostra telemetry off
959
+
960
+ Global flags:
961
+ --json Print one JSON envelope on stdout (NDJSON for streams).
962
+ --home <dir> Use this Mostra home instead of MOSTRA_HOME or the default.
963
+ --cwd <dir> Resolve relative paths from this directory.
964
+ --timeout <d> Give up on the instance after this long (exit 4), such as 30s or 5m.
965
+ --help Show this command's help; with --json, its definition.
966
+
967
+ Output: TelemetryStatus (mostra docs telemetry)
968
+
969
+ Exit codes:
970
+ 0 success
971
+ 2 usage error
972
+ 3 environment error (no runtime, browser or socket; the home; an unsupported platform)
973
+ 4 timeout (--timeout passed)
974
+
975
+ Example:
976
+ mostra telemetry off
977
+ ```