1 | # @stoplight/cli
|
2 |
|
3 | ![publish demo](./public/demo.gif)
|
4 |
|
5 | ## Usage
|
6 |
|
7 | ```bash
|
8 | # Install the Stoplight CLI
|
9 | npm install -g @stoplight/cli
|
10 |
|
11 | # Output a list of commands
|
12 | stoplight --help
|
13 | ```
|
14 |
|
15 | ## Commands
|
16 |
|
17 | ### publish
|
18 |
|
19 | Analyzes a directory of files and publishes the APIs, models, and docs to Stoplight
|
20 |
|
21 | ```bash
|
22 | stoplight publish --help
|
23 |
|
24 | Usage: stoplight publish [options]
|
25 |
|
26 | Analyzes a directory of files and publishes the APIs, models, and docs to Stoplight
|
27 |
|
28 | Options:
|
29 | -t, --token <token> Project CI token
|
30 | -p, --project <project> Project SRN (ex. gh/stoplightio/studio)
|
31 | -g, --group <group> Project group name
|
32 | -d, --directory <directory> Directory to analyze
|
33 | --url <url> Stoplight API (default: "https://stoplight.io/api")
|
34 | --verbose Enable detailed logging
|
35 | --dry-run Output analyze result without publishing
|
36 | -h, --help Output usage information
|
37 | ```
|
38 |
|
39 | ## Development
|
40 |
|
41 | ```bash
|
42 | # Build the CLI commands
|
43 | yarn build
|
44 |
|
45 | # Re-install the CLI globally
|
46 | npm rm -g && npm i -g
|
47 | ```
|
48 |
|
49 | ## Support
|
50 |
|
51 | If you have a bug or feature request, please [create an issue](https://github.com/stoplightio/stoplight-cli/issues).
|
52 |
|
53 | If you need help using the CLI or have a support question, please use the [Stoplight Community forum](https://community.stoplight.io).
|
54 |
|
55 | If you want to discuss something in private, you can reach out to Stoplight support at [support@stoplight.io](mailto:support@stoplight.io).
|