mirror of
https://github.com/LukeHagar/redocly-cli.git
synced 2025-12-10 12:47:49 +00:00
sync: Synced local 'docs/' with remote 'docs/cli/'
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
Choose the most appropriate installation method for your needs:
|
Choose the most appropriate installation method for your needs:
|
||||||
|
|
||||||
* [Install locally, using `npm` or `yarn`](#local) to make the `redocly` command available on your system.
|
* [Install locally, using `npm` or `yarn`](#install-globally) to make the `redocly` command available on your system.
|
||||||
* [Use `npx` to get the tool at runtime](#runtime) rather than installing it.
|
* [Use `npx` to get the tool at runtime](#use-npx-at-runtime) rather than installing it.
|
||||||
* The command is also [available via Docker](#docker) if you'd prefer to use it that way.
|
* The command is also [available via Docker](#docker) if you'd prefer to use it that way.
|
||||||
|
|
||||||
## Install globally
|
## Install globally
|
||||||
@@ -34,7 +34,7 @@ npx @redocly/cli <command> [options]
|
|||||||
npx @redocly/cli@latest lint petstore.yaml
|
npx @redocly/cli@latest lint petstore.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
## Run commands inside Docker
|
## <a id="docker"></a>Run commands inside Docker
|
||||||
|
|
||||||
To give a Docker container access to your OpenAPI definition files, you need to mount the containing directory as a volume. Assuming the definition is in the current working directory, the command to use is:
|
To give a Docker container access to your OpenAPI definition files, you need to mount the containing directory as a volume. Assuming the definition is in the current working directory, the command to use is:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user