cmn-hypha 0.3.0

CMN CLI tool — spawn, grow, release, taste, bond, and absorb spores on the Code Mycelial Network
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
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
<!-- Generated. Do not edit by hand. -->

# Hypha CLI Reference

> Regenerate with `hypha --help --recursive --output markdown`.

# hypha - CMN Client - A bio-digital extension for Visitors to release and absorb Spores

```text
CMN Client - A bio-digital extension for Visitors to release and absorb Spores

Usage: hypha [OPTIONS] <COMMAND>

Commands:
  sense      Resolve a CMN URI and show metadata without downloading
  taste      Evaluate spore: download for review, or record a verdict
  spawn      Create a working copy of a spore (auto-detects best distribution format)
  grow       Pull latest changes from spawn source via Synapse lineage
  absorb     Prepare spores for AI-assisted merge
  bond       Fetch all bonds from spore.core.json to .cmn/bonds/
  replicate  Copy a spore to your domain (same hash, re-signed capsule)
  hatch      Create or update spore.core.json in working directory
  release    Sign and publish spore to mycelium site
  lineage    Trace spore lineage: descendants (in, default) or ancestors (out)
  search     Search for spores by keyword (semantic search via Synapse)
  mycelium   Manage local mycelium site
  synapse    Manage Synapse node connections
  cache      Manage local cache
  config     View or modify hypha configuration
  skill      Install, uninstall, or inspect the bundled Hypha agent skill

Options:
  -o, --output <OUTPUT>
          Output format: json (default), yaml, plain; help also accepts markdown

          [default: json]

      --log <LOG>
          Log categories (comma-separated): startup, request, ...

  -h, --help
          Print help. Add --recursive to expand every nested subcommand; add --output json|yaml|markdown to render this help in another format.

  -V, --version
          Print version

All output follows Agent-First Data format:
  {"code": "ok", "result": {...}, "trace": {...}}

Quick start (try with cmn.dev):
  hypha sense cmn://cmn.dev
  hypha sense cmn://cmn.dev/b3.3yMR7vZQ9hL2xKJdFtN8wPcB6sY1mXgU4eH5pTa2
  hypha spawn cmn://cmn.dev/b3.3yMR7vZQ9hL2xKJdFtN8wPcB6sY1mXgU4eH5pTa2
  hypha cache list

More help:
  hypha <command> --help   Show one command layer
  hypha --help --recursive Expand every command and flag
  hypha --help --recursive --output markdown
                            Generate recursive Markdown reference
```

## hypha sense - Resolve a CMN URI and show metadata without downloading

```text
Resolve a CMN URI and show metadata without downloading

Usage: sense [OPTIONS] <URI>

Arguments:
  <URI>
          CMN URI (cmn://DOMAIN or cmn://DOMAIN/HASH)

Options:
      --id <ID>
          Spore id to resolve from the domain's latest mycelium inventory

  -h, --help
          Print help (see a summary with '-h')

URI types:
  cmn://DOMAIN                       List all spores on a site
  cmn://DOMAIN/HASH                  View a specific spore
  cmn://DOMAIN --id SPORE_ID         View latest spore with id from a site

Examples:
  hypha sense cmn://cmn.dev
  hypha sense cmn://cmn.dev --id cmn-spec
  hypha sense cmn://cmn.dev/b3.3yMR7vZQ9hL2xKJdFtN8wPcB6sY1mXgU4eH5pTa2
  hypha sense cmn://cmn.dev -o yaml
```

## hypha taste - Evaluate spore: download for review, or record a verdict

