bmo 0.6.0

Local-first SQLite-backed CLI issue tracker for AI agents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
# bmo Command Reference

This file is a machine-readable reference for every bmo command. It is intended for AI agents,
scripts, and tools that need to understand the full CLI surface without running the binary.

All commands accept the global flags `--json` and `--db`. All enumerated values are
case-insensitive. Issue IDs may be supplied as bare integers (`1`) or in `BMO-N` format
(`BMO-1`).

## JSON Output Envelope

All commands that produce structured output use a consistent envelope when `--json` is passed.

Success:

```json
{"ok": true, "data": <payload>, "message": "<human summary>"}
```

Error:

```json
{"ok": false, "error": "<description>", "code": "<code>"}
```

Error codes:

| Code | Exit status | Meaning |
|------|-------------|---------|
| `general` | 1 | Unclassified error |
| `not-found` | 2 | Requested resource does not exist |
| `validation` | 3 | Invalid input |
| `conflict` | 4 | Operation would violate a constraint |

`--json` output is designed for programmatic consumption. The envelope shape and field names are
stable across patch releases within a major version.

## Enumerated Values

Valid values for status, priority, kind, and relation fields. All values are case-insensitive.
`in-progress` also accepts the aliases `in_progress` and `inprogress`.

| Field | Valid values |
|-------|-------------|
| status | `backlog`, `todo`, `in-progress`, `review`, `done` |
| priority | `none`, `low`, `medium`, `high`, `critical` |
| kind | `bug`, `feature`, `task`, `epic`, `chore` |
| relation | `blocks`, `blocked-by`, `depends-on`, `dependency-of`, `relates-to`, `duplicates`, `duplicate-of` |

## Global Flags

These flags are accepted by every command.

| Flag | Type | Default | Description |
|------|------|---------|-------------|
| `--json` | bool | false | Output all results as JSON using the standard envelope |
| `--db <PATH>` | string | (auto-detected) | Override the database path. Also reads `BMO_DB` environment variable |

## bmo init

Initialize a new bmo project in the current directory.

**Synopsis:** `bmo init [--name <name>]`

Creates a `.bmo/` directory containing `issues.db` and `config.toml`. If the directory already
exists, the command is a no-op.

| Flag | Type | Default | Description |
|------|------|---------|-------------|
| `--name <name>` | string | (none) | Project name to store in config.toml |

**Example:**

```
bmo init --name my-project
```

**JSON output** (`data` field):

```json
{
  "db_path": "/path/to/.bmo/issues.db",
  "already_existed": false
}
```

## bmo config

Show or modify project configuration. When called without flags, prints all current config values.

**Synopsis:** `bmo config [--get <key>] [--set <key=value>]`

| Flag | Type | Default | Description |
|------|------|---------|-------------|
| `--get <key>` | string | (none) | Print the value of a single config key |
| `--set <key=value>` | string | (none) | Set a config key to a value (format: `key=value`) |

Supported config keys: `project_name`, `default_assignee`, `web_port`, `web_host`.

**Examples:**

```
bmo config
bmo config --get web_port
bmo config --set default_assignee=alice
```

**JSON output** (`data` field when listing all):

```json
{
  "project_name": "my-project",
  "default_assignee": null,
  "web_port": 7777,
  "web_host": "127.0.0.1"
}
```

## bmo version

Print the bmo version string.

**Synopsis:** `bmo version`

No flags beyond globals.

**Example:**

```
bmo version
```

**JSON output** (`data` field):

```json
{"version": "0.1.0"}
```

## bmo stats

Show issue statistics broken down by status, priority, and kind.

**Synopsis:** `bmo stats`

No flags beyond globals.

**Example:**

```
bmo stats
bmo stats --json
```

## bmo board

Show all issues organized into a Kanban board by status column.

**Synopsis:** `bmo board [--label <label>]... [--priority <priority>]... [--assignee <name>]`

