Skip to content
Corex

VersionCommand

Corex\Cli\Commands\VersionCommand · class · CLI layer

wp corex version <semver> [--dry-run] — stamps a release version across every framework plugin /theme header + COREX_*_VERSION constant in one step, so the headers never drift from the release tag. The pure {@see VersionPlan} computes the edits; this thin command reads the files, applies the plan (or previews it with --dry-run), and writes only what changed.

__construct(VersionPlan $plan, array $files)

Section titled “__construct(VersionPlan $plan, array $files)”