```text
Evaluate spore: download for review, or record a verdict

Usage: taste [OPTIONS] <URI>

Arguments:
  <URI>
          CMN URI (e.g., cmn://cmn.dev/HASH)

Options:
      --verdict <VERDICT>
          Record verdict: sweet, fresh, safe, rotten, or toxic

      --notes <NOTES>
          Notes about the verdict

      --synapse <SYNAPSE>
          Synapse URL to pull/share taste reports

      --synapse-token-secret <SYNAPSE_TOKEN_SECRET>
          Auth token for synapse (overrides configured token)

      --domain <DOMAIN>
          Domain to sign report with (requires --synapse and --verdict)

  -h, --help
          Print help (see a summary with '-h')

Without --verdict: downloads the spore for local review.
With --verdict: records a verdict (sweet, fresh, safe, rotten, toxic).

Examples:
  hypha taste cmn://cmn.dev/b3.3yMR7vZQ9hL2xKJdFtN8wPcB6sY1mXgU4eH5pTa2
  hypha taste cmn://cmn.dev/b3.3yMR7vZQ9hL2xKJdFtN8wPcB6sY1mXgU4eH5pTa2 --verdict safe --notes "Reviewed: clean code"
  hypha taste cmn://cmn.dev/b3.3yMR7vZQ9hL2xKJdFtN8wPcB6sY1mXgU4eH5pTa2 --verdict safe --domain cmn.dev --synapse https://synapse.cmn.dev
```

## hypha spawn - Create a working copy of a spore (auto-detects best distribution format)

```text
Create a working copy of a spore (auto-detects best distribution format)

Usage: spawn [OPTIONS] <URI> [DIRECTORY]

Arguments:
  <URI>
          CMN URI (e.g., cmn://cmn.dev/HASH)

  [DIRECTORY]
          Target directory (default: ./<spore-id>)

Options:
      --vcs <TYPE>
          Initialize version control after spawn (e.g., --vcs git)

          [possible values: git, none]

      --dist <SOURCE>
          Preferred distribution source: archive (default) or git

          [possible values: archive, git]

      --bond
          Fetch bonds after spawn

  -h, --help
          Print help (see a summary with '-h')

Distribution sources (auto-detected):
  archive    Download .tar.zst archive (default, fastest)
  git        Clone from dist.git URL if available

Examples:
  hypha spawn cmn://cmn.dev/b3.3yMR7vZQ9hL2xKJdFtN8wPcB6sY1mXgU4eH5pTa2
  hypha spawn cmn://cmn.dev/b3.3yMR7vZQ9hL2xKJdFtN8wPcB6sY1mXgU4eH5pTa2 my-project --vcs git
  hypha spawn cmn://cmn.dev/b3.3yMR7vZQ9hL2xKJdFtN8wPcB6sY1mXgU4eH5pTa2 --dist git
```

## hypha grow - Pull latest changes from spawn source via Synapse lineage

```text
Pull latest changes from spawn source via Synapse lineage

Usage: grow [OPTIONS]

Options:
      --dist <SOURCE>
          Override distribution source: archive or git

          [possible values: archive, git]

      --synapse <SYNAPSE>
          Synapse to query for updates (domain or URL)

      --synapse-token-secret <SYNAPSE_TOKEN_SECRET>
          Auth token for synapse (overrides configured token)

      --bond
          Also check depends_on/follows/extends bonds for updates via Synapse lineage, and fetch all bonds to .cmn/bonds/

  -h, --help
          Print help (see a summary with '-h')

Run inside a previously spawned directory to update it.
Uses Synapse lineage to discover newer versions from the same publisher.

If local files have been modified (git dirty or tree hash mismatch),
grow refuses to overwrite them and shows the cache path for manual merge.

Examples:
  hypha grow
  hypha grow --synapse synapse.cmn.dev
  hypha grow --dist git
  hypha grow --dist archive
  hypha grow --bond --synapse synapse.cmn.dev
```

## hypha absorb - Prepare spores for AI-assisted merge

```text
Prepare spores for AI-assisted merge

Usage: absorb [OPTIONS] [URIS]...

Arguments:
  [URIS]...
          CMN URIs to absorb (e.g., cmn://cmn.dev/HASH)

Options:
      --discover
          Auto-discover descendants from current spore's spawned_from bonds

      --synapse <SYNAPSE>
          Synapse server URL (required with --discover)

      --synapse-token-secret <SYNAPSE_TOKEN_SECRET>
          Auth token for synapse (overrides configured token)

      --max-depth <MAX_DEPTH>
          Maximum depth for lineage discovery (default: 10)

          [default: 10]

  -h, --help
          Print help (see a summary with '-h')

Absorb downloads spores into .cmn/absorb/ for AI-assisted merge.
Use --discover to auto-discover descendants via Synapse.

Examples:
  hypha absorb cmn://cmn.dev/b3.3yMR7vZQ9hL2xKJdFtN8wPcB6sY1mXgU4eH5pTa2
  hypha absorb --discover --synapse https://synapse.cmn.dev
  hypha absorb --discover --synapse https://synapse.cmn.dev --max-depth 5
```