| Flag | Type | Default | Description |
|------|------|---------|-------------|
| `-l, --label <label>` | string (repeatable) | (none) | Filter board to issues with this label |
| `-p, --priority <priority>` | string (repeatable) | (none) | Filter board to this priority |
| `-a, --assignee <name>` | string | (none) | Filter board to this assignee |

**Examples:**

```
bmo board
bmo board --assignee alice --json
bmo board --priority high --priority critical
```

**JSON output** (`data` field):

```json
{
  "backlog": [ <issue>, ... ],
  "todo": [ <issue>, ... ],
  "in_progress": [ <issue>, ... ],
  "review": [ <issue>, ... ],
  "done": [ <issue>, ... ]
}
```

## bmo next

Show issues that are ready to work on — issues that have no unresolved blocking dependencies.

**Synopsis:** `bmo next [--assignee <name>] [--limit <n>]`

| Flag | Type | Default | Description |
|------|------|---------|-------------|
| `-a, --assignee <name>` | string | (none) | Restrict results to this assignee |
| `--limit <n>` | integer | 10 | Maximum number of results |

**Examples:**

```
bmo next
bmo next --assignee alice --limit 5 --json
```

**JSON output** (`data` field): array of issue objects.

## bmo plan

Show a phased execution plan derived from issue dependency relationships. Issues are grouped into
phases where each phase contains issues that can be worked in parallel.

**Synopsis:** `bmo plan [--assignee <name>] [--phase <n>]`

| Flag | Type | Default | Description |
|------|------|---------|-------------|
| `-a, --assignee <name>` | string | (none) | Filter plan to this assignee |
| `--phase <n>` | integer | (none) | Return only the issues in phase N as a flat array |

When `--phase` is given, the `data` field is a plain array of issue objects (not the full plan
envelope), suitable for a coordinator to iterate and dispatch. An out-of-range phase number
returns a `validation` error (exit 3).

When `--assignee` and `--phase` are both given, phase N is extracted from the full plan first,
then the result is filtered by assignee within that phase. An empty result is not an error.
`--assignee` requires `--phase`; using `--assignee` without `--phase` is a validation error (exit 3).

**Examples:**

```
bmo plan --json
bmo plan --phase 1 --json
bmo plan --phase 2 --assignee alice --json
```

**JSON output** (`data` field, without `--phase`):

```json
{
  "total_issues": 12,
  "total_phases": 3,
  "max_parallelism": 4,
  "phases": [
    {"number": 1, "issues": [ <issue>, ... ]},
    ...
  ]
}
```

**JSON output** (with `--phase N`):

```json
{
  "ok": true,
  "data": [
    {"id": 3, "title": "...", "status": "todo", ...},
    {"id": 5, "title": "...", "status": "todo", ...}
  ],
  "message": "Phase 1: 2 issue(s)."
}
```

Out-of-range phase error (exit 3):

```json
{"ok": false, "code": "validation", "error": "phase 5 does not exist (plan has 3 phases)"}
```

## bmo export

Export all issues, comments, labels, relations, activity, and file attachments to JSON.

**Synopsis:** `bmo export [--output <file>]`

| Flag | Type | Default | Description |
|------|------|---------|-------------|
| `-o, --output <file>` | string | (stdout) | Write output to this file path instead of stdout |

`--json` has no effect on this command; the output is always a JSON export bundle.

**Example:**

```
bmo export --output backup.json
bmo export > backup.json
```

## bmo import

Import issues from a JSON export file.

**Synopsis:** `bmo import <file> [--from-docket]`

| Argument/Flag | Type | Default | Description |
|---------------|------|---------|-------------|
| `<file>` | positional | (required) | Path to the JSON export file |
| `--from-docket` | bool | false | Treat the file as a docket-format export; remaps `DKT-` IDs to `BMO-` |

**Examples:**

```
bmo import backup.json
bmo import docket-export.json --from-docket --json
```

**JSON output** (`data` field):

```json
{"issues": 10, "comments": 3}
```

