# Redocly CLI Cookbook A community collection of rulesets, configuration, custom plugins and other additions for [Redocly CLI](https://github.com/Redocly/redocly-cli). We know our users have some great tips, examples, and code to share, and this is the place to do just that. We would love to have your [contributions](#contributing) here too! > [!IMPORTANT] > Redocly are the repository maintainers, but we can't thoroughly test everything here. > Please browse, share, and use what you find at your own risk. If you're new to Redocly CLI, start with the [documentation](https://redocly.com/docs/cli/) to get up and running, then come back here to pick out any elements you would like to re-use yourself. To keep up with new developments, either subscribe to the project repository, or [sign up for the Redocly product newsletter](https://redocly.com/product-updates/). ## Usage Use the content here as a starting point for your own work. 1. Take a look at what's available in each category, and pick any that you think apply to your situation. 2. Each section links to the documentation for that feature, in case you need an introduction or refresher. 3. Copy and paste the examples you want to use into your own setup, then edit them to fit your own needs. If you come up with something new, please consider sharing it here by opening a pull request. ## Categories ### Rulesets Combine existing [built-in rules](https://redocly.com/docs/cli/rules/built-in-rules/) or configurable rules in ways that serve a specific purpose, and make a [reusable ruleset](https://redocly.com/docs/cli/guides/configure-rules/#create-a-reusable-ruleset). - [Spec-compliant ruleset](./rulesets/spec-compliant/) - built-in rules that keep a description close to the specification. - [Spot common mistakes](./rulesets/common-mistakes/) - extends the spec-compliant ruleset with checks for common oversights. - [Security ruleset](./rulesets/security/) - configurable rules that add some defensive checks to your description. ### Configurable rules There are some fantastic examples of [configurable rules](https://redocly.com/docs/cli/rules/configurable-rules/) in the wild. We hope the list here inspires you to share more of your own! - [Ban certain words from descriptions](./configurable-rules/description-banned-words/) - [Require `items` field for schemas of type `array`](./configurable-rules/required-items-for-array-schemas/) - [Ensure sentence case in operation summaries](./configurable-rules/operation-summary-sentence-case/) - [`POST` SHOULD define `requestBody` schema](./configurable-rules/operation-post-should-define-request-body/) - [`GET` SHOULD NOT define `requestBody` schema](./configurable-rules/operation-get-should-not-define-requestBody/) - [`DELETE` SHOULD NOT define `requestBody` schema](./configurable-rules/operation-delete-should-not-define-requestBody/) - [Info section must have a description](./configurable-rules/info-description/) - [No `