Skip to content
Status

Technical Reference / speakeasy stage openapi

speakeasy stage openapi

Stage an OpenAPI document to a deployment configuration.

The speakeasy stage openapi command stages an OpenAPI document to a deployment configuration.

For more information on the base behavior of the speakeasy stage command, see the speakeasy stage reference.

Terminal window
speakeasy stage openapi --slug my-openapi-doc --location ./path/to/openapi.yaml

This specifies a slug to identify the source of the OpenAPI document.

Terminal window
speakeasy stage openapi --slug my-openapi-doc [command options]

This specifies the location of an OpenAPI document (in JSON or YAML format). The location can be a local file or a URL.

Terminal window
speakeasy stage openapi --location ./path/to/openapi.yaml [command options]

This adds a human-readable name for the source. If not specified, the name defaults to the slug.

Terminal window
speakeasy stage openapi --name "My OpenAPI Document" [command options]