We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 480ac54 commit b0f3a38Copy full SHA for b0f3a38
spectral/README.md
@@ -18,18 +18,17 @@ Alternatively you need to create new ruleset
18
echo 'extends: @rhoas/spectral-ruleset' > .spectral.yaml
19
```
20
21
-Run the Spectral CLI with yarn:
+Run the Spectral CLI with npx:
22
23
```shell
24
-yarn add @rhoas/spectral-ruleset
25
-yarn spectral lint ./path/to/openapi.yaml
+npx @rhoas/spectral-ruleset lint openapi.yaml
26
27
28
-or npm:
+or npm global:
29
30
31
-npm i -g @rhoas/spectral-ruleset
32
-spectral lint ./path/to/openapi.yaml
+npm i -g npx @rhoas/spectral-ruleset
+rhoasapi lint openapi.yaml
33
34
35
## Rules
0 commit comments