@dbx-tools/cli 0.9.54 → 0.9.60

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 (69) hide show
  1. package/README.md +548 -58
  2. package/bin/dbx-graphiti.ts +5 -0
  3. package/bin/dbx-lakebase-proxy.ts +4 -0
  4. package/bin/dbx-model-gateway.ts +5 -0
  5. package/index.ts +35 -1
  6. package/lib/bin/dbx-graphiti.d.ts +2 -0
  7. package/lib/bin/dbx-graphiti.js +4 -0
  8. package/lib/bin/dbx-lakebase-proxy.d.ts +2 -0
  9. package/lib/bin/dbx-lakebase-proxy.js +4 -0
  10. package/lib/bin/dbx-model-gateway.d.ts +2 -0
  11. package/lib/bin/dbx-model-gateway.js +4 -0
  12. package/lib/index.d.ts +35 -1
  13. package/lib/index.js +26 -2
  14. package/lib/src/appkit/cli.d.ts +24 -0
  15. package/lib/src/appkit/cli.js +54 -0
  16. package/lib/src/appkit/env-export.d.ts +40 -0
  17. package/lib/src/appkit/env-export.js +99 -0
  18. package/lib/src/auth/cli.d.ts +20 -0
  19. package/lib/src/auth/cli.js +118 -0
  20. package/lib/src/auth/options.d.ts +41 -0
  21. package/lib/src/auth/options.js +64 -0
  22. package/lib/src/cli.d.ts +2 -0
  23. package/lib/src/cli.js +13 -7
  24. package/lib/src/graphiti/cli.d.ts +18 -0
  25. package/lib/src/graphiti/cli.js +43 -0
  26. package/lib/src/graphiti/options.d.ts +10 -0
  27. package/lib/src/graphiti/options.js +10 -0
  28. package/lib/src/lakebase-proxy/cancellation.d.ts +22 -0
  29. package/lib/src/lakebase-proxy/cancellation.js +100 -0
  30. package/lib/src/lakebase-proxy/cli.d.ts +13 -0
  31. package/lib/src/lakebase-proxy/cli.js +54 -0
  32. package/lib/src/lakebase-proxy/options.d.ts +23 -0
  33. package/lib/src/lakebase-proxy/options.js +41 -0
  34. package/lib/src/lakebase-proxy/protocol.d.ts +37 -0
  35. package/lib/src/lakebase-proxy/protocol.js +124 -0
  36. package/lib/src/lakebase-proxy/proxy.d.ts +22 -0
  37. package/lib/src/lakebase-proxy/proxy.js +200 -0
  38. package/lib/src/model-gateway/cli.d.ts +19 -0
  39. package/lib/src/model-gateway/cli.js +63 -0
  40. package/lib/src/model-gateway/server.d.ts +13 -0
  41. package/lib/src/model-gateway/server.js +53 -0
  42. package/lib/src/tunnel/app.d.ts +20 -0
  43. package/lib/src/tunnel/app.js +52 -0
  44. package/lib/src/tunnel/cli.d.ts +27 -0
  45. package/lib/src/tunnel/cli.js +190 -0
  46. package/lib/src/tunnel/options.d.ts +72 -0
  47. package/lib/src/tunnel/options.js +138 -0
  48. package/lib/src/tunnel/proxy.d.ts +51 -0
  49. package/lib/src/tunnel/proxy.js +143 -0
  50. package/lib/tsconfig.tsbuildinfo +1 -1
  51. package/package.json +124 -9
  52. package/src/appkit/cli.ts +72 -0
  53. package/src/appkit/env-export.ts +124 -0
  54. package/src/auth/cli.ts +165 -0
  55. package/src/auth/options.ts +79 -0
  56. package/src/cli.ts +22 -6
  57. package/src/graphiti/cli.ts +75 -0
  58. package/src/graphiti/options.ts +20 -0
  59. package/src/lakebase-proxy/cancellation.ts +116 -0
  60. package/src/lakebase-proxy/cli.ts +80 -0
  61. package/src/lakebase-proxy/options.ts +56 -0
  62. package/src/lakebase-proxy/protocol.ts +170 -0
  63. package/src/lakebase-proxy/proxy.ts +256 -0
  64. package/src/model-gateway/cli.ts +89 -0
  65. package/src/model-gateway/server.ts +62 -0
  66. package/src/tunnel/app.ts +58 -0
  67. package/src/tunnel/cli.ts +218 -0
  68. package/src/tunnel/options.ts +169 -0
  69. package/src/tunnel/proxy.ts +194 -0
package/README.md CHANGED
@@ -21,9 +21,8 @@ workspace commands; the examples use `MY-PROFILE` as a placeholder.
21
21
  dbx model-gateway --profile MY-PROFILE --port 4000
