braid docs

braid references

Manage reference files — supplementary files attached to rules that provide examples, schemas, or other context.

Subcommands

SubcommandDescription
listList references for a rule
getGet a reference by ID
createAttach a file as a reference to a rule
updateUpdate reference metadata or replace the file
removeRemove a reference
reorderReorder references within a rule

Examples

Attach a reference file to a rule:

braid references create --rule-id <id> --file ./examples/good-pattern.ts

Reorder references:

braid references reorder --rule-id <id> --ordered-ids ref1,ref2,ref3