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
The npm installs the binaries as both `raml-toolkit` and `ramlint` and they can be used interchangeably. You can always run with `--help` to get available options, currently the options are as follows.
31
+
Npm installs the binaries as both `raml-toolkit` and `ramlint` and they can be used interchangeably. You can always run with `--help` to get available options, currently the options are as follows.
30
32
31
-
###Commands
33
+
## Commands
32
34
33
35
**Note:** Some commands require environment variables to be set. This can be done using a [.env file](https://www.npmjs.com/package/dotenv#rules) in your working directory (the directory from which you run `raml-toolkit`).
-i, --inputSpec=OAS_spec_file Format of the output. Defaults to JSON if --out-file is specified,
53
+
otherwise text.
54
+
55
+
-o, --outputDir=output_dir The directory to place the generated API
56
+
57
+
-t, --templateDir=template_dir The directory with the mustache templates for generating the API
58
+
59
+
-c, --configFile=config_file A yaml file containing configurations for openapi-generator-cli. A default configuration will be used if this is not provided.
60
+
61
+
-g, --generator The generator. Defaults to `typescript-fetch`
62
+
63
+
--skipValidateSpec Generate API without validating the spec. Defaults to false.
64
+
```
65
+
66
+
#### `raml-toolkit diff BASE NEW -s oas`
67
+
68
+
**Note:** This command requires that oasdiff is installed. Install oasdiff according to https://github.com/oasdiff/oasdiff#installation
69
+
70
+
```txt
71
+
USAGE
72
+
$ raml-toolkit diff BASE NEW -s oas
73
+
74
+
ARGUMENTS
75
+
BASE The base API spec file or directory
76
+
NEW The new API spec file or directory
77
+
78
+
OPTIONS
79
+
-f, --format=(json|console) Format of the output. Defaults to JSON if --out-file is specified,
80
+
otherwise text.
81
+
82
+
-o, --out-file=out-file File to store the computed difference
83
+
84
+
--dir Find the differences for files in two directory trees
85
+
86
+
-s, --spec Toggles OAS mode. Set this to `oas`. Otherwise, the command will run the RAML version
87
+
```
88
+
89
+
### Commands for RAML
90
+
91
+
<!-- commands for RAML -->
36
92
-[`raml-toolkit diff BASE NEW`](#raml-toolkit-diff-base-new)
0 commit comments