The inso export spec
command extracts and exports the raw OpenAPI specification from the data store. If the --output
option is not specified, the specification will print to console.
inso export spec [identifier]
identifier
can be a specification name, or id. If this is not provided, you will be prompted to select a spec.
Option | Alias | Description |
---|---|---|
--output <path> |
-o | Save the specification to a file in the working directory. |
--workingDir <path> |
-w | Specify a working directory/file, to find .insomnia folder, *.db.json, export.yaml |
The following commands work when running in the example git-repo directory.
When you don’t specify any arguments, you’ll be prompted to choose a spec:
inso export spec
Scope exporting by the specification name or ID:
inso export spec spc_46c5a4
inso export spec "Sample Specification"
Save an exported configuration output to a file:
inso export spec spc_46c5a4 --output output.yaml
inso export spec spc_46c5a4 > output.yaml