The envelope also includes a top-level `"warnings"` array listing any records that were skipped
due to unresolvable IDs.

## bmo truncate

Delete issues in bulk. Defaults to deleting all `done` issues if no filter is specified.

**Synopsis:** `bmo truncate [--status <status>]... [--all] [--yes]`

| Flag | Type | Default | Description |
|------|------|---------|-------------|
| `-s, --status <status>` | string (repeatable) | `done` | Delete issues with this status (repeatable for multiple) |
| `--all` | bool | false | Delete ALL issues regardless of status (mutually exclusive with `--status`) |
| `--yes` | bool | false | Skip the confirmation prompt |

Prompts for confirmation before deleting unless `--yes` is passed. Reports the count of deleted issues.

**Examples:**

```
bmo truncate
bmo truncate --yes
bmo truncate --status backlog --status todo
bmo truncate --all --yes
```

**JSON output**:

```json
{"ok": true, "data": {"deleted": 47}, "message": "Deleted 47 issue(s)."}
{"ok": true, "data": {"deleted": 0}, "message": "Nothing to delete."}
```

## bmo web

Start the local read-only web UI for browsing issues in a browser.

**Synopsis:** `bmo web [--port <port>] [--host <host>] [--no-open]`

| Flag | Type | Default | Description |
|------|------|---------|-------------|
| `-p, --port <port>` | integer | 7777 | TCP port to listen on |
| `--host <host>` | string | `127.0.0.1` | Host address to bind to |
| `--no-open` | bool | false | Do not automatically open a browser window |

`--json` has no effect on this command.

**Examples:**

```
bmo web
bmo web --port 8080 --no-open
bmo web --host 0.0.0.0 --port 7777
```

## bmo issue

Manage issues. Issue subcommands can be invoked directly as `bmo <cmd>` (e.g., `bmo list`,
`bmo show BMO-1`) or with the explicit prefix `bmo issue <cmd>` — both forms are equivalent.
The `bmo issue` prefix is kept for backward compatibility.

### bmo issue create

Create a new issue.

**Synopsis:** `bmo create --title <title> [options]`

| Flag | Type | Default | Description |
|------|------|---------|-------------|
| `-t, --title <title>` | string | (required) | Issue title |
| `-d, --description <text>` | string | `""` | Issue description |
| `-s, --status <status>` | string | `backlog` | Initial status |
| `-p, --priority <priority>` | string | `medium` | Priority |
| `-k, --kind <kind>` | string | `task` | Issue kind/type |
| `-a, --assignee <name>` | string | (none) | Assignee |
| `--parent <id>` | string | (none) | Parent issue ID |
| `-l, --label <label>` | string (repeatable) | (none) | Label to apply (repeat for multiple) |
| `-f, --file <path>` | string (repeatable) | (none) | File path to attach (repeat for multiple) |

**Examples:**

```
bmo create --title "Fix login bug" --kind bug --priority high
bmo issue create --title "Fix login bug" --kind bug --priority high
bmo create -t "Add tests" -k task --parent BMO-1 --label testing
bmo create --title "Epic: v2 launch" --kind epic --json
```

**JSON output** (`data` field): a single issue object.

### bmo issue list

List issues with optional filters. Excludes done issues by default.

**Synopsis:** `bmo list [options]`

Aliases: `bmo ls`, `bmo issue list`, `bmo issue ls`

| Flag | Type | Default | Description |
|------|------|---------|-------------|
| `-s, --status <status>` | string (repeatable) | (none) | Filter by status |
| `-p, --priority <priority>` | string (repeatable) | (none) | Filter by priority |
| `-k, --kind <kind>` | string (repeatable) | (none) | Filter by kind |
| `--assignee <name>` | string | (none) | Filter by assignee |
| `-l, --label <label>` | string (repeatable) | (none) | Filter by label (AND semantics) |
| `--parent <id>` | string | (none) | Filter to children of this issue |
| `--search <text>` | string | (none) | Full-text search in title and description |
| `--limit <n>` | integer | 50 | Maximum number of results |
| `--sort <field>` | string | (none) | Sort field |
| `--include-done` | bool | false | Removes the default `status != done` exclusion; done issues are returned alongside active ones. All other filters (priority, kind, labels, etc.) remain active. Distinct from `--all` which short-circuits every predicate. |
| `-a, --all` | bool | false | Return all issues regardless of status or other filters (short-circuits all predicates) |
| `--oneline` | bool | false | Print one compact line per issue (ID, status, priority, kind, title) |

