UNPKG

1.47 kBMarkdownView Raw
1# @stoplight/cli
2
3![publish demo](./public/demo.gif)
4
5## Usage
6
7```bash
8# Install the Stoplight CLI
9npm install -g @stoplight/cli
10
11# Output a list of commands
12stoplight --help
13```
14
15## Commands
16
17### publish
18
19Analyzes a directory of files and publishes the APIs, models, and docs to Stoplight
20
21```bash
22stoplight publish --help
23
24Usage: stoplight publish [options]
25
26Analyzes a directory of files and publishes the APIs, models, and docs to Stoplight
27
28Options:
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
43yarn build
44
45# Re-install the CLI globally
46npm rm -g && npm i -g
47```
48
49## Support
50
51If you have a bug or feature request, please [create an issue](https://github.com/stoplightio/stoplight-cli/issues).
52
53If you need help using the CLI or have a support question, please use the [Stoplight Community forum](https://community.stoplight.io).
54
55If you want to discuss something in private, you can reach out to Stoplight support at [support@stoplight.io](mailto:support@stoplight.io).