# gram stage openapi

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

<Callout className="mt-8!">
    For more information on the base behavior of the `gram stage` command, see the
    [`gram stage` reference](/docs/mcp/reference/command-line/stage).
</Callout>

## Usage

```bash
gram stage openapi --slug my-openapi-doc --location ./path/to/openapi.yaml
```

## Options

### <code>slug</code> (required)

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

```bash
gram stage openapi --slug my-openapi-doc [command options]
```

### <code>location</code> (required)

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

```bash
gram stage openapi --location ./path/to/openapi.yaml [command options]
```

### <code>name</code>

This adds a human-readable name for the source.

```bash
gram stage openapi --name "My OpenAPI Document" [command options]
```
