> ## Documentation Index
> Fetch the complete documentation index at: https://bruno-a6972042-docs-timeline-scripts.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Import Data

Bruno CLI allows you to import API specifications directly into Bruno collections from the command line, which can be integrated into CI/CD pipelines whenever API changes are committed.

## Importing OpenAPI Specifications

### Option 1: Import to Bruno Collection

This will import the OpenAPI specification (supports both YAML and JSON formats) and generate a Bruno collection in the specified output directory.

```bash copy theme={null}
bru import openapi \
  --source <your-openapi.yaml> \
  --output <preferred-location> \
  --collection-name "Petstore API"
```

Where:

* `<your-openapi.yaml>`: Path to your OpenAPI specification file (can be either YAML or JSON format)
* `<preferred-location>`: Directory where you want to save the collection
* `--collection-name`: Custom name for the collection

### Option 2: Import to Single JSON File

This will import the OpenAPI specification and generate a Bruno collection as a single JSON file at the specified location.

```bash copy theme={null}
bru import openapi \
  --source <your-openapi.yaml> \
  --output-file <preferred-location>.json \
  --collection-name "Petstore API"
```

Where:

* `<your-openapi.yaml>`: Path to your OpenAPI specification file (can be either YAML or JSON format)
* `<preferred-location>`: Base path and filename for your JSON output
* `--collection-name`: Custom name for the collection

***

## Importing WSDL (SOAP APIs)

This will import the WSDL file and generate a Bruno collection with SOAP requests in the specified output directory.

```bash copy theme={null}
bru import wsdl <your-service.wsdl> --output <preferred-location>
```

Where:

* `<your-service.wsdl>`: Path to your WSDL file
* `<preferred-location>`: Directory where you want to save the collection