**Examples:**

```
bmo list
bmo issue list
bmo list --status in-progress --assignee alice
bmo list --kind bug --priority high --json
bmo list --all --json
bmo list --search "login" --limit 10
bmo list --include-done --priority high
```

**JSON output** (`data` field): array of issue objects.

### bmo issue show

Show full details for a single issue, including sub-issues, relations, comments, and labels.

**Synopsis:** `bmo show <id>`

| Argument | Type | Description |
|----------|------|-------------|
| `<id>` | positional (required) | Issue ID (e.g. `1` or `BMO-1`) |

**Examples:**

```
bmo show BMO-5
bmo show 5 --json
```

**JSON output** (`data` field):

```json
{
  "issue": <issue object>,
  "sub_issues": [ <issue>, ... ],
  "relations": [ <relation>, ... ],
  "comments": [ <comment>, ... ],
  "labels": [ <label>, ... ]
}
```

### bmo issue edit

Edit one or more fields on an existing issue. Only the fields you supply are updated.

**Synopsis:** `bmo edit <id> [options]`

| Argument/Flag | Type | Default | Description |
|---------------|------|---------|-------------|
| `<id>` | positional (required) | | Issue ID |
| `-t, --title <title>` | string | (unchanged) | New title |
| `-d, --description <text>` | string | (unchanged) | New description |
| `-s, --status <status>` | string | (unchanged) | New status |
| `-p, --priority <priority>` | string | (unchanged) | New priority |
| `-k, --kind <kind>` | string | (unchanged) | New kind |
| `-a, --assignee <name>` | string | (unchanged) | New assignee |
| `--parent <id>` | string | (unchanged) | New parent issue ID |

**Examples:**

```
bmo edit BMO-3 --status in-progress
bmo edit 7 --title "Updated title" --priority high --json
bmo edit BMO-10 --assignee bob --parent BMO-1
```

**JSON output** (`data` field): the updated issue object.

### bmo issue move

Change an issue's status.

**Synopsis:** `bmo move <id> --status <status>`

| Argument/Flag | Type | Default | Description |
|---------------|------|---------|-------------|
| `<id>` | positional (required) | | Issue ID |
| `-s, --status <status>` | string | (required) | Target status |

**Examples:**

```
bmo move BMO-4 --status in-progress
bmo move 4 --status review --json
```

**JSON output** (`data` field): the updated issue object.

### bmo issue close

Mark an issue as done (sets status to `done`).

**Synopsis:** `bmo close <id>`

| Argument | Type | Description |
|----------|------|-------------|
| `<id>` | positional (required) | Issue ID |

**Example:**

```
bmo close BMO-5
bmo close 5 --json
```

**JSON output** (`data` field): the updated issue object.

### bmo issue reopen

Reopen a closed issue (sets status to `todo`).

**Synopsis:** `bmo reopen <id>`

| Argument | Type | Description |
|----------|------|-------------|
| `<id>` | positional (required) | Issue ID |

**Example:**

```
bmo reopen BMO-5
```

**JSON output** (`data` field): the updated issue object.

### bmo issue claim

Atomically claim an issue: sets status to `in-progress` and optionally records an assignee
in a single conditional SQL UPDATE. If another agent has already claimed the ticket, returns
a `conflict` error rather than overwriting.

**Synopsis:** `bmo claim <id> [--assignee <name>]`

| Argument/Flag | Type | Default | Description |
|---------------|------|---------|-------------|
| `<id>` | positional (required) | | Issue ID |
| `-a, --assignee <name>` | string | (none) | Assignee name to record |

