Quick answer: Your OpenAPI source is portable, but the portal around it is not. Export a single-file description with redocly bundle, keep the editable multi-file source in Git, and treat a platform move as re-wiring sources and config, not moving one database snapshot.
What moves, and what stays
Two things get conflated. The API description (paths, schemas, parameters, examples) lives in plain YAML or JSON and travels anywhere. The portal layer (navigation, theme, access rules, catalog setup, source connections) lives in the platform and redocly.yaml, and it does not export into one runnable package. That split defines the job: pull a portable copy of the description in a few commands, then rebuild the portal as a configuration task rather than a data dump.
Exporting a portable description
bundle follows every $ref from a root file and writes one self-contained file:
redocly bundle openapi/openapi.yaml -o dist/openapi.yaml
redocly lint dist/openapi.yaml
Lint the output so the handoff is valid. Flags that shape it:
-
--ext jsonfor tools that only read JSON. -
--remove-unused-componentsdrops unreferenced components and shrinks the file. -
--dereferencedresolves refs inline, leaving no$refpointers. -
--overlayapplies an Overlay during export, so a public bundle hides internal endpoints without touching the source.
The registry can also build a bundled artifact on every update for teams that want a single file without the CLI. A bundle is the shape most tools accept, including the API workspace in Powerduck, but it is an output, not a place to edit.
Bundle, split, and join are not interchangeable
| Command | Input to output | Use it when | Watch out |
|---|---|---|---|
| bundle | Multi-file to one | Handoff or publish | Refs collapse; not a source |
| split | One file to multi-file | Starting a modular layout | Output may not match your conventions |
| join | Several APIs to one | Combining separate services | Experimental; merges, not refs |
bundle follows refs inside one API; join merges separate APIs and is experimental. To reverse a single file into a modular layout, split writes a folder of paths and schemas, then review its structure before the team adopts it.
Migrating between Redocly generations
Three documented moves should not be mixed. On the command line, the older redoc-cli maps to Redocly CLI: redoc-cli build becomes redocly build-docs, and bundle now handles the old bundle step, with theme and lint rules in the shared config. In the config file, legacy apiDefinitions is renamed apis; the old format still works but logs warnings and will not be accepted at general release, so rename it early.
The platform move from Workflows separates the API registry from remote content. Workflows runs a source to registry to portal to catalog chain with manual steps; the current platform can onboard the catalog automatically or behind approval, with per-source auto-sync and auto-merge. Reconnect each source and re-confirm its merge behavior instead of assuming the old wiring carries over. Workflows stays supported with no fixed retirement date, so a staged cutover beats a rushed switch. The broader product differences sit in the comparison hub.
Honest limits
No export button reproduces a full portal: access rules, custom domains, theme, and hand-built navigation must be re-applied and reviewed on the target. Keep the multi-file source in Git as the system of record, because a bundle-to-split round trip adds noise and can rearrange files. If a public bundle relies on an overlay to hide endpoints, verify the exported file before sharing, since that protection lives in the export step, not the source.
Frequently asked questions
Can I export the whole portal as one package? No. The description exports with bundle; theme, navigation, access rules, and catalog wiring are reconfigured on the target.
Should I edit the bundled file? No. Keep editing the multi-file source in Git; editing a bundle creates a fork that is hard to merge back.
Bundle vs join? Bundle follows refs inside one API into a single file. Join merges separate APIs into one experimental document.
Will Workflows stop working soon? It stays supported during migration with no new retirement date announced, so move sources in stages rather than waiting on a deadline.
The bottom line
The OpenAPI description is the durable asset; the portal config is disposable wiring. Export with bundle, keep the modular source in Git, and run a migration as a planned reconnection of sources with each merge behavior checked. Trouble starts when a team treats the exported bundle as its new source or assumes the portal moves itself.
Top comments (0)