Skip to main content

migrate

Convert a legacy singular-project: manifest into the canonical projects: map. migrate reads a manifest and prints the converted YAML to stdout — it never touches the source file unless you ask it to.
Given an old-shape manifest:
it emits the equivalent projects: form, bumped to the current schema version:
migrate converts the shape and bumps the schema version to the current one (2): the project: block becomes a projects: entry keyed by its id, and the services and settings are otherwise unchanged. A manifest already in projects: form at the current version passes through unchanged.

Options

Usage

The default prints to stdout, so you can review the diff before committing to it:
Or convert the file in place once you’re happy — the original is preserved as systemg.yaml.bak:
The singular project: block still parses (with a deprecation warning), so migrating is not urgent for the manifest to keep working. It is, however, the clean path off the deprecated shape before it is eventually removed.

See also