// Module included in the following assemblies:
//
// * cli_reference/opm/cli-opm-ref.adoc

:_mod-docs-content-type: REFERENCE
[id="opm-cli-ref-migrate_{context}"]
= migrate

Migrate a SQLite database format index image or database file to a file-based catalog.

:FeatureName: The SQLite-based catalog format, including the related CLI commands,
include::snippets/deprecated-feature.adoc[]

.Command syntax
[source,terminal]
----
$ opm migrate <index_ref> <output_dir> [<flags>]
----

.`migrate` flags
[options="header",cols="1,3"]
|===
|Flag |Description

|`-o`, `--output` (string)
|Output format: `json` (the default value) or `yaml`.

|===
