You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-Path to the OAS description file. If the file name is not provided, the default name is used - `auto-generate.arazzo.yaml`. Example: `npx @redocly/cli generate-arazzo OAS-file.yaml -o=example.arazzo.yaml`
38
+
-Name for the generated output file. Defaults to `auto-generated.arazzo.yaml`**If the file already exists, it's overwritten.** See the [specify output file](#specify-output-file) section.
39
39
40
40
{% /table %}
41
41
42
42
## Examples
43
43
44
44
Run the command: `npx @redocly/cli generate-arazzo 'https://warp-single-sidebar.redocly.app/_spec/apis/index.yaml'`
45
45
46
-
The command generates a`auto-generate.arazzo.yaml` file in the current directory.
46
+
The command generates an`auto-generated.arazzo.yaml` file in the current directory.
47
47
48
48
The contents of the generated file are:
49
49
50
-
```yaml {% title="auto-generate.arazzo.yaml" %}
50
+
```yaml {% title="auto-generated.arazzo.yaml" %}
51
51
arazzo: 1.0.1
52
52
info:
53
53
title: Warp API
@@ -115,6 +115,14 @@ workflows:
115
115
116
116
The generated file is not a complete test file and needs to be extended to be functional.
117
117
118
+
### Specify output file
119
+
120
+
By default, the CLI tool writes the generated file as `auto-generated.arazzo.yaml` in the current working directory. Use the optional `--output` argument to provide an alternative output file path.
0 commit comments