@dxos/cli 0.3.9-main.c2ac8a5 → 0.3.9-main.c7cd0ec

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,20 +5,20 @@ DXOS command line interface.
5
5
  <!-- toc -->
6
6
  * [DX CLI](#dx-cli)
7
7
  * [Installation](#installation)
8
- * [Running an Agent](#running-an-agent)
8
+ * [Agent](#agent)
9
9
  * [Development](#development)
10
- * [Usage](#usage)
11
10
  <!-- tocstop -->
12
11
 
13
12
  # Installation
14
13
  ```terminal
15
14
  npm install -g @dxos/cli@main
16
15
  ```
17
- ---
18
- # Running an Agent
19
- Agent is a name for DXOS Client which is run by CLI in the background in the daemonized process.
20
16
 
21
- ## Start an agent as a system daemon via CLI command
17
+ # Agent
18
+ See main docs at [Agents](https://docs.dxos.org/guide/cli/agent.html)
19
+
20
+ ## Running an agent as a system service
21
+ ### Start an agent as a system daemon via CLI command
22
22
 
23
23
  Agent could be started as a system daemon via cli command:
24
24
 
@@ -38,26 +38,26 @@ dx agent stop --system
38
38
 
39
39
  Alternatively, manual setup could be used (see below).
40
40
 
41
- ## Install agent as a `launchd` service (macOS users) - manual setup
42
- 1. Install DXOS CLI with steps in [Installation](#Instalation) section.
41
+ ### Install agent as a `launchd` service (macOS users) - manual setup
42
+ 1. Install DXOS CLI with steps in [Installation](#Installation) section.
43
43
  2. Replace `??NODE_PATH??` in "./init-templates/org.dxos.agent.plist" with output of command `dirname $(which node)`
44
44
  3. Replace `??DX_PATH??` in "./init-templates/org.dxos.agent.plist" with output of command `which dx`
45
45
  4. Copy `./init-templates/org.dxos.agent.plist` -> `~/Library/LaunchAgents/org.dxos.agent.plist`
46
46
  5. Run `launchctl load -w ~/Library/LaunchAgents/org.dxos.agent.plist`
47
47
 
48
- ### Stop agent started by LaunchD
48
+ ### Stop agent started by `launchd`
49
49
  1. Run `launchctl unload -w ~/Library/LaunchAgents/org.dxos.agent.plist`
50
50
  2. Remove `~/Library/LaunchAgents/org.dxos.agent.plist`
51
51
 
52
52
  ## Install agent as a `systemd` service (Linux users) - manual setup
53
- 1. Install DXOS CLI with steps in [Installation](#Instalation) section.
53
+ 1. Install DXOS CLI with steps in [Installation](#Installation) section.
54
54
  1. Copy `./init-templates/dxos-agent.service` and `./init-templates/pre-dxos-agent.service` -> `~/.config/systemd/user/`
55
55
  1. Run `systemctl --user daemon-reload` to make the systemd daemon aware of the service
56
56
  1. Run `systemctl --user enable dxos-agent` to enable the service to start automatically
57
57
  1. Optionally, run `sudo loginctl enable-linger {USERNAME}` to enable the service to start without user login (replace `{USERNAME}` with the name of the user that will run the service)
58
58
  1. Run `systemctl --user start dxos-agent` to start the service
59
59
 
60
- ## Start agent with CLI (not very reliable)
60
+ ## Start agent with CLI
61
61
  Agent is automatically started by each command that requires Client (to avoid this behavior use `--no-agent` flag). You can use `--profile` flag (default value is `default`) to run agent in an isolated profile, and `--foreground` to run agent in attached process.
62
62
  ```terminal
63
63
  dx agent start
@@ -84,1287 +84,62 @@ see: [dx agent start](#dx-agent-start)
84
84
 
85
85
  # Development
86
86
 
87
- To build the CLI:
87
+ ### Multiple Profile configuration
88
+ Both the CLI and agents can be configured to use a given profile using either the `--profile` flag or `DX_PROFILE` environment variable.
89
+ The CLI will automatically connect to the agent using the given profile.
88
90
 
89
- ```bash
90
- nx run cli:build --watch=true
91
- ```
91
+ ### Local development
92
+ The CLI can be invoked out of the Git monorepo using the `bin/dev` command.
92
93
 
93
- Run the CLI from the local directory:
94
+ Source the following script to set an alias for `dx` that can be called from any directory:
94
95
 
95
96
  ```bash
96
- ./bin/run config --json
97
+ cd packages/devtools/cli
98
+ . ../../devtools/cli/scripts/dev.sh
97
99
  ```
98
100
 
99
- Or source the following script to set the `dx` alias from any directory in the repo.
101
+ Example:
100
102
 
101
103
  ```bash
102
- . $(git rev-parse --show-toplevel)/packages/devtools/cli/scripts/dev.sh
103
-
104
- dx config --json
104
+ DX_PROFILE=test dx agent start --ws=4567
105
105
  ```
106
106
 
107
- ## Reporting errors
107
+ NOTE: The `agent` will need to be recompiled after any changes.
108
108
 
109
- Run the following command to create a gist of the debug stats.
109
+ ### Building
110
+ To build the CLI:
110
111
 
111
112
  ```bash
112
- dx debug stats --json --no-agent | gh gist create
113
- ```
114
-
115
- # Usage
116
-
117
- <!-- usage -->
118
- ```sh-session
119
- $ npm install -g @dxos/cli
120
- $ dx COMMAND
121
- running command...
122
- $ dx (--version)
123
- @dxos/cli/0.3.9-main.c2ac8a5 linux-x64 node-v18.18.2
124
- $ dx --help [COMMAND]
125
- USAGE
126
- $ dx COMMAND
127
- ...
128
- ```
129
- <!-- usagestop -->
130
-
131
- ## Commands
132
-
133
- <!-- commands -->
134
- * [`dx agent list`](#dx-agent-list)
135
- * [`dx agent restart`](#dx-agent-restart)
136
- * [`dx agent start`](#dx-agent-start)
137
- * [`dx agent stop`](#dx-agent-stop)
138
- * [`dx app create NAME`](#dx-app-create-name)
139
- * [`dx app list`](#dx-app-list)
140
- * [`dx app open URL`](#dx-app-open-url)
141
- * [`dx app publish`](#dx-app-publish)
142
- * [`dx config`](#dx-config)
143
- * [`dx debug diagnostics`](#dx-debug-diagnostics)
144
- * [`dx debug generate [KEY]`](#dx-debug-generate-key)
145
- * [`dx debug metrics [COMMAND]`](#dx-debug-metrics-command)
146
- * [`dx debug status`](#dx-debug-status)
147
- * [`dx device info`](#dx-device-info)
148
- * [`dx device list`](#dx-device-list)
149
- * [`dx function dev`](#dx-function-dev)
150
- * [`dx function dev-server`](#dx-function-dev-server)
151
- * [`dx function exec NAME`](#dx-function-exec-name)
152
- * [`dx function list`](#dx-function-list)
153
- * [`dx function logs NAME`](#dx-function-logs-name)
154
- * [`dx halo create DISPLAYNAME`](#dx-halo-create-displayname)
155
- * [`dx halo credential add [CREDENTIAL]`](#dx-halo-credential-add-credential)
156
- * [`dx halo credential list`](#dx-halo-credential-list)
157
- * [`dx halo identity`](#dx-halo-identity)
158
- * [`dx halo join`](#dx-halo-join)
159
- * [`dx halo share`](#dx-halo-share)
160
- * [`dx help [COMMANDS]`](#dx-help-commands)
161
- * [`dx kube auth`](#dx-kube-auth)
162
- * [`dx kube deploy`](#dx-kube-deploy)
163
- * [`dx reset`](#dx-reset)
164
- * [`dx shell`](#dx-shell)
165
- * [`dx space close [KEY]`](#dx-space-close-key)
166
- * [`dx space create [NAME]`](#dx-space-create-name)
167
- * [`dx space epoch [KEY]`](#dx-space-epoch-key)
168
- * [`dx space info [KEY]`](#dx-space-info-key)
169
- * [`dx space join`](#dx-space-join)
170
- * [`dx space list`](#dx-space-list)
171
- * [`dx space members [KEY]`](#dx-space-members-key)
172
- * [`dx space open [KEY]`](#dx-space-open-key)
173
- * [`dx space query [KEY]`](#dx-space-query-key)
174
- * [`dx space share [KEY]`](#dx-space-share-key)
175
- * [`dx tunnel COMMAND`](#dx-tunnel-command)
176
- * [`dx tunnel list`](#dx-tunnel-list)
177
-
178
- ## `dx agent list`
179
-
180
- List agents.
181
-
182
- ```
183
- USAGE
184
- $ dx agent list [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
185
- <value>] [--no-wait] [--columns <value> | -x] [--sort <value>] [--filter <value>] [--output csv|json|yaml | |
186
- [--csv | --no-truncate]] [--no-header | ] [--live] [--system]
187
-
188
- FLAGS
189
- -v, --verbose Verbose output
190
- -x, --extended show extra columns
191
- --columns=<value> only show provided columns (comma-separated)
192
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
193
- --csv output is csv format [alias: --output=csv]
194
- --dry-run Dry run.
195
- --filter=<value> filter property by partial string matching, ex: name=foo
196
- --json Output as JSON.
197
- --live Live update.
198
- --no-agent Run command without using or starting agent.
199
- --no-header hide table header from output
200
- --no-truncate do not truncate output to fit screen
201
- --no-wait Do not wait for space to be ready.
202
- --output=<option> output in a more machine friendly format
203
- <options: csv|json|yaml>
204
- --profile=<value> [default: default] User profile.
205
- --sort=<value> property to sort by (prepend '-' for descending)
206
- --system Run as system daemon.
207
- --timeout=<value> [default: 60000] Timeout (ms).
208
-
209
- DESCRIPTION
210
- List agents.
211
- ```
212
-
213
- ## `dx agent restart`
214
-
215
- Restart agent daemon.
216
-
217
- ```
218
- USAGE
219
- $ dx agent restart [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
220
- <value>] [--no-wait] [--force] [--system]
221
-
222
- FLAGS
223
- -v, --verbose Verbose output
224
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
225
- --dry-run Dry run.
226
- --force Force restart.
227
- --json Output as JSON.
228
- --no-agent Run command without using or starting agent.
229
- --no-wait Do not wait for space to be ready.
230
- --profile=<value> [default: default] User profile.
231
- --system Run as system daemon.
232
- --timeout=<value> [default: 60000] Timeout (ms).
233
-
234
- DESCRIPTION
235
- Restart agent daemon.
236
- ```
237
-
238
- ## `dx agent start`
239
-
240
- Starts the agent.
241
-
242
- ```
243
- USAGE
244
- $ dx agent start [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
245
- <value>] [--no-wait] [-f] [--system] [--ws <value>] [--metrics]
246
-
247
- FLAGS
248
- -f, --foreground Run in foreground.
249
- -v, --verbose Verbose output
250
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
251
- --dry-run Dry run.
252
- --json Output as JSON.
253
- --metrics Start metrics recording.
254
- --no-agent Run command without using or starting agent.
255
- --no-wait Do not wait for space to be ready.
256
- --profile=<value> [default: default] User profile.
257
- --system Run as system daemon.
258
- --timeout=<value> [default: 60000] Timeout (ms).
259
- --ws=port Expose web socket port.
260
-
261
- DESCRIPTION
262
- Starts the agent.
263
-
264
- EXAMPLES
265
- Run with .
266
-
267
- $ dx agent start -f --ws=5001
268
- ```
269
-
270
- ## `dx agent stop`
271
-
272
- Stop agent daemon.
273
-
274
- ```
275
- USAGE
276
- $ dx agent stop [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
277
- <value>] [--no-wait] [--all] [--force] [--system]
278
-
279
- FLAGS
280
- -v, --verbose Verbose output
281
- --all Stop all agents.
282
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
283
- --dry-run Dry run.
284
- --force Force stop.
285
- --json Output as JSON.
286
- --no-agent Run command without using or starting agent.
287
- --no-wait Do not wait for space to be ready.
288
- --profile=<value> [default: default] User profile.
289
- --system Run as system daemon.
290
- --timeout=<value> [default: 60000] Timeout (ms).
291
-
292
- DESCRIPTION
293
- Stop agent daemon.
294
- ```
295
-
296
- ## `dx app create NAME`
297
-
298
- Manage applications.
299
-
300
- ```
301
- USAGE
302
- $ dx app create NAME [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
303
- <value>] [--no-wait] [--tag <value>] [-t hello|bare|tasks] [-i]
304
-
305
- ARGUMENTS
306
- NAME App name.
307
-
308
- FLAGS
309
- -i, --interactive Customize app template options via interactive prompt.
310
- -t, --template=<option> [default: hello] Template to use when creating the project.
311
- <options: hello|bare|tasks>
312
- -v, --verbose Verbose output
313
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
314
- --dry-run Dry run.
315
- --json Output as JSON.
316
- --no-agent Run command without using or starting agent.
317
- --no-wait Do not wait for space to be ready.
318
- --profile=<value> [default: default] User profile.
319
- --tag=<value> Git tag or branch of the DXOS repo to checkout.
320
- --timeout=<value> [default: 60000] Timeout (ms).
321
-
322
- DESCRIPTION
323
- Manage applications.
324
- ```
325
-
326
- ## `dx app list`
327
-
328
- List apps.
329
-
330
- ```
331
- USAGE
332
- $ dx app list [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
333
- <value>] [--no-wait]
334
-
335
- FLAGS
336
- -v, --verbose Verbose output
337
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
338
- --dry-run Dry run.
339
- --no-agent Run command without using or starting agent.
340
- --no-wait Do not wait for space to be ready.
341
- --profile=<value> [default: default] User profile.
342
- --timeout=<value> [default: 60000] Timeout (ms).
343
-
344
- GLOBAL FLAGS
345
- --json Format output as json.
346
-
347
- DESCRIPTION
348
- List apps.
349
- ```
350
-
351
- ## `dx app open URL`
352
-
353
- Opens app with provided url and process device invitation.
354
-
355
- ```
356
- USAGE
357
- $ dx app open URL [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
358
- <value>] [--no-wait] [--instances <value>] [--invite]
359
-
360
- ARGUMENTS
361
- URL App URL.
362
-
363
- FLAGS
364
- -v, --verbose Verbose output
365
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
366
- --dry-run Dry run.
367
- --instances=<value> [default: 1] Amount of test instances.
368
- --invite If `true` proceed device invitation for all instances.
369
- --no-agent Run command without using or starting agent.
370
- --no-wait Do not wait for space to be ready.
371
- --profile=<value> [default: default] User profile.
372
- --timeout=<value> [default: 60000] Timeout (ms).
373
-
374
- GLOBAL FLAGS
375
- --json Format output as json.
376
-
377
- DESCRIPTION
378
- Opens app with provided url and process device invitation.
379
- ```
380
-
381
- ## `dx app publish`
382
-
383
- Publish apps.
384
-
385
- ```
386
- USAGE
387
- $ dx app publish [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
388
- <value>] [--no-wait] [--configPath <value>] [--accessToken <value>] [--skipExisting] [--version <value>]
389
-
390
- FLAGS
391
- -v, --verbose Verbose output
392
- --accessToken=<value> Access token for publishing.
393
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
394
- --configPath=<value> Path to dx.yml
395
- --dry-run Dry run.
396
- --json Output as JSON.
397
- --no-agent Run command without using or starting agent.
398
- --no-wait Do not wait for space to be ready.
399
- --profile=<value> [default: default] User profile.
400
- --skipExisting Do not update content on KUBE if version already exists.
401
- --timeout=<value> [default: 60000] Timeout (ms).
402
- --version=<value> Version of modules to publish.
403
-
404
- DESCRIPTION
405
- Publish apps.
406
- ```
407
-
408
- ## `dx config`
409
-
410
- Show config file.
411
-
412
- ```
413
- USAGE
414
- $ dx config [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
415
- <value>] [--no-wait]
416
-
417
- FLAGS
418
- -v, --verbose Verbose output
419
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
420
- --dry-run Dry run.
421
- --no-agent Run command without using or starting agent.
422
- --no-wait Do not wait for space to be ready.
423
- --profile=<value> [default: default] User profile.
424
- --timeout=<value> [default: 60000] Timeout (ms).
425
-
426
- GLOBAL FLAGS
427
- --json Format output as json.
428
-
429
- DESCRIPTION
430
- Show config file.
431
- ```
432
-
433
- ## `dx debug diagnostics`
434
-
435
- Create diagnostics report.
436
-
437
- ```
438
- USAGE
439
- $ dx debug diagnostics [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
440
- <value>] [--no-wait] [--humanize] [--truncate]
441
-
442
- FLAGS
443
- -v, --verbose Verbose output
444
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
445
- --dry-run Dry run.
446
- --humanize Humanize keys.
447
- --json Output as JSON.
448
- --no-agent Run command without using or starting agent.
449
- --no-wait Do not wait for space to be ready.
450
- --profile=<value> [default: default] User profile.
451
- --timeout=<value> [default: 60000] Timeout (ms).
452
- --truncate Truncate keys.
453
-
454
- DESCRIPTION
455
- Create diagnostics report.
456
-
457
- EXAMPLES
458
- Inspect diagnostics.
459
-
460
- $ dx debug diagnostics --json --truncate | jq -r '.metrics'
461
-
462
- Upload diagnostics to GitHub.
463
-
464
- $ dx debug diagnostics --json --truncate | gh gist create --filename diagnostics.json
465
- ```
466
-
467
- ## `dx debug generate [KEY]`
468
-
469
- Generate test data.
470
-
471
- ```
472
- USAGE
473
- $ dx debug generate [KEY] [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
474
- <value>] [--no-wait] [--interval <value>] [--jitter <value>] [--objects <value>] [--mutations <value>] [--epoch
475
- <value>]
476
-
477
- ARGUMENTS
478
- KEY Space key head in hex.
479
-
480
- FLAGS
481
- -v, --verbose Verbose output
482
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
483
- --dry-run Dry run.
484
- --epoch=<value> Number of mutations per epoch.
485
- --interval=<value> Interval between mutations (ms).
486
- --jitter=<value> Interval variance (ms).
487
- --json Output as JSON.
488
- --mutations=<value> Number of mutations.
489
- --no-agent Run command without using or starting agent.
490
- --no-wait Do not wait for space to be ready.
491
- --objects=<value> Number of objects.
492
- --profile=<value> [default: default] User profile.
493
- --timeout=<value> [default: 60000] Timeout (ms).
494
-
495
- DESCRIPTION
496
- Generate test data.
497
- ```
498
-
499
- ## `dx debug metrics [COMMAND]`
500
-
501
- Control metrics.
502
-
503
- ```
504
- USAGE
505
- $ dx debug metrics [COMMAND] [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent]
506
- [--timeout <value>] [--no-wait]
507
-
508
- ARGUMENTS
509
- COMMAND Control metrics recording.
510
-
511
- FLAGS
512
- -v, --verbose Verbose output
513
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
514
- --dry-run Dry run.
515
- --no-agent Run command without using or starting agent.
516
- --no-wait Do not wait for space to be ready.
517
- --profile=<value> [default: default] User profile.
518
- --timeout=<value> [default: 60000] Timeout (ms).
519
-
520
- GLOBAL FLAGS
521
- --json Format output as json.
522
-
523
- DESCRIPTION
524
- Control metrics.
525
- ```
526
-
527
- ## `dx debug status`
528
-
529
- Display status.
530
-
531
- ```
532
- USAGE
533
- $ dx debug status [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
534
- <value>] [--no-wait] [--interval <value>]
535
-
536
- FLAGS
537
- -v, --verbose Verbose output
538
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
539
- --dry-run Dry run.
540
- --interval=<value> [default: 1000] Update interval (ms).
541
- --json Output as JSON.
542
- --no-agent Run command without using or starting agent.
543
- --no-wait Do not wait for space to be ready.
544
- --profile=<value> [default: default] User profile.
545
- --timeout=<value> [default: 60000] Timeout (ms).
546
-
547
- DESCRIPTION
548
- Display status.
549
- ```
550
-
551
- ## `dx device info`
552
-
553
- Show device info.
554
-
555
- ```
556
- USAGE
557
- $ dx device info [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
558
- <value>] [--no-wait]
559
-
560
- FLAGS
561
- -v, --verbose Verbose output
562
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
563
- --dry-run Dry run.
564
- --no-agent Run command without using or starting agent.
565
- --no-wait Do not wait for space to be ready.
566
- --profile=<value> [default: default] User profile.
567
- --timeout=<value> [default: 60000] Timeout (ms).
568
-
569
- GLOBAL FLAGS
570
- --json Format output as json.
571
-
572
- DESCRIPTION
573
- Show device info.
574
- ```
575
-
576
- ## `dx device list`
577
-
578
- Show device info.
579
-
580
- ```
581
- USAGE
582
- $ dx device list [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
583
- <value>] [--no-wait] [--columns <value> | -x] [--sort <value>] [--filter <value>] [--output csv|json|yaml | |
584
- [--csv | --no-truncate]] [--no-header | ]
585
-
586
- FLAGS
587
- -v, --verbose Verbose output
588
- -x, --extended show extra columns
589
- --columns=<value> only show provided columns (comma-separated)
590
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
591
- --csv output is csv format [alias: --output=csv]
592
- --dry-run Dry run.
593
- --filter=<value> filter property by partial string matching, ex: name=foo
594
- --json Output as JSON.
595
- --no-agent Run command without using or starting agent.
596
- --no-header hide table header from output
597
- --no-truncate do not truncate output to fit screen
598
- --no-wait Do not wait for space to be ready.
599
- --output=<option> output in a more machine friendly format
600
- <options: csv|json|yaml>
601
- --profile=<value> [default: default] User profile.
602
- --sort=<value> property to sort by (prepend '-' for descending)
603
- --timeout=<value> [default: 60000] Timeout (ms).
604
-
605
- DESCRIPTION
606
- Show device info.
607
- ```
608
-
609
- ## `dx function dev`
610
-
611
- Functions development server.
612
-
613
- ```
614
- USAGE
615
- $ dx function dev [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
616
- <value>] [--no-wait] [--require <value>] [--baseDir <value>] [--manifest <value>] [--reload]
617
-
618
- FLAGS
619
- -v, --verbose Verbose output
620
- --baseDir=<value> Base directory for function handlers.
621
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
622
- --dry-run Dry run.
623
- --json Output as JSON.
624
- --manifest=<value> Functions manifest file.
625
- --no-agent Run command without using or starting agent.
626
- --no-wait Do not wait for space to be ready.
627
- --profile=<value> [default: default] User profile.
628
- --reload Reload functions on change.
629
- --require=<value>... [default: ts-node/register]
630
- --timeout=<value> [default: 60000] Timeout (ms).
631
-
632
- DESCRIPTION
633
- Functions development server.
634
-
635
- ALIASES
636
- $ dx function dev-server
637
-
638
- EXAMPLES
639
- Run with TypeScript support.
640
-
641
- $ dx function dev -r ts-node/register --verbose
642
- ```
643
-
644
- ## `dx function dev-server`
645
-
646
- Functions development server.
647
-
648
- ```
649
- USAGE
650
- $ dx function dev-server [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
651
- <value>] [--no-wait] [--require <value>] [--baseDir <value>] [--manifest <value>] [--reload]
652
-
653
- FLAGS
654
- -v, --verbose Verbose output
655
- --baseDir=<value> Base directory for function handlers.
656
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
657
- --dry-run Dry run.
658
- --json Output as JSON.
659
- --manifest=<value> Functions manifest file.
660
- --no-agent Run command without using or starting agent.
661
- --no-wait Do not wait for space to be ready.
662
- --profile=<value> [default: default] User profile.
663
- --reload Reload functions on change.
664
- --require=<value>... [default: ts-node/register]
665
- --timeout=<value> [default: 60000] Timeout (ms).
666
-
667
- DESCRIPTION
668
- Functions development server.
669
-
670
- ALIASES
671
- $ dx function dev-server
672
-
673
- EXAMPLES
674
- Run with TypeScript support.
675
-
676
- $ dx function dev -r ts-node/register --verbose
677
- ```
678
-
679
- ## `dx function exec NAME`
680
-
681
- Invoke function.
682
-
683
- ```
684
- USAGE
685
- $ dx function exec NAME [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
686
- <value>] [--no-wait]
687
-
688
- ARGUMENTS
689
- NAME Function name.
690
-
691
- FLAGS
692
- -v, --verbose Verbose output
693
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
694
- --dry-run Dry run.
695
- --no-agent Run command without using or starting agent.
696
- --no-wait Do not wait for space to be ready.
697
- --profile=<value> [default: default] User profile.
698
- --timeout=<value> [default: 60000] Timeout (ms).
699
-
700
- GLOBAL FLAGS
701
- --json Format output as json.
702
-
703
- DESCRIPTION
704
- Invoke function.
705
- ```
706
-
707
- ## `dx function list`
708
-
709
- List functions.
710
-
711
- ```
712
- USAGE
713
- $ dx function list [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
714
- <value>] [--no-wait]
715
-
716
- FLAGS
717
- -v, --verbose Verbose output
718
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
719
- --dry-run Dry run.
720
- --no-agent Run command without using or starting agent.
721
- --no-wait Do not wait for space to be ready.
722
- --profile=<value> [default: default] User profile.
723
- --timeout=<value> [default: 60000] Timeout (ms).
724
-
725
- GLOBAL FLAGS
726
- --json Format output as json.
727
-
728
- DESCRIPTION
729
- List functions.
730
- ```
731
-
732
- ## `dx function logs NAME`
733
-
734
- Get function logs.
735
-
736
- ```
737
- USAGE
738
- $ dx function logs NAME [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
739
- <value>] [--no-wait]
740
-
741
- ARGUMENTS
742
- NAME Function name.
743
-
744
- FLAGS
745
- -v, --verbose Verbose output
746
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
747
- --dry-run Dry run.
748
- --no-agent Run command without using or starting agent.
749
- --no-wait Do not wait for space to be ready.
750
- --profile=<value> [default: default] User profile.
751
- --timeout=<value> [default: 60000] Timeout (ms).
752
-
753
- GLOBAL FLAGS
754
- --json Format output as json.
755
-
756
- DESCRIPTION
757
- Get function logs.
758
- ```
759
-
760
- ## `dx halo create DISPLAYNAME`
761
-
762
- Create HALO.
763
-
764
- ```
765
- USAGE
766
- $ dx halo create DISPLAYNAME [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent]
767
- [--timeout <value>] [--no-wait]
768
-
769
- ARGUMENTS
770
- DISPLAYNAME Display name
771
-
772
- FLAGS
773
- -v, --verbose Verbose output
774
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
775
- --dry-run Dry run.
776
- --no-agent Run command without using or starting agent.
777
- --no-wait Do not wait for space to be ready.
778
- --profile=<value> [default: default] User profile.
779
- --timeout=<value> [default: 60000] Timeout (ms).
780
-
781
- GLOBAL FLAGS
782
- --json Format output as json.
783
-
784
- DESCRIPTION
785
- Create HALO.
786
- ```
787
-
788
- ## `dx halo credential add [CREDENTIAL]`
789
-
790
- Import credential into HALO.
791
-
792
- ```
793
- USAGE
794
- $ dx halo credential add [CREDENTIAL] [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent]
795
- [--timeout <value>] [--no-wait]
796
-
797
- ARGUMENTS
798
- CREDENTIAL credential
799
-
800
- FLAGS
801
- -v, --verbose Verbose output
802
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
803
- --dry-run Dry run.
804
- --json Output as JSON.
805
- --no-agent Run command without using or starting agent.
806
- --no-wait Do not wait for space to be ready.
807
- --profile=<value> [default: default] User profile.
808
- --timeout=<value> [default: 60000] Timeout (ms).
809
-
810
- DESCRIPTION
811
- Import credential into HALO.
812
- ```
813
-
814
- ## `dx halo credential list`
815
-
816
- List HALO credentials.
817
-
818
- ```
819
- USAGE
820
- $ dx halo credential list [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
821
- <value>] [--no-wait] [--columns <value> | -x] [--sort <value>] [--filter <value>] [--output csv|json|yaml | |
822
- [--csv | --no-truncate]] [--no-header | ] [--type <value>]
823
-
824
- FLAGS
825
- -v, --verbose Verbose output
826
- -x, --extended show extra columns
827
- --columns=<value> only show provided columns (comma-separated)
828
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
829
- --csv output is csv format [alias: --output=csv]
830
- --dry-run Dry run.
831
- --filter=<value> filter property by partial string matching, ex: name=foo
832
- --json Output as JSON.
833
- --no-agent Run command without using or starting agent.
834
- --no-header hide table header from output
835
- --no-truncate do not truncate output to fit screen
836
- --no-wait Do not wait for space to be ready.
837
- --output=<option> output in a more machine friendly format
838
- <options: csv|json|yaml>
839
- --profile=<value> [default: default] User profile.
840
- --sort=<value> property to sort by (prepend '-' for descending)
841
- --timeout=<value> [default: 60000] Timeout (ms).
842
- --type=<value> Type
843
-
844
- DESCRIPTION
845
- List HALO credentials.
846
- ```
847
-
848
- ## `dx halo identity`
849
-
850
- Show HALO identity.
851
-
852
- ```
853
- USAGE
854
- $ dx halo identity [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
855
- <value>] [--no-wait]
856
-
857
- FLAGS
858
- -v, --verbose Verbose output
859
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
860
- --dry-run Dry run.
861
- --no-agent Run command without using or starting agent.
862
- --no-wait Do not wait for space to be ready.
863
- --profile=<value> [default: default] User profile.
864
- --timeout=<value> [default: 60000] Timeout (ms).
865
-
866
- GLOBAL FLAGS
867
- --json Format output as json.
868
-
869
- DESCRIPTION
870
- Show HALO identity.
871
- ```
872
-
873
- ## `dx halo join`
874
-
875
- Join HALO (device) invitation.
876
-
877
- ```
878
- USAGE
879
- $ dx halo join [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
880
- <value>] [--no-wait] [--invitation <value>] [--secret <value>]
881
-
882
- FLAGS
883
- -v, --verbose Verbose output
884
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
885
- --dry-run Dry run.
886
- --invitation=<value> Invitation code
887
- --json Output as JSON.
888
- --no-agent Run command without using or starting agent.
889
- --no-wait Do not wait for space to be ready.
890
- --profile=<value> [default: default] User profile.
891
- --secret=<value> Invitation secret
892
- --timeout=<value> [default: 60000] Timeout (ms).
893
-
894
- DESCRIPTION
895
- Join HALO (device) invitation.
896
- ```
897
-
898
- ## `dx halo share`
899
-
900
- Create HALO (device) invitation.
901
-
902
- ```
903
- USAGE
904
- $ dx halo share [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
905
- <value>] [--no-wait] [--noCode]
906
-
907
- FLAGS
908
- -v, --verbose Verbose output
909
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
910
- --dry-run Dry run.
911
- --no-agent Run command without using or starting agent.
912
- --no-wait Do not wait for space to be ready.
913
- --noCode Flag that specifies if secret auth code is not required
914
- --profile=<value> [default: default] User profile.
915
- --timeout=<value> [default: 60000] Timeout (ms).
916
-
917
- GLOBAL FLAGS
918
- --json Format output as json.
919
-
920
- DESCRIPTION
921
- Create HALO (device) invitation.
922
- ```
923
-
924
- ## `dx help [COMMANDS]`
925
-
926
- Display help for dx.
927
-
928
- ```
929
- USAGE
930
- $ dx help [COMMANDS] [-n]
931
-
932
- ARGUMENTS
933
- COMMANDS Command to show help for.
934
-
935
- FLAGS
936
- -n, --nested-commands Include all nested commands in the output.
937
-
938
- DESCRIPTION
939
- Display help for dx.
940
- ```
941
-
942
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.2.14/src/commands/help.ts)_
943
-
944
- ## `dx kube auth`
945
-
946
- Authenticate with KUBE.
947
-
948
- ```
949
- USAGE
950
- $ dx kube auth [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
951
- <value>] [--no-wait]
952
-
953
- FLAGS
954
- -v, --verbose Verbose output
955
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
956
- --dry-run Dry run.
957
- --no-agent Run command without using or starting agent.
958
- --no-wait Do not wait for space to be ready.
959
- --profile=<value> [default: default] User profile.
960
- --timeout=<value> [default: 60000] Timeout (ms).
961
-
962
- GLOBAL FLAGS
963
- --json Format output as json.
964
-
965
- DESCRIPTION
966
- Authenticate with KUBE.
967
- ```
968
-
969
- ## `dx kube deploy`
970
-
971
- Deploy KUBE.
972
-
973
- ```
974
- USAGE
975
- $ dx kube deploy --hostname <value> [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent]
976
- [--timeout <value>] [--no-wait] [--provider <value>] [--accessToken <value>] [--dev]
977
-
978
- FLAGS
979
- -v, --verbose Verbose output
980
- --accessToken=<value> Access token for seeding admin identity
981
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
982
- --dev Deploy latest version from dev channel
983
- --dry-run Dry run.
984
- --hostname=<value> (required) Hostname
985
- --json Output as JSON.
986
- --no-agent Run command without using or starting agent.
987
- --no-wait Do not wait for space to be ready.
988
- --profile=<value> [default: default] User profile.
989
- --provider=<value> [default: digitalocean] Cloud Provider
990
- --timeout=<value> [default: 60000] Timeout (ms).
991
-
992
- DESCRIPTION
993
- Deploy KUBE.
994
- ```
995
-
996
- ## `dx reset`
997
-
998
- Reset user data.
999
-
1000
- ```
1001
- USAGE
1002
- $ dx reset [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
1003
- <value>] [--no-wait] [--force] [--default-config]
1004
-
1005
- FLAGS
1006
- -v, --verbose Verbose output
1007
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
1008
- --default-config Replace config with defaults.
1009
- --dry-run Dry run.
1010
- --force Force delete.
1011
- --json Output as JSON.
1012
- --no-agent Run command without using or starting agent.
1013
- --no-wait Do not wait for space to be ready.
1014
- --profile=<value> [default: default] User profile.
1015
- --timeout=<value> [default: 60000] Timeout (ms).
1016
-
1017
- DESCRIPTION
1018
- Reset user data.
1019
- ```
1020
-
1021
- ## `dx shell`
1022
-
1023
- Interactive shell.
1024
-
1025
- ```
1026
- USAGE
1027
- $ dx shell [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
1028
- <value>] [--no-wait]
1029
-
1030
- FLAGS
1031
- -v, --verbose Verbose output
1032
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
1033
- --dry-run Dry run.
1034
- --json Output as JSON.
1035
- --no-agent Run command without using or starting agent.
1036
- --no-wait Do not wait for space to be ready.
1037
- --profile=<value> [default: default] User profile.
1038
- --timeout=<value> [default: 60000] Timeout (ms).
1039
-
1040
- DESCRIPTION
1041
- Interactive shell.
1042
- ```
1043
-
1044
- ## `dx space close [KEY]`
1045
-
1046
- Close space.
1047
-
1048
- ```
1049
- USAGE
1050
- $ dx space close [KEY] [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
1051
- <value>] [--no-wait]
1052
-
1053
- FLAGS
1054
- -v, --verbose Verbose output
1055
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
1056
- --dry-run Dry run.
1057
- --json Output as JSON.
1058
- --no-agent Run command without using or starting agent.
1059
- --no-wait Do not wait for space to be ready.
1060
- --profile=<value> [default: default] User profile.
1061
- --timeout=<value> [default: 60000] Timeout (ms).
1062
-
1063
- DESCRIPTION
1064
- Close space.
1065
- ```
1066
-
1067
- ## `dx space create [NAME]`
1068
-
1069
- Create space.
1070
-
1071
- ```
1072
- USAGE
1073
- $ dx space create [NAME] [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
1074
- <value>] [--no-wait]
1075
-
1076
- FLAGS
1077
- -v, --verbose Verbose output
1078
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
1079
- --dry-run Dry run.
1080
- --no-agent Run command without using or starting agent.
1081
- --no-wait Do not wait for space to be ready.
1082
- --profile=<value> [default: default] User profile.
1083
- --timeout=<value> [default: 60000] Timeout (ms).
1084
-
1085
- GLOBAL FLAGS
1086
- --json Format output as json.
1087
-
1088
- DESCRIPTION
1089
- Create space.
1090
- ```
1091
-
1092
- ## `dx space epoch [KEY]`
1093
-
1094
- Create new epoch.
1095
-
1096
- ```
1097
- USAGE
1098
- $ dx space epoch [KEY] [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
1099
- <value>] [--no-wait]
1100
-
1101
- ARGUMENTS
1102
- KEY Space key head in hex.
1103
-
1104
- FLAGS
1105
- -v, --verbose Verbose output
1106
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
1107
- --dry-run Dry run.
1108
- --no-agent Run command without using or starting agent.
1109
- --no-wait Do not wait for space to be ready.
1110
- --profile=<value> [default: default] User profile.
1111
- --timeout=<value> [default: 60000] Timeout (ms).
1112
-
1113
- GLOBAL FLAGS
1114
- --json Format output as json.
1115
-
1116
- DESCRIPTION
1117
- Create new epoch.
1118
- ```
1119
-
1120
- ## `dx space info [KEY]`
1121
-
1122
- Show space info.
1123
-
1124
- ```
1125
- USAGE
1126
- $ dx space info [KEY] [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
1127
- <value>] [--no-wait]
1128
-
1129
- FLAGS
1130
- -v, --verbose Verbose output
1131
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
1132
- --dry-run Dry run.
1133
- --no-agent Run command without using or starting agent.
1134
- --no-wait Do not wait for space to be ready.
1135
- --profile=<value> [default: default] User profile.
1136
- --timeout=<value> [default: 60000] Timeout (ms).
1137
-
1138
- GLOBAL FLAGS
1139
- --json Format output as json.
1140
-
1141
- DESCRIPTION
1142
- Show space info.
1143
- ```
1144
-
1145
- ## `dx space join`
1146
-
1147
- Join space invitation
1148
-
1149
- ```
1150
- USAGE
1151
- $ dx space join [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
1152
- <value>] [--no-wait] [--invitation <value>] [--secret <value>]
1153
-
1154
- FLAGS
1155
- -v, --verbose Verbose output
1156
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
1157
- --dry-run Dry run.
1158
- --invitation=<value> Invitation code
1159
- --json Output as JSON.
1160
- --no-agent Run command without using or starting agent.
1161
- --no-wait Do not wait for space to be ready.
1162
- --profile=<value> [default: default] User profile.
1163
- --secret=<value> Invitation secret
1164
- --timeout=<value> [default: 60000] Timeout (ms).
1165
-
1166
- DESCRIPTION
1167
- Join space invitation
1168
- ```
1169
-
1170
- ## `dx space list`
1171
-
1172
- List spaces.
1173
-
1174
- ```
1175
- USAGE
1176
- $ dx space list [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
1177
- <value>] [--no-wait] [--columns <value> | -x] [--sort <value>] [--filter <value>] [--output csv|json|yaml | |
1178
- [--csv | --no-truncate]] [--no-header | ] [--live]
1179
-
1180
- FLAGS
1181
- -v, --verbose Verbose output
1182
- -x, --extended show extra columns
1183
- --columns=<value> only show provided columns (comma-separated)
1184
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
1185
- --csv output is csv format [alias: --output=csv]
1186
- --dry-run Dry run.
1187
- --filter=<value> filter property by partial string matching, ex: name=foo
1188
- --json Output as JSON.
1189
- --live Live update.
1190
- --no-agent Run command without using or starting agent.
1191
- --no-header hide table header from output
1192
- --no-truncate do not truncate output to fit screen
1193
- --no-wait Do not wait for space to be ready.
1194
- --output=<option> output in a more machine friendly format
1195
- <options: csv|json|yaml>
1196
- --profile=<value> [default: default] User profile.
1197
- --sort=<value> property to sort by (prepend '-' for descending)
1198
- --timeout=<value> [default: 60000] Timeout (ms).
1199
-
1200
- DESCRIPTION
1201
- List spaces.
1202
- ```
1203
-
1204
- ## `dx space members [KEY]`
1205
-
1206
- List space members.
1207
-
1208
- ```
1209
- USAGE
1210
- $ dx space members [KEY] [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
1211
- <value>] [--no-wait] [--columns <value> | -x] [--sort <value>] [--filter <value>] [--output csv|json|yaml | |
1212
- [--csv | --no-truncate]] [--no-header | ]
1213
-
1214
- ARGUMENTS
1215
- KEY Space key head in hex.
1216
-
1217
- FLAGS
1218
- -v, --verbose Verbose output
1219
- -x, --extended show extra columns
1220
- --columns=<value> only show provided columns (comma-separated)
1221
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
1222
- --csv output is csv format [alias: --output=csv]
1223
- --dry-run Dry run.
1224
- --filter=<value> filter property by partial string matching, ex: name=foo
1225
- --json Output as JSON.
1226
- --no-agent Run command without using or starting agent.
1227
- --no-header hide table header from output
1228
- --no-truncate do not truncate output to fit screen
1229
- --no-wait Do not wait for space to be ready.
1230
- --output=<option> output in a more machine friendly format
1231
- <options: csv|json|yaml>
1232
- --profile=<value> [default: default] User profile.
1233
- --sort=<value> property to sort by (prepend '-' for descending)
1234
- --timeout=<value> [default: 60000] Timeout (ms).
1235
-
1236
- DESCRIPTION
1237
- List space members.
1238
- ```
1239
-
1240
- ## `dx space open [KEY]`
1241
-
1242
- Open space.
1243
-
1244
- ```
1245
- USAGE
1246
- $ dx space open [KEY] [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
1247
- <value>] [--no-wait]
1248
-
1249
- FLAGS
1250
- -v, --verbose Verbose output
1251
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
1252
- --dry-run Dry run.
1253
- --json Output as JSON.
1254
- --no-agent Run command without using or starting agent.
1255
- --no-wait Do not wait for space to be ready.
1256
- --profile=<value> [default: default] User profile.
1257
- --timeout=<value> [default: 60000] Timeout (ms).
1258
-
1259
- DESCRIPTION
1260
- Open space.
1261
- ```
1262
-
1263
- ## `dx space query [KEY]`
1264
-
1265
- Query database.
1266
-
1267
- ```
1268
- USAGE
1269
- $ dx space query [KEY] [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
1270
- <value>] [--no-wait]
1271
-
1272
- ARGUMENTS
1273
- KEY Space key head in hex.
1274
-
1275
- FLAGS
1276
- -v, --verbose Verbose output
1277
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
1278
- --dry-run Dry run.
1279
- --no-agent Run command without using or starting agent.
1280
- --no-wait Do not wait for space to be ready.
1281
- --profile=<value> [default: default] User profile.
1282
- --timeout=<value> [default: 60000] Timeout (ms).
1283
-
1284
- GLOBAL FLAGS
1285
- --json Format output as json.
1286
-
1287
- DESCRIPTION
1288
- Query database.
1289
- ```
1290
-
1291
- ## `dx space share [KEY]`
1292
-
1293
- Create space invitation.
1294
-
1295
- ```
1296
- USAGE
1297
- $ dx space share [KEY] [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
1298
- <value>] [--no-wait] [--multiple] [--no-auth]
1299
-
1300
- ARGUMENTS
1301
- KEY Space key head in hex.
1302
-
1303
- FLAGS
1304
- -v, --verbose Verbose output
1305
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
1306
- --dry-run Dry run.
1307
- --json Output as JSON.
1308
- --multiple Multiple use.
1309
- --no-agent Run command without using or starting agent.
1310
- --no-auth Skip authentication challenge.
1311
- --no-wait Do not wait for space to be ready.
1312
- --profile=<value> [default: default] User profile.
1313
- --timeout=<value> [default: 5000] Timeout in milliseconds.
1314
-
1315
- DESCRIPTION
1316
- Create space invitation.
113
+ nx run cli:build --watch=true
1317
114
  ```
1318
115
 
1319
- ## `dx tunnel COMMAND`
116
+ ### Devtools
117
+ The agent can be configured to expose a Websocket port using the `--ws` flag that can be connected to using DXOS Devtools:
1320
118
 
1321
- Enable or disable tunnel.
119
+ To connect devtools, set the `target` query parameter to the agent's websocket URL, e.g.,
1322
120
 
1323
- ```
1324
- USAGE
1325
- $ dx tunnel COMMAND [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
1326
- <value>] [--no-wait] [--name <value>]
121
+ `https://devtools.dxos.org?target=ws://localhost:4567`
1327
122
 
1328
- ARGUMENTS
1329
- COMMAND Start.
123
+ ### Debugging
1330
124
 
1331
- FLAGS
1332
- -v, --verbose Verbose output
1333
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
1334
- --dry-run Dry run.
1335
- --json Output as JSON.
1336
- --name=<value> [default: apart-emma-magnesium-thirteen] Tunnel name
1337
- --no-agent Run command without using or starting agent.
1338
- --no-wait Do not wait for space to be ready.
1339
- --profile=<value> [default: default] User profile.
1340
- --timeout=<value> [default: 60000] Timeout (ms).
125
+ To enable logging, set `LOG_FILTER`:
1341
126
 
1342
- DESCRIPTION
1343
- Enable or disable tunnel.
127
+ ```bash
128
+ LOG_FILTER=info,agent:debug dx agent start -f
1344
129
  ```
1345
130
 
1346
- ## `dx tunnel list`
131
+ If the agent is run in background mode, log files will be created in `/tmp/dx/run/profile/<profile name>/logs`
1347
132
 
1348
- List tunnels.
133
+ To enable the node debugger, set `NODE_OPTIONS` then open in VSCode (CMD-SHIFT-P "Attach to Node process").
1349
134
 
135
+ ```bash
136
+ NODE_OPTIONS="--inspect-brk"
1350
137
  ```
1351
- USAGE
1352
- $ dx tunnel list [--json] [--dry-run] [-v] [--config <value> --profile <value>] [--no-agent] [--timeout
1353
- <value>] [--no-wait]
1354
138
 
1355
- FLAGS
1356
- -v, --verbose Verbose output
1357
- --config=path [default: /home/runner/.config/dx/profile/default.yml] Config file.
1358
- --dry-run Dry run.
1359
- --no-agent Run command without using or starting agent.
1360
- --no-wait Do not wait for space to be ready.
1361
- --profile=<value> [default: default] User profile.
1362
- --timeout=<value> [default: 60000] Timeout (ms).
139
+ ## Reporting errors
1363
140
 
1364
- GLOBAL FLAGS
1365
- --json Format output as json.
141
+ Run the following command to create a gist of the debug stats.
1366
142
 
1367
- DESCRIPTION
1368
- List tunnels.
143
+ ```bash
144
+ dx debug stats --json --no-agent | gh gist create
1369
145
  ```
1370
- <!-- commandsstop -->