Skip to content

Commit b0f3a38

Browse files
authored
chore: update docs
1 parent 480ac54 commit b0f3a38

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

spectral/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,17 @@ Alternatively you need to create new ruleset
1818
echo 'extends: @rhoas/spectral-ruleset' > .spectral.yaml
1919
```
2020
21-
Run the Spectral CLI with yarn:
21+
Run the Spectral CLI with npx:
2222
2323
```shell
24-
yarn add @rhoas/spectral-ruleset
25-
yarn spectral lint ./path/to/openapi.yaml
24+
npx @rhoas/spectral-ruleset lint openapi.yaml
2625
```
2726

28-
or npm:
27+
or npm global:
2928

3029
```shell
31-
npm i -g @rhoas/spectral-ruleset
32-
spectral lint ./path/to/openapi.yaml
30+
npm i -g npx @rhoas/spectral-ruleset
31+
rhoasapi lint openapi.yaml
3332
```
3433

3534
## Rules

0 commit comments

Comments
 (0)