**Exit codes:**

| Code | Meaning |
|------|---------|
| `0` | Claimed successfully |
| `2` | Issue not found |
| `4` | Issue is already in-progress (conflict) |

**Examples:**

```
bmo claim BMO-7
bmo claim BMO-7 --assignee alice --json
```

**JSON output (`data` field):** the updated issue object.

When the claimed issue shares file attachments with another in-progress issue, the response
includes a top-level `"file_conflicts"` key (alongside `ok`, `data`, `message`):

```json
{"ok": true, "data": <issue>, "message": "Claimed BMO-7.", "file_conflicts": [...]}
```

### bmo issue delete

Permanently delete an issue. Prompts for confirmation unless `--yes` is passed.

**Synopsis:** `bmo delete <id> [--yes]`

| Argument/Flag | Type | Default | Description |
|---------------|------|---------|-------------|
| `<id>` | positional (required) | | Issue ID |
| `--yes` | bool | false | Skip the confirmation prompt |

**Examples:**

```
bmo delete BMO-9
bmo delete 9 --yes --json
```

**JSON output** (`data` field): `null`.

### bmo issue log

Show the activity log for an issue.

**Synopsis:** `bmo log <id> [--limit <n>]`

| Argument/Flag | Type | Default | Description |
|---------------|------|---------|-------------|
| `<id>` | positional (required) | | Issue ID |
| `--limit <n>` | integer | 10 | Maximum number of log entries to show |

**Examples:**

```
bmo log BMO-3
bmo log 3 --limit 20 --json
```

**JSON output** (`data` field): array of activity entry objects.

### bmo issue graph

Show the blocking/blocked-by dependency graph for an issue.

**Synopsis:** `bmo graph <id>`

| Argument | Type | Description |
|----------|------|-------------|
| `<id>` | positional (required) | Issue ID |

**Example:**

```
bmo graph BMO-1
bmo graph 1 --json
```

**JSON output** (`data` field):

```json
{
  "issue": <issue object>,
  "relations": [ <relation>, ... ]
}
```

### bmo issue comment add

Add a comment to an issue.

**Synopsis:** `bmo comment add <id> --body <text> [--author <name>]`

| Argument/Flag | Type | Default | Description |
|---------------|------|---------|-------------|
| `<id>` | positional (required) | | Issue ID |
| `-b, --body <text>` | string | (required) | Comment body |
| `-a, --author <name>` | string | (none) | Comment author name |

**Examples:**

```
bmo comment add BMO-3 --body "Investigating now"
bmo comment add 3 --body "Fixed in commit abc123" --author alice --json
```

**JSON output** (`data` field): the created comment object.

### bmo issue comment list

List all comments on an issue.

**Synopsis:** `bmo comment list <id>`

| Argument | Type | Description |
|----------|------|-------------|
| `<id>` | positional (required) | Issue ID |

**Example:**

```
bmo comment list BMO-3 --json
```

**JSON output** (`data` field): array of comment objects.

### bmo issue label add

Add a label to an issue. Creates the label if it does not already exist.

**Synopsis:** `bmo label add <id> <name> [--color <hex>]`

| Argument/Flag | Type | Default | Description |
|---------------|------|---------|-------------|
| `<id>` | positional (required) | | Issue ID |
| `<name>` | positional (required) | | Label name |
| `--color <hex>` | string | (none) | Label color in hex format (e.g. `#ff0000`) |

**Examples:**

```
bmo label add BMO-2 bug
bmo label add BMO-2 urgent --color "#ff0000" --json
```

**JSON output** (`data` field): the label object.

### bmo issue label rm

Remove a label from an issue. The label itself is not deleted from the system.

**Synopsis:** `bmo label rm <id> <name>`

Alias: `bmo issue label remove`

| Argument | Type | Description |
|----------|------|-------------|
| `<id>` | positional (required) | Issue ID |
| `<name>` | positional (required) | Label name |

