bolt/yaml-migrations

A library to facilitate migrations for YAML configuration files

Package info

github.com/bolt/yaml-migrations

pkg:composer/bolt/yaml-migrations

Fund package maintenance!

bobvandevijver

Statistics

Installs: 19 684

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

2.2.0 2025-11-23 14:47 UTC

Requires

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 021831ca467de128817ded0ec32a1caf99557305

  • Bolt developers
  • Bob den Otter <bob.woop@twokings.nl>

This package is auto-updated.

Last update: 2026-05-23 16:11:14 UTC


README

A library to facilitate migrations for YAML configuration files

This repository was forked from bobdenotter/yaml-migrations and updated to be used with newer versions of bolt/core.

List available migrations

bin/yaml-migrate available

Run migrations

Standalone:

bin/yaml-migrate process -c config.yaml -v

The configuration file can be configured:

bin/yaml-migrate process -c config.yaml

Run a single file forcibly, convenient for testing:

bin/yaml-migrate process -v -f m_replace.yaml

Run it in the context of a Bolt installation:

vendor/bolt/yaml-migrations/bin/yaml-migrate process -c vendor/bolt/core/yaml-migrations/config.yaml -v

Tip: Reset the checkpoint and output:

echo '1.0.0' > sample/migrations/checkpoint.txt && rm -rf sample/target/*