## hypha bond - Fetch all bonds from spore.core.json to .cmn/bonds/

```text
Fetch all bonds from spore.core.json to .cmn/bonds/

Usage: bond [OPTIONS]

Options:
      --clean
          Clean orphaned bonds not in spore.core.json

      --status
          Show bond status without fetching

  -h, --help
          Print help (see a summary with '-h')

Examples:
  hypha bond
  hypha bond --status
  hypha bond --clean
```

## hypha replicate - Copy a spore to your domain (same hash, re-signed capsule)

```text
Copy a spore to your domain (same hash, re-signed capsule)

Usage: replicate [OPTIONS] --domain <DOMAIN> [URIS]...

Arguments:
  [URIS]...
          CMN URI(s) to replicate

Options:
      --refs
          Replicate all non-self bonds from spore.core.json

      --domain <DOMAIN>
          Target domain (required)

      --site-path <SITE_PATH>
          Custom site directory

  -h, --help
          Print help (see a summary with '-h')

Replicates spores from another domain to yours. The hash stays the same
because core + core_signature are preserved. Only capsule_signature changes.

Examples:
  hypha replicate cmn://other.dev/HASH --domain my.dev
  hypha replicate --refs --domain my.dev
```

## hypha hatch - Create or update spore.core.json in working directory

```text
Create or update spore.core.json in working directory

Usage: hatch [OPTIONS]
       hatch <COMMAND>

Commands:
  bond  Manage bonds in spore.core.json
  tree  Manage tree configuration in spore.core.json
  help  Print this message or the help of the given subcommand(s)

Options:
      --id <ID>
          Opaque identifier stored in spore.core.json

      --version <VERSION>
          Version string (e.g., 1.0.0)

      --name <NAME>
          Display name

      --domain <DOMAIN>
          Publisher domain

      --synopsis <SYNOPSIS>
          Short description

      --intent <INTENT>
          Why this spore exists — permanent across releases (repeatable)

      --mutations <MUTATIONS>
          What changed relative to the spawned-from parent (repeatable)

      --license <LICENSE>
          License (SPDX identifier)

  -h, --help
          Print help (see a summary with '-h')

Examples:
  hypha hatch --id my-tool --name "My Tool" --synopsis "A useful tool"
  hypha hatch --intent "Provide a reusable HTTP client for CMN agents" --mutations "Initial release"
  hypha hatch --license MIT --domain cmn.dev

Subcommands:
  hypha hatch bond set/remove/clear   Manage bonds in spore.core.json
  hypha hatch tree set/show            Manage tree configuration
```

### hypha hatch bond - Manage bonds in spore.core.json

```text
Manage bonds in spore.core.json

Usage: bond <COMMAND>

Commands:
  set     Add or update a bond (upsert by URI)
  remove  Remove bonds by URI and/or relation
  clear   Remove all bonds
  help    Print this message or the help of the given subcommand(s)

Options:
  -h, --help
          Print help (see a summary with '-h')

Examples:
  hypha hatch bond set --uri cmn://cmn.dev/b3.abc --relation follows --id my-lib --reason "Core library"
  hypha hatch bond set --uri cmn://cmn.dev/b3.abc --with 'mints=["https://mint.example.com"]'
  hypha hatch bond remove --relation follows
  hypha hatch bond clear
```

#### hypha hatch bond set - Add or update a bond (upsert by URI)

```text
Add or update a bond (upsert by URI)

Usage: set [OPTIONS] --uri <URI>

Options:
      --uri <URI>
          Bond URI (match key)

      --relation <RELATION>
          Bond relation (required for new bonds)

      --id <ID>
          Bond id

      --reason <REASON>
          Bond reason

      --with <KEY=VALUE>
          Bond parameters (KEY=VALUE, value is parsed as JSON; repeatable)

  -h, --help
          Print help
```

#### hypha hatch bond remove - Remove bonds by URI and/or relation

```text
Remove bonds by URI and/or relation

Usage: remove [OPTIONS]

Options:
      --uri <URI>
          Remove bonds matching this URI

      --relation <RELATION>
          Remove bonds matching this relation

  -h, --help
          Print help
```