22
22
  ```
23
23
 
24
- Point an OpenAI-compatible client at `http://127.0.0.1:4000/v1`. See
25
- [model gateway](../model-gateway#command-reference) for all options and desktop
26
- service commands.
24
+ Point an OpenAI-compatible client at `http://127.0.0.1:4000/v1`. The generated
25
+ command reference includes all gateway and desktop-service options.
27
26
 
28
27
  ## Connect To Lakebase
29
28
 
@@ -31,9 +30,8 @@ service commands.
31
30
  dbx lakebase-proxy --profile MY-PROFILE --port 5432
32
31
  ```
33
32
 
34
- Connect your PostgreSQL client to the loopback listener. See
35
- [Lakebase proxy](../lakebase-proxy#command-reference) for target selection,
36
- connection URLs, and service commands.
33
+ Connect your PostgreSQL client to the loopback listener. The command reference
34
+ includes target selection, connection URLs, and service commands.
37
35
 
38
36
  ## Add Memory Or Share An App
39
37
 
@@ -42,10 +40,8 @@ dbx graphiti --profile MY-PROFILE
42
40
  dbx tunnel --allow example.com -- bun src/server.ts
43
41
  ```
44
42
 
45
- [Graphiti](../graphiti#command-reference) provides graph memory for agents.
46
- [Tunnel](../tunnel#command-reference) adds a public URL with passwordless access
47
- to an existing process. Each guide includes setup requirements and a generated
48
- command reference.
43
+ `graphiti` provides graph memory for agents. `tunnel` adds a public URL with
44
+ passwordless access to an existing process.
49
45
 
50
46
  ## Export AppKit Configuration
51
47
 
@@ -53,9 +49,8 @@ command reference.
53
49
  eval "$(dbx appkit env --quiet)"
54
50
  ```
55
51
 
56
- Use the resolved AppKit environment before starting another process. See
57
- [AppKit environment](../appkit-env#command-reference) for JSON and Windows
58
- output, and [authentication](../auth#command-reference) for token commands.
52
+ Use the resolved AppKit environment before starting another process. The AppKit
53
+ and authentication command groups below include JSON, Windows, and token options.
59
54
 
60
55
  ## Bootstrap A Workspace
61
56
 
@@ -76,8 +71,9 @@ bun run barrels
76
71
  ```
77
72
 
78
73
  See [`@dbx-tools/projen`](../../../../projen) for workspace configuration and
79
- generation. The command reference below lists the top-level groups; each linked
80
- package guide documents that group's complete options and subcommands.
74
+ generation. Command implementations are available from `@dbx-tools/cli/appkit`,
75
+ `/auth`, `/graphiti`, `/lakebase-proxy`, `/model-gateway`, and `/tunnel` when a
76
+ Node caller needs to embed one parser.
81
77
 
82
78
  <!-- cli-reference:start -->
83
79
 
@@ -93,15 +89,15 @@ dbx [command]
93
89
 
94
90
  #### Commands
95
91
 
96
- | Command | Description |
97
- | -------------------------- | ------------------------------------------------------------------ |
98
- | `dev [projenArgs...]` | Bootstrap or repair a dbx-tools workspace, then forward to projen |
99
- | `appkit [args...]` | AppKit helpers (env: print the environment an AppKit app resolves) |
100
- | `auth [args...]` | Authenticate to Databricks and manage OAuth tokens |
101
- | `tunnel [args...]` | Run a public portr tunnel with an email-OTP gate |
102
- | `lakebase-proxy [args...]` | Run the Node Databricks Lakebase PostgreSQL proxy |
103
- | `model-gateway [args...]` | Run the foreground AppKit Databricks model gateway |
104
- | `graphiti [args...]` | Run Graphiti or manage its current-user desktop service |
92
+ | Command | Description |
93
+ | ------------------------------- | ----------------------------------------------------------------------- |
94
+ | `dev [projenArgs...]` | Bootstrap or repair a dbx-tools workspace, then forward to projen |
95
+ | `appkit` | AppKit helpers: resolve the environment an AppKit app would start with. |
96
+ | `auth [options]` | Authenticate to Databricks with user or machine OAuth |
97
+ | `tunnel [options] [command...]` | Front a command with a public tunnel and passwordless auth |
98
+ | `lakebase-proxy [options]` | Run a loopback PostgreSQL proxy for Databricks Lakebase |
99
+ | `model-gateway [options]` | Run or manage the AppKit Databricks model gateway |
100
+ | `graphiti [options]` | Run Graphiti or manage its current-user desktop service |
105
101
 
106
102
  ### `dbx dev`
107
103
 
@@ -119,86 +115,580 @@ dbx dev [projenArgs...]
119
115
 
120
116
  ### `dbx appkit`
121
117
 
122
- AppKit helpers (env: print the environment an AppKit app resolves)
118
+ AppKit helpers: resolve the environment an AppKit app would start with.
123
119
 
124
120
  ```sh
125
- dbx appkit [args...]
121
+ appkit [command]
126
122
  ```
127
123
 
128
- #### Arguments
124
+ #### Commands
125
+
126
+ | Command | Description |
127
+ | --------------- | ------------------------------------------------------ |
128
+ | `env [options]` | Run AppKit auto-config and print new/changed env vars. |
129
+
130
+ ### `dbx appkit env`
129
131
 
130
- | Argument | Description |
131
- | -------- | ----------------------------- |
132
- | `args` | arguments forwarded to appkit |
132
+ Run AppKit auto-config and print new/changed env vars.
133
+
134
+ ```sh
135
+ appkit env [options]
136
+ ```
137
+
138
+ #### Options
139
+
140
+ | Option | Description |
141
+ | ------------------ | --------------------------------------------------------------------------------------------------------------- |
142
+ | `--format <value>` | Output format: export, windows, or json. (choices: "export", "windows", "json", default: "export", env: FORMAT) |
143
+ | `--quiet` | Suppress auto-config log output. (default: false, env: QUIET) |
144
+ | `--no-quiet` | Disable suppress auto-config log output. |
133
145
 
134
146
  ### `dbx auth`
135
147
 
136
- Authenticate to Databricks and manage OAuth tokens
148
+ Authenticate to Databricks with user or machine OAuth
137
149
 
138
150
  ```sh
139
- dbx auth [args...]
151
+ auth [options] [command]
140
152
  ```
141
153
 
142
- #### Arguments
154
+ #### Options
155
+
156
+ | Option | Description |
157
+ | ----------------------------- | -------------------------------------------------------------------------------------------------------------- |
158
+ | `--profile <value>` | Databricks CLI profile. (env: DATABRICKS_CONFIG_PROFILE) |
159
+ | `--scopes <value>` | OAuth scopes. (default: [], env: SCOPES) |
160
+ | `--target <value>` | OAuth target. (choices: "workspace", "account", "unified", env: TARGET) |
161
+ | `--lock-timeout-ms <value>` | Credential lock timeout in milliseconds. (default: 0, env: LOCK_TIMEOUT_MS) |
162
+ | `--login-timeout-ms <value>` | Browser login timeout in milliseconds. (default: 900000, env: LOGIN_TIMEOUT_MS) |
163
+ | `--refresh-buffer-ms <value>` | Token refresh buffer in milliseconds. (default: 300000, env: REFRESH_BUFFER_MS) |
164
+ | `--prefer-user-to-machine` | Prefer a matching user profile over selected machine credentials. (default: true, env: PREFER_USER_TO_MACHINE) |
165
+ | `--no-prefer-user-to-machine` | Disable prefer a matching user profile over selected machine credentials. |
166
+
167
+ #### Commands
168
+
169
+ | Command | Description |
170
+ | ----------------- | ------------------------------------------------------ |
171
+ | `login` | Force browser login and return an access token |
172
+ | `token [options]` | Return a valid access token, logging in when needed |
173
+ | `profile` | Print the configured or automatically detected profile |
174
+ | `logout` | Delete the stored credential for the selected profile |
175
+ | `status` | Show the resolved authentication client configuration |
176
+
177
+ ### `dbx auth login`
178
+
179
+ Force browser login and return an access token
180
+
181
+ ```sh
182
+ auth login
183
+ ```
184
+
185
+ ### `dbx auth token`
186
+
187
+ Return a valid access token, logging in when needed
188
+
189
+ ```sh
190
+ auth token [options]
191
+ ```
192
+
193
+ #### Options
143
194
 
144
- | Argument | Description |
145
- | -------- | --------------------------- |
146
- | `args` | arguments forwarded to auth |
195
+ | Option | Description |
196
+ | -------------------- | --------------------------------------------------------------------------- |
197
+ | `--force-refresh` | Refresh the token before returning it. (default: false, env: FORCE_REFRESH) |
198
+ | `--no-force-refresh` | Disable refresh the token before returning it. |
199
+ | `--login` | Log in when credentials are missing or invalid. (default: true, env: LOGIN) |
200
+ | `--no-login` | Disable log in when credentials are missing or invalid. |
201
+
202
+ ### `dbx auth profile`
203
+
204
+ Print the configured or automatically detected profile
205
+
206
+ ```sh
207
+ auth profile
208
+ ```
209
+
210
+ ### `dbx auth logout`
211
+
212
+ Delete the stored credential for the selected profile
213
+
214
+ ```sh
215
+ auth logout
216
+ ```
217
+
218
+ ### `dbx auth status`
219
+
220
+ Show the resolved authentication client configuration
221
+
222
+ ```sh
223
+ auth status
224
+ ```
147
225
 
148
226
  ### `dbx tunnel`
149
227
 
150
- Run a public portr tunnel with an email-OTP gate
228
+ Front a command with a public tunnel and passwordless auth
151
229
 
152
230
  ```sh
153
- dbx tunnel [args...]
231
+ tunnel [options] [command] [command...]
154
232
  ```
155
233
 
156
234
  #### Arguments
157
235
 
158
- | Argument | Description |
159
- | -------- | ----------------------------- |
160
- | `args` | arguments forwarded to tunnel |
236
+ | Argument | Description |
237
+ | --------- | ------------------------------- |
238
+ | `command` | the command to wrap, after `--` |
239
+
240
+ #### Options
241
+
242
+ | Option | Description |
243
+ | ------------------------------- | ----------------------------------------------------------------------------------------------- |
244
+ | `--transport <value>` | Public tunnel transport. (choices: "portr", "frp", "both", env: TUNNEL_TRANSPORT) |
245
+ | `--public-domain <value>` | Public tunnel domain. (env: TUNNEL_PUBLIC_DOMAIN) |
246
+ | `--subdomain <value>` | Portr subdomain. (env: SUBDOMAIN) |
247
+ | `--port <value>` | Public listener port. (env: DATABRICKS_APP_PORT) |
248
+ | `--app-port <value>` | Private wrapped application port. (env: TUNNEL_APP_PORT) |
249
+ | `--allow <value>` | Email allow-list patterns. (env: TUNNEL_AUTH_ALLOW) |
250
+ | `--subject <value>` | Verification email subject. (env: TUNNEL_AUTH_SUBJECT) |
251
+ | `--brand-name <value>` | Verification email brand name. (env: TUNNEL_AUTH_BRAND_NAME) |
252
+ | `--message <value>` | Verification email message. (env: TUNNEL_AUTH_MESSAGE) |
253
+ | `--session-ttl-seconds <value>` | Session lifetime in seconds. (env: TUNNEL_AUTH_SESSION_TTL) |
254
+ | `--code-ttl-seconds <value>` | One-time-code lifetime in seconds. (env: TUNNEL_AUTH_CODE_TTL) |
255
+ | `--session-cutoff <value>` | Invalidate sessions issued before this value. (env: TUNNEL_AUTH_SESSION_CUTOFF) |
256
+ | `--storage <value>` | Authentication database mode. (choices: "auto", "lakebase", "sqlite", env: TUNNEL_AUTH_STORAGE) |
257
+ | `--sqlite-path <value>` | Local authentication SQLite file. (env: TUNNEL_AUTH_SQLITE_PATH) |
258
+ | `--forward-headers <value>` | Additional forwarded request header patterns. (env: TUNNEL_FORWARD_HEADERS) |
259
+ | `--gate-paths <value>` | Additional path prefixes requiring authentication. (env: TUNNEL_GATE_PATHS) |
260
+ | `--bind-hosts <value>` | Interface IPs the gate listens on. (env: BIND_HOSTS) |
261
+ | `--insecure` | Run without an authentication gate. (env: TUNNEL_INSECURE) |
262
+ | `--no-insecure` | Disable run without an authentication gate. |
263
+ | `--frp-server <value>` | FRP control host. (env: FRP_SERVER) |
264
+ | `--frp-public-domain <value>` | FRP public HTTP domain. (env: TUNNEL_FRP_PUBLIC_DOMAIN) |
265
+ | `--frp-server-port <value>` | FRP control port. (env: FRP_SERVER_PORT) |
266
+ | `--frp-protocol <value>` | FRP transport protocol. (env: FRP_PROTOCOL) |
267
+ | `--frp-token <value>` | FRP authentication token. (env: FRP_TOKEN) |
268
+ | `--frp-proxy-name <value>` | FRP proxy registration name. (env: FRP_PROXY_NAME) |
161
269
 
162
- ### `dbx lakebase-proxy`
270
+ #### Commands
271
+
272
+ | Command | Description |
273
+ | ---------------------------- | ---------------------------------------------- |
274
+ | `run [options] <command...>` | Wrap a command (the default action) |
275
+ | `status [options]` | Resolve the configuration and print it |
276
+ | `install [transport]` | Install public tunnel client binaries and exit |
277
+
278
+ ### `dbx tunnel run`
163
279
 
164
- Run the Node Databricks Lakebase PostgreSQL proxy
280
+ Wrap a command (the default action)
165
281
 
166
282
  ```sh
167
- dbx lakebase-proxy [args...]
283
+ tunnel run [options] <command...>
168
284
  ```
169
285
 
170
286
  #### Arguments
171
287
 
172
- | Argument | Description |
173
- | -------- | ------------------------------------- |
174
- | `args` | arguments forwarded to lakebase-proxy |
288
+ | Argument | Description |
289
+ | --------- | ------------------------------- |
290
+ | `command` | the command to wrap, after `--` |
291
+
292
+ #### Options
293
+
294
+ | Option | Description |
295
+ | ------------------------------- | ----------------------------------------------------------------------------------------------- |
296
+ | `--transport <value>` | Public tunnel transport. (choices: "portr", "frp", "both", env: TUNNEL_TRANSPORT) |
297
+ | `--public-domain <value>` | Public tunnel domain. (env: TUNNEL_PUBLIC_DOMAIN) |
298
+ | `--subdomain <value>` | Portr subdomain. (env: SUBDOMAIN) |
299
+ | `--port <value>` | Public listener port. (env: DATABRICKS_APP_PORT) |
300
+ | `--app-port <value>` | Private wrapped application port. (env: TUNNEL_APP_PORT) |
301
+ | `--allow <value>` | Email allow-list patterns. (env: TUNNEL_AUTH_ALLOW) |
302
+ | `--subject <value>` | Verification email subject. (env: TUNNEL_AUTH_SUBJECT) |
303
+ | `--brand-name <value>` | Verification email brand name. (env: TUNNEL_AUTH_BRAND_NAME) |
304
+ | `--message <value>` | Verification email message. (env: TUNNEL_AUTH_MESSAGE) |
305
+ | `--session-ttl-seconds <value>` | Session lifetime in seconds. (env: TUNNEL_AUTH_SESSION_TTL) |
306
+ | `--code-ttl-seconds <value>` | One-time-code lifetime in seconds. (env: TUNNEL_AUTH_CODE_TTL) |
307
+ | `--session-cutoff <value>` | Invalidate sessions issued before this value. (env: TUNNEL_AUTH_SESSION_CUTOFF) |
308
+ | `--storage <value>` | Authentication database mode. (choices: "auto", "lakebase", "sqlite", env: TUNNEL_AUTH_STORAGE) |
309
+ | `--sqlite-path <value>` | Local authentication SQLite file. (env: TUNNEL_AUTH_SQLITE_PATH) |
310
+ | `--forward-headers <value>` | Additional forwarded request header patterns. (env: TUNNEL_FORWARD_HEADERS) |
311
+ | `--gate-paths <value>` | Additional path prefixes requiring authentication. (env: TUNNEL_GATE_PATHS) |
312
+ | `--bind-hosts <value>` | Interface IPs the gate listens on. (env: BIND_HOSTS) |
313
+ | `--insecure` | Run without an authentication gate. (env: TUNNEL_INSECURE) |
314
+ | `--no-insecure` | Disable run without an authentication gate. |
315
+ | `--frp-server <value>` | FRP control host. (env: FRP_SERVER) |
316
+ | `--frp-public-domain <value>` | FRP public HTTP domain. (env: TUNNEL_FRP_PUBLIC_DOMAIN) |
317
+ | `--frp-server-port <value>` | FRP control port. (env: FRP_SERVER_PORT) |
318
+ | `--frp-protocol <value>` | FRP transport protocol. (env: FRP_PROTOCOL) |
319
+ | `--frp-token <value>` | FRP authentication token. (env: FRP_TOKEN) |
320
+ | `--frp-proxy-name <value>` | FRP proxy registration name. (env: FRP_PROXY_NAME) |
321
+
322
+ ### `dbx tunnel status`
323
+
324
+ Resolve the configuration and print it
175
325
 
176
- ### `dbx model-gateway`
326
+ ```sh
327
+ tunnel status [options]
328
+ ```
177
329
 
178
- Run the foreground AppKit Databricks model gateway
330
+ #### Options
331
+
332
+ | Option | Description |
333
+ | ------------------------------- | ----------------------------------------------------------------------------------------------- |
334
+ | `--transport <value>` | Public tunnel transport. (choices: "portr", "frp", "both", env: TUNNEL_TRANSPORT) |
335
+ | `--public-domain <value>` | Public tunnel domain. (env: TUNNEL_PUBLIC_DOMAIN) |
336
+ | `--subdomain <value>` | Portr subdomain. (env: SUBDOMAIN) |
337
+ | `--port <value>` | Public listener port. (env: DATABRICKS_APP_PORT) |
338
+ | `--app-port <value>` | Private wrapped application port. (env: TUNNEL_APP_PORT) |
339
+ | `--allow <value>` | Email allow-list patterns. (env: TUNNEL_AUTH_ALLOW) |
340
+ | `--subject <value>` | Verification email subject. (env: TUNNEL_AUTH_SUBJECT) |
341
+ | `--brand-name <value>` | Verification email brand name. (env: TUNNEL_AUTH_BRAND_NAME) |
342
+ | `--message <value>` | Verification email message. (env: TUNNEL_AUTH_MESSAGE) |
343
+ | `--session-ttl-seconds <value>` | Session lifetime in seconds. (env: TUNNEL_AUTH_SESSION_TTL) |
344
+ | `--code-ttl-seconds <value>` | One-time-code lifetime in seconds. (env: TUNNEL_AUTH_CODE_TTL) |
345
+ | `--session-cutoff <value>` | Invalidate sessions issued before this value. (env: TUNNEL_AUTH_SESSION_CUTOFF) |
346
+ | `--storage <value>` | Authentication database mode. (choices: "auto", "lakebase", "sqlite", env: TUNNEL_AUTH_STORAGE) |
347
+ | `--sqlite-path <value>` | Local authentication SQLite file. (env: TUNNEL_AUTH_SQLITE_PATH) |
348
+ | `--forward-headers <value>` | Additional forwarded request header patterns. (env: TUNNEL_FORWARD_HEADERS) |
349
+ | `--gate-paths <value>` | Additional path prefixes requiring authentication. (env: TUNNEL_GATE_PATHS) |
350
+ | `--bind-hosts <value>` | Interface IPs the gate listens on. (env: BIND_HOSTS) |
351
+ | `--insecure` | Run without an authentication gate. (env: TUNNEL_INSECURE) |
352
+ | `--no-insecure` | Disable run without an authentication gate. |
353
+ | `--frp-server <value>` | FRP control host. (env: FRP_SERVER) |
354
+ | `--frp-public-domain <value>` | FRP public HTTP domain. (env: TUNNEL_FRP_PUBLIC_DOMAIN) |
355
+ | `--frp-server-port <value>` | FRP control port. (env: FRP_SERVER_PORT) |
356
+ | `--frp-protocol <value>` | FRP transport protocol. (env: FRP_PROTOCOL) |
357
+ | `--frp-token <value>` | FRP authentication token. (env: FRP_TOKEN) |
358
+ | `--frp-proxy-name <value>` | FRP proxy registration name. (env: FRP_PROXY_NAME) |
359
+
360
+ ### `dbx tunnel install`
361
+
362
+ Install public tunnel client binaries and exit
179
363
 
180
364
  ```sh
181
- dbx model-gateway [args...]
365
+ tunnel install [transport]
182
366
  ```
183
367
 
184
368
  #### Arguments
185
369
 
186
- | Argument | Description |
187
- | -------- | ------------------------------------ |
188
- | `args` | arguments forwarded to model-gateway |
370
+ | Argument | Description |
371
+ | ----------- | -------------------------------------- |
372
+ | `transport` | portr, frp, or both (default: "portr") |
373
+
374
+ ### `dbx lakebase-proxy`
375
+
376
+ Run a loopback PostgreSQL proxy for Databricks Lakebase
377
+
378
+ ```sh
379
+ lakebase-proxy [options] [command]
380
+ ```
381
+
382
+ #### Options
383
+
384
+ | Option | Description |
385
+ | ----------------------------------- | ---------------------------------------------------------------------------- |
386
+ | `-V, --version` | output the version number |
387
+ | `--postgres-role <value>` | PostgreSQL role assumed after authentication. (env: DBX_TOOLS_POSTGRES_ROLE) |
388
+ | `--listen <value>` | Loopback listener address. (default: tcp://localhost:5432, env: LISTEN) |
389
+ | `--startup-timeout-seconds <value>` | Startup timeout in seconds. (default: 30, env: STARTUP_TIMEOUT_SECONDS) |
390
+ | `--profile <value>` | Exact Databricks profile. (env: DATABRICKS_CONFIG_PROFILE) |
391
+
392
+ #### Commands
393
+
394
+ | Command | Description |
395
+ | --------------- | --------------------------------------------------- |
396
+ | `url [options]` | Format a local PostgreSQL URL for a Lakebase target |
397
+ | `service` | Install and manage the desktop service |
398
+
399
+ ### `dbx lakebase-proxy url`
400
+
401
+ Format a local PostgreSQL URL for a Lakebase target
402
+
403
+ ```sh
404
+ lakebase-proxy url [options]
405
+ ```
406
+
407
+ #### Options
408
+
409
+ | Option | Description |
410
+ | ------------------ | ----------------------------------------------------------------- |
411
+ | `--target <value>` | Lakebase project, resource path, host, or URL. (env: TARGET) |
412
+ | `--listen <value>` | Local proxy address. (default: tcp://localhost:5432, env: LISTEN) |
413
+
414
+ ### `dbx lakebase-proxy service`
415
+
416
+ Install and manage the desktop service
417
+
418
+ ```sh
419
+ lakebase-proxy service [command]
420
+ ```
421
+
422
+ #### Commands
423
+
424
+ | Command | Description |
425
+ | ------------------- | ----------------------------------------------------- |
426
+ | `install [options]` | Install the service for the current user and start it |
427
+ | `start` | Start the installed service |
428
+ | `stop` | Stop the running service |
429
+ | `restart` | Restart the installed service |
430
+ | `status` | Print service installation and process state as JSON |
431
+ | `uninstall` | Stop and remove the service for the current user |
432
+
433
+ ### `dbx lakebase-proxy service install`
434
+
435
+ Install the service for the current user and start it
436
+
437
+ ```sh
438
+ lakebase-proxy service install [options]
439
+ ```
440
+
441
+ #### Options
442
+
443
+ | Option | Description |
444
+ | ----------------------------------- | ---------------------------------------------------------------------------- |
445
+ | `--no-start` | Do not start the service after installation |
446
+ | `--postgres-role <value>` | PostgreSQL role assumed after authentication. (env: DBX_TOOLS_POSTGRES_ROLE) |
447
+ | `--listen <value>` | Loopback listener address. (default: tcp://localhost:5432, env: LISTEN) |
448
+ | `--startup-timeout-seconds <value>` | Startup timeout in seconds. (default: 30, env: STARTUP_TIMEOUT_SECONDS) |
449
+ | `--profile <value>` | Exact Databricks profile. (env: DATABRICKS_CONFIG_PROFILE) |
450
+
451
+ ### `dbx lakebase-proxy service start`
452
+
453
+ Start the installed service
454
+
455
+ ```sh
456
+ lakebase-proxy service start
457
+ ```
458
+
459
+ ### `dbx lakebase-proxy service stop`
460
+
461
+ Stop the running service
462
+
463
+ ```sh
464
+ lakebase-proxy service stop
465
+ ```
466
+
467
+ ### `dbx lakebase-proxy service restart`
468
+
469
+ Restart the installed service
470
+
471
+ ```sh
472
+ lakebase-proxy service restart
473
+ ```
474
+
475
+ ### `dbx lakebase-proxy service status`
476
+
477
+ Print service installation and process state as JSON
478
+
479
+ ```sh
480
+ lakebase-proxy service status
481
+ ```
482
+
483
+ ### `dbx lakebase-proxy service uninstall`
484
+
485
+ Stop and remove the service for the current user
486
+
487
+ ```sh
488
+ lakebase-proxy service uninstall
489
+ ```
490
+
491
+ ### `dbx model-gateway`
492
+
493
+ Run or manage the AppKit Databricks model gateway
494
+
495
+ ```sh
496
+ model-gateway [options] [command]
497
+ ```
498
+
499
+ #### Options
500
+
501
+ | Option | Description |
502
+ | ---------------------- | ------------------------------------------------------------------------------------------ |
503
+ | `-v, --version` | output the version number |
504
+ | `--listen <value>` | Loopback listener address. (default: tcp://localhost:4000, env: LISTEN) |
505
+ | `--profile <value>` | Databricks profile used for model discovery and requests. (env: DATABRICKS_CONFIG_PROFILE) |
506
+ | `--body-limit <value>` | Maximum JSON request body size. (default: "100mb", env: BODY_LIMIT) |
507
+ | `--runtime-info` | Print runtime implementation metadata. (default: false, env: RUNTIME_INFO) |
508
+ | `--no-runtime-info` | Disable print runtime implementation metadata. |
509
+
510
+ #### Commands
511
+
512
+ | Command | Description |
513
+ | --------- | -------------------------------------- |
514
+ | `service` | Install and manage the desktop service |
515
+
516
+ ### `dbx model-gateway service`
517
+
518
+ Install and manage the desktop service
519
+
520
+ ```sh
521
+ model-gateway service [command]
522
+ ```
523
+
524
+ #### Commands
525
+
526
+ | Command | Description |
527
+ | ------------------- | ----------------------------------------------------- |
528
+ | `install [options]` | Install the service for the current user and start it |
529
+ | `start` | Start the installed service |
530
+ | `stop` | Stop the running service |
531
+ | `restart` | Restart the installed service |
532
+ | `status` | Print service installation and process state as JSON |
533
+ | `uninstall` | Stop and remove the service for the current user |
534
+
535
+ ### `dbx model-gateway service install`
536
+
537
+ Install the service for the current user and start it
538
+
539
+ ```sh
540
+ model-gateway service install [options]
541
+ ```
542
+
543
+ #### Options
544
+
545
+ | Option | Description |
546
+ | ------------ | ------------------------------------------- |
547
+ | `--no-start` | Do not start the service after installation |
548
+
549
+ ### `dbx model-gateway service start`
550
+
551
+ Start the installed service
552
+
553
+ ```sh
554
+ model-gateway service start
555
+ ```
556
+
557
+ ### `dbx model-gateway service stop`
558
+
559
+ Stop the running service
560
+
561
+ ```sh
562
+ model-gateway service stop
563
+ ```
564
+
565
+ ### `dbx model-gateway service restart`
566
+
567
+ Restart the installed service
568
+
569
+ ```sh
570
+ model-gateway service restart
571
+ ```
572
+
573
+ ### `dbx model-gateway service status`
574
+
575
+ Print service installation and process state as JSON
576
+
577
+ ```sh
578
+ model-gateway service status
579
+ ```
580
+
581
+ ### `dbx model-gateway service uninstall`
582
+
583
+ Stop and remove the service for the current user
584
+
585
+ ```sh
586
+ model-gateway service uninstall
587
+ ```
189
588
 
190
589
  ### `dbx graphiti`
191
590
 
192
591
  Run Graphiti or manage its current-user desktop service
193
592
 
194
593
  ```sh
195
- dbx graphiti [args...]
594
+ graphiti [options] [command]
196
595
  ```
197
596
 
198
- #### Arguments
597
+ #### Options
598
+
599
+ | Option | Description |
600
+ | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
601
+ | `-v, --version` | output the version number |
602
+ | `--profile <value>` | Databricks profile used for model discovery and authentication. (env: DATABRICKS_CONFIG_PROFILE) |
603
+ | `--graphiti-home <value>` | Application-owned Graphiti runtime directory. (env: GRAPHITI_HOME) |
604
+ | `--model <value>` | Fuzzy chat-model name or endpoint identifier. (default: "databricks-gpt-5-nano", env: MODEL_NAME) |
605
+ | `--temperature <value>` | Sampling temperature forwarded to the Graphiti LLM client. (default: 1, env: TEMPERATURE) |
606
+ | `--embedder-model <value>` | Fuzzy embedding-model name or endpoint identifier. (default: "gte-large-en", env: EMBEDDER_MODEL) |
607
+ | `--embedder-dimensions <value>` | Embedding vector dimensions expected by Graphiti. (default: 1024, env: EMBEDDER_DIMENSIONS) |
608
+ | `--structured-output-mode <value>` | Structured-output mode forwarded to Graphiti's OpenAI provider. (default: "json_object", env: LLM_STRUCTURED_OUTPUT_MODE) |
609
+ | `--startup-timeout-ms <value>` | Maximum milliseconds allowed for the Graphiti runtime to become ready. (default: 180000, env: DBX_TOOLS_GRAPHITI_STARTUP_TIMEOUT_MS) |
610
+ | `--listen <value>` | Graphiti HTTP listener. (default: tcp://127.0.0.1:7272, env: GRAPHITI_LISTEN) |
611
+ | `--database-url <value>` | PostgreSQL URL or Lakebase target. Omit it to use persistent embedded PostgreSQL. (env: LAKEBASE_ENDPOINT) |
612
+ | `--database-schema <value>` | PostgreSQL schema used for Lakebase graph tables. (default: "dbx_tools_graphiti", env: GRAPHITI_DATABASE_SCHEMA) |
613
+ | `--postgres-role <value>` | PostgreSQL role assumed after authentication. (env: DBX_TOOLS_POSTGRES_ROLE) |
614
+
615
+ #### Commands
616
+
617
+ | Command | Description |
618
+ | --------- | -------------------------------------- |
619
+ | `service` | Install and manage the desktop service |
620
+
621
+ ### `dbx graphiti service`
622
+
623
+ Install and manage the desktop service
624
+
625
+ ```sh
626
+ graphiti service [command]
627
+ ```
628
+
629
+ #### Commands
630
+
631
+ | Command | Description |
632
+ | ------------------- | ----------------------------------------------------- |
633
+ | `install [options]` | Install the service for the current user and start it |
634
+ | `start` | Start the installed service |
635
+ | `stop` | Stop the running service |
636
+ | `restart` | Restart the installed service |
637
+ | `status` | Print service installation and process state as JSON |
638
+ | `uninstall` | Stop and remove the service for the current user |
639
+
640
+ ### `dbx graphiti service install`
641
+
642
+ Install the service for the current user and start it
643
+
644
+ ```sh
645
+ graphiti service install [options]
646
+ ```
647
+
648
+ #### Options
649
+
650
+ | Option | Description |
651
+ | ------------ | ------------------------------------------- |
652
+ | `--no-start` | Do not start the service after installation |
199
653
 
200
- | Argument | Description |
201
- | -------- | ------------------------------- |
202
- | `args` | arguments forwarded to graphiti |
654
+ ### `dbx graphiti service start`
655
+
656
+ Start the installed service
657
+
658
+ ```sh
659
+ graphiti service start
660
+ ```
661
+
662
+ ### `dbx graphiti service stop`
663
+
664
+ Stop the running service
665
+
666
+ ```sh
667
+ graphiti service stop
668
+ ```
669
+
670
+ ### `dbx graphiti service restart`
671
+
672
+ Restart the installed service
673
+
674
+ ```sh
675
+ graphiti service restart
676
+ ```
677
+
678
+ ### `dbx graphiti service status`
679
+
680
+ Print service installation and process state as JSON
681
+
682
+ ```sh
683
+ graphiti service status
684
+ ```
685
+
686
+ ### `dbx graphiti service uninstall`
687
+
688
+ Stop and remove the service for the current user
689
+
690
+ ```sh
691
+ graphiti service uninstall
692
+ ```
203
693
 
204
694
  <!-- cli-reference:end -->