Files
redocly-cli/docs/commands/index.md
Lorna Jane Mitchell 909fb471ca Add Vale for prose linting (#1099)
* feat: Add Vale configuration and rules

* docs: Fix top-level files to match Vale rules

* docs: Vale updates for the commands docs

* docs: apply Vale updates to the decorator docs

* docs: Update guides to match Vale rules

* docs: update rules and other content to meet Vale standards

* docs: add Vale link and information to CONTRIBUTING

* feat: Add GitHub action for Vale

* docs: minor editing to readme.md

* docs: minor editing to the changelog.md file

* docs: minor edits to the join.md file in commands folder

* docs: minor edits to lint.md file in the commands directory

* docs: minor edit to the login.md file in the commands directory

* docs: minor edits to the preview.md file in the commands directory

* docs: minor edits to push.md file in the comands directory

* docs: minor edits to the info-description-override.md file in the decorators directory

* docs: minor edits to the configure-rules.md file in the guides directory

* docs: minor edits to custom-plugin.md file in the resources directory

* docs: minor editing to the no-http-verbs-in-paths.md file in the rules directory

---------

Co-authored-by: Heather Cloward <heathercloward@gmail.com>
2023-06-01 10:10:43 +01:00

62 lines
2.0 KiB
Markdown

---
tocMaxDepth: 2
---
# Redocly CLI commands
Documentation commands:
* [`preview-docs`](preview-docs.md) Preview API reference docs for the specified definition.
* [`build-docs`](build-docs.md) Build definition into an HTML file.
API management commands:
* [`stats`](stats.md) Gathering statistics for a document.
* [`bundle`](bundle.md) Bundle definition.
* [`split`](split.md) Split definition into a multi-file structure.
* [`join`](join.md) Join definitions [experimental feature].
Linting commands:
* [`lint`](lint.md) Lint definition.
Redocly platform commands:
* [`login`](login.md) Login to the Redocly API registry with an access token.
* [`logout`](logout.md) Clear your stored credentials for the Redocly API registry.
* [`push`](push.md) Push an API definition to the Redocly API registry.
Supporting commands:
* `completion` Generate completion script (includes install instructions).
## Additional options
There are some parameters supported by all commands:
`--version` displays the current version of `redocly`.
`--help` displays the command help, or the help for the subcommand if you used one. For example:
```bash
redocly lint --help
```
Try these with any of the other commands.
## Config file
Redocly CLI comes with one primary configuration file (`redocly.yaml`), also known as the Redocly configuration file.
This file defines all of the config options available to you, including the location of your files (for unbundling and bundling), and linting rules (for validation against the OpenAPI Specification).
The Redocly configuration file must sit in your root directory.
If Redocly CLI finds `redocly.yaml` in the root directory, it uses the options set in that file when executing commands.
You can also specify a config file to most commands using `--config myconfig.yaml` as part of the command. For example:
```bash
redocly lint --config redocly-official.yaml openapi.yaml
```
For more information, refer to the [Redocly configuration file](../configuration/index.mdx) docs.