#### hypha hatch bond clear - Remove all bonds

```text
Remove all bonds

Usage: clear

Options:
  -h, --help
          Print help
```

### hypha hatch tree - Manage tree configuration in spore.core.json

```text
Manage tree configuration in spore.core.json

Usage: tree <COMMAND>

Commands:
  set   Set tree configuration fields
  show  Show current tree configuration
  help  Print this message or the help of the given subcommand(s)

Options:
  -h, --help
          Print help
```

#### hypha hatch tree set - Set tree configuration fields

```text
Set tree configuration fields

Usage: set [OPTIONS]

Options:
      --algorithm <ALGORITHM>
          Hash algorithm (e.g., blob_tree_blake3_nfc)

      --exclude-names <EXCLUDE_NAMES>...
          File/directory names to exclude from hashing (repeatable)

      --follow-rules <FOLLOW_RULES>...
          Ignore-rule files to follow (repeatable)

  -h, --help
          Print help
```

#### hypha hatch tree show - Show current tree configuration

```text
Show current tree configuration

Usage: show

Options:
  -h, --help
          Print help
```

## hypha release - Sign and publish spore to mycelium site

```text
Sign and publish spore to mycelium site

Usage: release [OPTIONS] --domain <DOMAIN>

Options:
      --domain <DOMAIN>
          Target domain (required)

      --source <SOURCE>
          Spore source directory (default: current directory)

      --site-path <SITE_PATH>
          Custom site directory (default: ~/.cmn/mycelium/<domain>)

      --dist-git <DIST_GIT>
          External git repository URL

      --dist-ref <DIST_REF>
          Git ref: tag/branch/commit (requires --dist-git)

      --archive <FORMAT>
          Archive format for release generation (currently only: zstd)

          [default: zstd]

      --dry-run
          Pre-compute URI without writing any files

  -h, --help
          Print help (see a summary with '-h')

Requires `hypha mycelium root` first to set up the site.

Examples:
  hypha release --domain cmn.dev
  hypha release --domain cmn.dev --source ./my-spore
  hypha release --domain cmn.dev --dry-run          # pre-compute URI without releasing
  hypha release --domain cmn.dev --archive zstd
  hypha release --domain cmn.dev --dist-git https://github.com/user/repo --dist-ref v1.0
```

## hypha lineage - Trace spore lineage: descendants (in, default) or ancestors (out)

```text
Trace spore lineage: descendants (in, default) or ancestors (out)

Usage: lineage [OPTIONS] <URI>

Arguments:
  <URI>
          CMN URI (e.g., cmn://cmn.dev/HASH)

Options:
      --direction <DIRECTION>
          Direction: in (descendants, default) or out (ancestors)

          [possible values: in, out]

      --synapse <SYNAPSE>
          Synapse server (domain or URL, default: configured default)

      --synapse-token-secret <SYNAPSE_TOKEN_SECRET>
          Auth token for synapse (overrides configured token)

      --max-depth <MAX_DEPTH>
          Maximum traversal depth (default: 10)

          [default: 10]

  -h, --help
          Print help (see a summary with '-h')

Direction:
  --direction in   Find descendants / forks (default)
  --direction out  Trace ancestors / spawn chain

Examples:
  hypha lineage cmn://cmn.dev/b3.3yMR7vZQ9hL2xKJdFtN8wPcB6sY1mXgU4eH5pTa2 --synapse https://synapse.cmn.dev
  hypha lineage cmn://cmn.dev/b3.3yMR7vZQ9hL2xKJdFtN8wPcB6sY1mXgU4eH5pTa2 --direction out --synapse https://synapse.cmn.dev
  hypha lineage cmn://cmn.dev/b3.3yMR7vZQ9hL2xKJdFtN8wPcB6sY1mXgU4eH5pTa2 --synapse https://synapse.cmn.dev --max-depth 5
```

## hypha search - Search for spores by keyword (semantic search via Synapse)