**Example:**

```
bmo label rm BMO-2 bug
```

**JSON output** (`data` field): `null`.

### bmo issue label list

List all labels attached to an issue.

**Synopsis:** `bmo label list <id>`

| Argument | Type | Description |
|----------|------|-------------|
| `<id>` | positional (required) | Issue ID |

**Example:**

```
bmo label list BMO-2 --json
```

**JSON output** (`data` field): array of label objects.

### bmo issue label delete

Delete a label from the system entirely, removing it from all issues.

**Synopsis:** `bmo label delete <name>`

| Argument | Type | Description |
|----------|------|-------------|
| `<name>` | positional (required) | Label name |

**Example:**

```
bmo label delete obsolete-label
```

**JSON output** (`data` field): `null`.

### bmo issue link add

Add a directional relationship between two issues.

**Synopsis:** `bmo link add <from-id> <relation> <to-id>`

| Argument | Type | Description |
|----------|------|-------------|
| `<from-id>` | positional (required) | Source issue ID |
| `<relation>` | positional (required) | Relation kind (see enumerated values above) |
| `<to-id>` | positional (required) | Target issue ID |

**Examples:**

```
bmo link add BMO-1 blocks BMO-2
bmo link add 3 depends-on 1 --json
```

**JSON output** (`data` field): the created relation object.

### bmo issue link remove

Remove a relation by its numeric relation ID (not an issue ID).

**Synopsis:** `bmo link remove <relation-id>`

| Argument | Type | Description |
|----------|------|-------------|
| `<relation-id>` | positional (required) | Numeric relation ID (obtain from `bmo issue link list`) |

**Example:**

```
bmo link remove 7
```

**JSON output** (`data` field): `null`.

### bmo issue link list

List all relations for an issue.

**Synopsis:** `bmo link list <id>`

| Argument | Type | Description |
|----------|------|-------------|
| `<id>` | positional (required) | Issue ID |

**Example:**

```
bmo link list BMO-1 --json
```

**JSON output** (`data` field): array of relation objects.

### bmo issue file add

Attach a file path to an issue.

**Synopsis:** `bmo file add <id> <path>`

| Argument | Type | Description |
|----------|------|-------------|
| `<id>` | positional (required) | Issue ID |
| `<path>` | positional (required) | File path to attach |

**Example:**

```
bmo file add BMO-3 src/main.rs
bmo file add 3 docs/spec.md --json
```

**JSON output** (`data` field): the created file attachment object.

### bmo issue file rm

Remove a file attachment from an issue.

**Synopsis:** `bmo file rm <id> <path>`

Alias: `bmo issue file remove`

| Argument | Type | Description |
|----------|------|-------------|
| `<id>` | positional (required) | Issue ID |
| `<path>` | positional (required) | File path to remove |

**Example:**

```
bmo file rm BMO-3 src/main.rs
```

**JSON output** (`data` field): `null`.

### bmo issue file list

List all file attachments on an issue.

**Synopsis:** `bmo file list <id>`

| Argument | Type | Description |
|----------|------|-------------|
| `<id>` | positional (required) | Issue ID |

**Example:**

```
bmo file list BMO-3 --json
```

**JSON output** (`data` field): array of file attachment objects.

### bmo issue file conflicts

Show file conflicts: other in-progress issues that share one or more file attachments with
the given issue.

**Synopsis:** `bmo file conflicts <id>`

| Argument | Type | Description |
|----------|------|-------------|
| `<id>` | positional (required) | Issue ID |

Exit code is always `0` — conflict presence is information, not an error.

**Example:**

```
bmo file conflicts BMO-7
bmo file conflicts BMO-7 --json
```

**JSON output** (`data` field): array of conflict objects, empty array when no conflicts.

```json
[
  {
    "file": "src/auth.rs",
    "conflicts_with": [
      {"id": 12, "title": "Refactor auth middleware", "status": "in-progress"}
    ]
  }
]
```