braid rules
Manage rules in your braid account from the command line.
Subcommands
| Subcommand | Description |
|---|---|
list | List available rules for a scope |
get | Get a rule by ID |
create | Create a new rule |
update | Update a rule |
remove | Delete a rule |
enable | Enable a disabled rule |
disable | Disable a rule |
move | Move a rule to a different project |
duplicate | Duplicate a rule |
fork | Fork a rule (creates a linked copy) |
Sync subcommands
Rules can sync with upstream sources. These commands manage sync state:
| Subcommand | Description |
|---|---|
sync-status | Show sync status for one rule or all rules |
sync-history | Show sync history for a rule |
sync-enable | Enable sync for a rule |
sync-disable | Disable sync for a rule |
sync-check | Check for upstream updates |
sync-now | Run sync immediately |
Examples
Create a rule:
braid rules create \
--title "Conventional Commits" \
--content "Use conventional commits: type(scope): description" \
--tags "git,commits"
List rules with JSON output:
braid rules list --json
Fork a rule to another project:
braid rules fork --id <rule-id> --target-project-id <project-id>
Check sync status across all rules:
braid rules sync-status