```text
Search for spores by keyword (semantic search via Synapse)

Usage: search [OPTIONS] <QUERY>

Arguments:
  <QUERY>
          Search query text

Options:
      --synapse <SYNAPSE>
          Synapse server (domain or URL, default: configured default)

      --synapse-token-secret <SYNAPSE_TOKEN_SECRET>
          Auth token for synapse (overrides configured token)

      --domain <DOMAIN>
          Filter by domain

      --license <LICENSE>
          Filter by license (SPDX identifier)

      --bonds <BONDS>
          Filter by bond relationship (format: relation:uri, comma-separated for AND)

      --limit <LIMIT>
          Maximum results (default: 20)

          [default: 20]

  -h, --help
          Print help (see a summary with '-h')

Examples:
  hypha search "protocol spec" --synapse https://synapse.cmn.dev
  hypha search "data format" --synapse https://synapse.cmn.dev --domain cmn.dev
  hypha search "agent tools" --synapse https://synapse.cmn.dev --license MIT --limit 5
  hypha search "http client" --bonds spawned_from:cmn://cmn.dev/b3.abc123
```

## hypha mycelium - Manage local mycelium site

```text
Manage local mycelium site

Usage: mycelium <COMMAND>

Commands:
  root      Establish a new site for a domain (or update existing)
  status    Show site status
  serve     Start a local HTTP server to serve the site (for debugging)
  nutrient  Manage nutrient methods (add/remove/clear)
  pulse     Send a pulse to a synapse indexer
  help      Print this message or the help of the given subcommand(s)

Options:
  -h, --help
          Print help
```

### hypha mycelium root - Establish a new site for a domain (or update existing)

```text
Establish a new site for a domain (or update existing)

Usage: root [OPTIONS] [DOMAIN]

Arguments:
  [DOMAIN]
          Domain name (auto-computed when --hub is used)

Options:
      --hub <HUB>
          Hub domain (e.g., cmnhub.com). Generates a key, computes subdomain from pubkey (ed-<base32>), and sets domain + endpoints automatically

      --site-path <SITE_PATH>
          Custom site directory (default: ~/.cmn/mycelium/<domain>)

      --name <NAME>
          Site or author name

      --synopsis <SYNOPSIS>
          Brief description of the site or author

      --bio <BIO>
          Bio (markdown)

      --endpoints-base <ENDPOINTS_BASE>
          Base URL for endpoints (e.g., https://example.com)

  -h, --help
          Print help (see a summary with '-h')

Creates ~/.cmn/mycelium/<domain>/ with key pair and site structure.
Run this once before `hypha release`.

With --hub, creates a taste-only account on a hosted hub (e.g. cmnhub.com):
  1. Generates ed25519 key pair
  2. Computes subdomain from pubkey (ed-<base32>.hub)
  3. Creates taste-only cmn.json with taste endpoint
  4. Registers hub as a synapse node
  5. Sets [defaults.taste] so `hypha taste` auto-submits

After --hub, register with the hub then taste without extra flags:
  curl -X POST https://cmnhub.com/synapse/pulse -H 'Content-Type: application/json' \
    -d @~/.cmn/mycelium/ed-xxx.cmnhub.com/public/.well-known/cmn.json
  hypha taste cmn://example.com/b3.HASH --verdict safe

Examples:
  hypha mycelium root cmn.dev --name "CMN" --synopsis "Code Mycelial Network"
  hypha mycelium root cmn.dev --endpoints-base https://cmn.dev
  hypha mycelium root example.com --site-path /custom/path
  hypha mycelium root --hub cmnhub.com
```

### hypha mycelium status - Show site status

```text
Show site status

Usage: status [OPTIONS] [DOMAIN]

Arguments:
  [DOMAIN]
          Domain name (optional, lists all if not specified)

Options:
      --site-path <SITE_PATH>
          Custom site directory

      --id <ID>
          Spore id to resolve from the local mycelium inventory

  -h, --help
          Print help (see a summary with '-h')

Examples:
  hypha mycelium status
  hypha mycelium status cmn.dev
  hypha mycelium status cmn.dev --id cmn-spec --site-path deploy/cmn.dev
```

### hypha mycelium serve - Start a local HTTP server to serve the site (for debugging)

```text
Start a local HTTP server to serve the site (for debugging)

Usage: serve [OPTIONS] [DOMAIN]

Arguments:
  [DOMAIN]
          Domain name

Options:
      --site-path <SITE_PATH>
          Custom site directory

      --port <PORT>
          Port to listen on (default: 8080)

          [default: 8080]

  -h, --help
          Print help (see a summary with '-h')

Examples:
  hypha mycelium serve
  hypha mycelium serve cmn.dev --port 3000
```

