> ## Documentation Index
> Fetch the complete documentation index at: https://docs.simforge.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# simforge export

> Reference for simforge export: usage, arguments and flags, generated from the CLI.

Generated from the CLI's own help (CLI 0.2.0-rc.5). Global flags and exit codes are on the [command reference](/cli).

## export

A concrete instance as ASAM OpenSCENARIO XML 1.4, XML 1.3 (esmini) or DSL 2.2, with a capability report

```sh theme={null}
simforge export [OPTIONS] --format <FORMAT> --out <FILE> <INSTANCE>
```

Runs on: local runtime.

| Argument / flag | Notes | What |
| - | - | - |
| `<instance>` | required | The instance: a scenario cell, a pinned scenario, a bare SimScenarioInput, or a `log import` workspace directory (XML formats replay its recorded trace) |
| `--format FORMAT` | required | xosc-1.4 \| xosc-1.3-esmini \| osc-2.2 |
| `--out FILE` | required | Write the document here |
| `--road-file FILE` | | The road-network file the document references (default `<mapId>.xodr`) |
| `--author NAME` | | FileHeader author |
| `--description TEXT` | | FileHeader description |
| `--route-sample-m M` | | Maximum distance between exported route waypoints, metres (default 20) |
| `--trajectory-tolerance-m M` | | XML: omit trajectory vertices that interpolation reproduces within this many metres, 0.1 deg and 0.1 m/s (default: every sample) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.