# bdy ruleset

> For AI agents: the complete documentation index is at https://buddy.works/llms.txt

## Usage

```bash
bdy ruleset|rs [options] [command]
```

Manage rulesets that protect branches and tags of a project

## Options

| **Option** | **Description** |
| :--- | :--- |
| `--context <name>` | Connection and scope context: default, git, link or a saved name. Overrides the globally active context for this invocation. |
| `--examples` | Show only examples; with this flag |
| `--format` | accepts text, json or jsonl |
| `--verbose` | Show REST API requests, responses, timing and retries on stderr |
| `-h, --help` | display help for command |

## Available Commands

| **Command** | **Description** |
| :--- | :--- |
| [create](https://buddy.works/docs/cli/ruleset/create.md) | Create a ruleset from YAML or JSON Required scopes: RULESET_MANAGE |
| [delete](https://buddy.works/docs/cli/ruleset/delete.md) | Delete a ruleset Required scopes: RULESET_MANAGE |
| [get](https://buddy.works/docs/cli/ruleset/get.md) | Show ruleset details Required scopes: RULESET_READ |
| [list](https://buddy.works/docs/cli/ruleset/list.md) | List rulesets of a project Required scopes: RULESET_READ |
| [update](https://buddy.works/docs/cli/ruleset/update.md) | Update a ruleset from YAML or JSON Required scopes: RULESET_MANAGE |

Documentation for bdy v1.26.5


---
Original source: https://buddy.works/docs/cli/ruleset