### hypha mycelium nutrient - Manage nutrient methods (add/remove/clear)

```text
Manage nutrient methods (add/remove/clear)

Usage: nutrient <COMMAND>

Commands:
  add     Add or update a nutrient method (upsert by type)
  remove  Remove a nutrient method by type
  clear   Remove all nutrient methods
  help    Print this message or the help of the given subcommand(s)

Options:
  -h, --help
          Print help (see a summary with '-h')

Examples:
  hypha mycelium nutrient add cmn.dev --type lightning_address --with address=user@example.com
  hypha mycelium nutrient add cmn.dev --type url --with url=https://example.com --with label=Donate
  hypha mycelium nutrient remove cmn.dev --type url
  hypha mycelium nutrient clear cmn.dev
```

#### hypha mycelium nutrient add - Add or update a nutrient method (upsert by type)

```text
Add or update a nutrient method (upsert by type)

Usage: add [OPTIONS] --type <TYPE> <DOMAIN>

Arguments:
  <DOMAIN>
          Domain name

Options:
      --type <TYPE>
          Nutrient method type (e.g., lightning_address, url, evm, solana)

      --with <KEY=VALUE>
          Nutrient parameters (KEY=VALUE, value is parsed as JSON; repeatable)

      --site-path <SITE_PATH>
          Custom site directory

  -h, --help
          Print help
```

#### hypha mycelium nutrient remove - Remove a nutrient method by type

```text
Remove a nutrient method by type

Usage: remove [OPTIONS] --type <TYPE> <DOMAIN>

Arguments:
  <DOMAIN>
          Domain name

Options:
      --type <TYPE>
          Nutrient method type to remove

      --site-path <SITE_PATH>
          Custom site directory

  -h, --help
          Print help
```

#### hypha mycelium nutrient clear - Remove all nutrient methods

```text
Remove all nutrient methods

Usage: clear [OPTIONS] <DOMAIN>

Arguments:
  <DOMAIN>
          Domain name

Options:
      --site-path <SITE_PATH>
          Custom site directory

  -h, --help
          Print help
```

### hypha mycelium pulse - Send a pulse to a synapse indexer

```text
Send a pulse to a synapse indexer

Usage: pulse [OPTIONS] --file <FILE>

Options:
      --synapse <SYNAPSE>
          Synapse server (domain or URL, default: configured default)

      --synapse-token-secret <SYNAPSE_TOKEN_SECRET>
          Auth token for synapse (overrides configured token)

      --file <FILE>
          Path to signed mycelium.json

  -h, --help
          Print help (see a summary with '-h')

Examples:
  hypha mycelium pulse --synapse synapse.cmn.dev --file ~/.cmn/mycelium/cmn.dev/public/cmn/mycelium/<hash>.json
  hypha mycelium pulse --synapse https://synapse.cmn.dev --file ~/.cmn/mycelium/cmn.dev/public/cmn/mycelium/<hash>.json
```

## hypha synapse - Manage Synapse node connections

```text
Manage Synapse node connections

Usage: synapse <COMMAND>

Commands:
  discover  Discover Synapse instances via the network
  list      List configured Synapse nodes
  health    Check health of a Synapse instance
  add       Add a Synapse node
  remove    Remove a Synapse node
  use       Set default Synapse node
  config    Configure a Synapse node (token, etc.)
  help      Print this message or the help of the given subcommand(s)

Options:
  -h, --help
          Print help
```

### hypha synapse discover - Discover Synapse instances via the network

```text
Discover Synapse instances via the network

Usage: discover [OPTIONS]

Options:
      --synapse <SYNAPSE>
          Synapse to query (domain or URL, default: configured default)

      --synapse-token-secret <SYNAPSE_TOKEN_SECRET>
          Auth token for synapse (overrides configured token)

  -h, --help
          Print help (see a summary with '-h')

Examples:
  hypha synapse discover
  hypha synapse discover --synapse https://synapse.cmn.dev
```

### hypha synapse list - List configured Synapse nodes

```text
List configured Synapse nodes

Usage: list

Options:
  -h, --help
          Print help (see a summary with '-h')

Examples:
  hypha synapse list
```

