Skip to content

gram stage openapi

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

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

Terminal window
gram 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
gram 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
gram stage openapi --location ./path/to/openapi.yaml [command options]

This adds a human-readable name for the source.

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