### hypha synapse health - Check health of a Synapse instance

```text
Check health of a Synapse instance

Usage: health [OPTIONS] [SYNAPSE]

Arguments:
  [SYNAPSE]
          Synapse domain or URL (default: configured default)

Options:
      --synapse-token-secret <SYNAPSE_TOKEN_SECRET>
          Auth token for synapse (overrides configured token)

  -h, --help
          Print help (see a summary with '-h')

Examples:
  hypha synapse health
  hypha synapse health synapse.cmn.dev
  hypha synapse health https://synapse.cmn.dev
```

### hypha synapse add - Add a Synapse node

```text
Add a Synapse node

Usage: add <URL>

Arguments:
  <URL>
          Synapse URL

Options:
  -h, --help
          Print help (see a summary with '-h')

Examples:
  hypha synapse add https://synapse.cmn.dev
```

### hypha synapse remove - Remove a Synapse node

```text
Remove a Synapse node

Usage: remove <DOMAIN>

Arguments:
  <DOMAIN>
          Synapse domain

Options:
  -h, --help
          Print help (see a summary with '-h')

Examples:
  hypha synapse remove synapse.cmn.dev
```

### hypha synapse use - Set default Synapse node

```text
Set default Synapse node

Usage: use <DOMAIN>

Arguments:
  <DOMAIN>
          Synapse domain

Options:
  -h, --help
          Print help (see a summary with '-h')

Examples:
  hypha synapse use synapse.cmn.dev
```

### hypha synapse config - Configure a Synapse node (token, etc.)

```text
Configure a Synapse node (token, etc.)

Usage: config [OPTIONS] <DOMAIN>

Arguments:
  <DOMAIN>
          Synapse domain

Options:
      --token-secret <TOKEN_SECRET>
          Auth token (use empty string to clear)

  -h, --help
          Print help (see a summary with '-h')

Examples:
  hypha synapse config synapse.cmn.dev --token-secret sk-abc123
  hypha synapse config synapse.cmn.dev --token-secret ""    # clear token
```

## hypha cache - Manage local cache

```text
Manage local cache

Usage: cache <COMMAND>

Commands:
  list   List all cached spores
  clean  Remove old or all cached items
  path   Show local filesystem path for a cached spore
  help   Print this message or the help of the given subcommand(s)

Options:
  -h, --help
          Print help
```

### hypha cache list - List all cached spores

```text
List all cached spores

Usage: list

Options:
  -h, --help
          Print help (see a summary with '-h')

Examples:
  hypha cache list
  hypha cache list -o yaml
```

### hypha cache clean - Remove old or all cached items

```text
Remove old or all cached items

Usage: clean [OPTIONS]

Options:
      --all
          Remove all cached items

  -h, --help
          Print help (see a summary with '-h')

Examples:
  hypha cache clean --all
```

### hypha cache path - Show local filesystem path for a cached spore

```text
Show local filesystem path for a cached spore

Usage: path <URI>

Arguments:
  <URI>
          CMN URI (e.g., cmn://cmn.dev/HASH)

Options:
  -h, --help
          Print help (see a summary with '-h')

Examples:
  hypha cache path cmn://cmn.dev/b3.3yMR7vZQ9hL2xKJdFtN8wPcB6sY1mXgU4eH5pTa2
```

## hypha config - View or modify hypha configuration

```text
View or modify hypha configuration

Usage: config <COMMAND>

Commands:
  list  Show current configuration (merged defaults + config.toml)
  set   Set a configuration value
  help  Print this message or the help of the given subcommand(s)

Options:
  -h, --help
          Print help
```

### hypha config list - Show current configuration (merged defaults + config.toml)

```text
Show current configuration (merged defaults + config.toml)

Usage: list

Options:
  -h, --help
          Print help (see a summary with '-h')

Examples:
  hypha config list
  hypha config list -o yaml
```

### hypha config set - Set a configuration value

```text
Set a configuration value

Usage: set <KEY> <VALUE>

Arguments:
  <KEY>
          Config key (dotted path, e.g. cache.cmn_ttl_s)

  <VALUE>
          Value to set

Options:
  -h, --help
          Print help (see a summary with '-h')

Dotted keys map to TOML sections:
  cache.path            Custom cache directory
  cache.cmn_ttl_s       cmn.json cache TTL in seconds
  cache.key_trust_ttl_s Key trust cache TTL in seconds
  cache.key_trust_refresh_mode
                        Key trust refresh mode: expired | always | offline
  cache.key_trust_synapse_witness_mode
                        Key trust fallback when domain is offline: allow | require_domain
  cache.spore_max_download_bytes
                        Max spore archive download bytes
  cache.spore_max_extract_bytes
                        Max total bytes extracted from a spore archive
  cache.spore_max_extract_files
                        Max files extracted from a spore archive
  cache.spore_max_extract_file_bytes
                        Max bytes extracted for one spore archive file
  cache.spore_reject_path_components
                        TOML string array of protected received path components
  cache.clock_skew_tolerance_s
                        Clock skew tolerance in seconds for key trust TTL (default: 300)
  defaults.synapse      Default synapse domain
  defaults.domain       Default domain for publishing (release)
  defaults.taste.synapse
                        Synapse to submit taste reports to (overrides defaults.synapse for taste)
  defaults.taste.domain Domain to sign taste reports with (overrides defaults.domain for taste)

Examples:
  hypha config set cache.cmn_ttl_s 600
  hypha config set cache.key_trust_ttl_s 604800
  hypha config set cache.key_trust_refresh_mode offline
  hypha config set cache.key_trust_synapse_witness_mode require_domain
  hypha config set cache.spore_max_download_bytes 1073741824
  hypha config set cache.spore_reject_path_components '[".git", ".cmn"]'
  hypha config set cache.path /tmp/hypha-cache
  hypha config set defaults.synapse synapse.cmn.dev
  hypha config set defaults.taste.synapse cmnhub.com
  hypha config set defaults.taste.domain ed-xxx.cmnhub.com
```

## hypha skill - Install, uninstall, or inspect the bundled Hypha agent skill

```text
Install, uninstall, or inspect the bundled Hypha agent skill

Usage: skill <COMMAND>

Commands:
  status     Report whether the bundled Hypha skill is installed and current
  install    Install or refresh the bundled Hypha skill
  uninstall  Remove the bundled Hypha skill
  help       Print this message or the help of the given subcommand(s)

Options:
  -h, --help
          Print help (see a summary with '-h')

Examples:
  hypha skill status
  hypha skill install --agent codex
  hypha skill install --agent claude-code --scope project
  hypha skill uninstall --agent opencode --skills-dir /tmp/skills --force
```

### hypha skill status - Report whether the bundled Hypha skill is installed and current

```text
Report whether the bundled Hypha skill is installed and current

Usage: status [OPTIONS]

Options:
      --agent <AGENT>
          Agent target to manage

          [default: all]
          [possible values: all, codex, claude-code, opencode]

      --scope <SCOPE>
          Install scope

          [default: personal]
          [possible values: personal, project]

      --skills-dir <SKILLS_DIR>
          Explicit skills directory; requires a single --agent

      --force
          Overwrite or remove an unmanaged skill at the target path

  -h, --help
          Print help
```

### hypha skill install - Install or refresh the bundled Hypha skill

```text
Install or refresh the bundled Hypha skill

Usage: install [OPTIONS]

Options:
      --agent <AGENT>
          Agent target to manage

          [default: all]
          [possible values: all, codex, claude-code, opencode]

      --scope <SCOPE>
          Install scope

          [default: personal]
          [possible values: personal, project]

      --skills-dir <SKILLS_DIR>
          Explicit skills directory; requires a single --agent

      --force
          Overwrite or remove an unmanaged skill at the target path

  -h, --help
          Print help
```

### hypha skill uninstall - Remove the bundled Hypha skill

```text
Remove the bundled Hypha skill

Usage: uninstall [OPTIONS]

Options:
      --agent <AGENT>
          Agent target to manage

          [default: all]
          [possible values: all, codex, claude-code, opencode]

      --scope <SCOPE>
          Install scope

          [default: personal]
          [possible values: personal, project]

      --skills-dir <SKILLS_DIR>
          Explicit skills directory; requires a single --agent

      --force
          Overwrite or remove an unmanaged skill at the target path

  -h, --help
          Print help
```