@@ -36,6 +36,16 @@ Options
3636 ``copy-resource `` show a readable diff in the sync output before they are
3737 replaced.
3838
39+ ``--dry-run ``
40+ Preview managed-file drift without writing changes.
41+
42+ ``--check ``
43+ Report managed-file drift and exit with code ``1 `` when updates are
44+ required.
45+
46+ ``--interactive ``
47+ Prompt before replacing drifted managed files.
48+
3949Examples
4050--------
4151
@@ -51,6 +61,18 @@ Sync with overwrite:
5161
5262 composer dev-tools:sync --overwrite
5363
64+ Preview managed-file drift:
65+
66+ .. code-block :: bash
67+
68+ composer dev-tools:sync --dry-run
69+
70+ Fail in CI when managed files drift:
71+
72+ .. code-block :: bash
73+
74+ composer dev-tools:sync --check
75+
5476 Exit Codes
5577---------
5678
@@ -71,5 +93,12 @@ Behavior
7193- Copies missing workflow stubs, ``.editorconfig ``, and ``dependabot.yml ``.
7294- When ``--overwrite `` is enabled, replaced text resources emit a unified diff
7395 so terminal sessions and CI logs show what changed.
96+ - ``--dry-run `` and ``--check `` verify managed-file drift for ``composer.json ``,
97+ copied resources, ``.gitignore ``, ``.gitattributes ``, ``LICENSE ``, and Git
98+ hooks.
99+ - ``--interactive `` prompts before replacing drifted managed files when the
100+ command is running in an interactive terminal.
74101- Creates ``.github/wiki `` as a git submodule when missing.
75102- Calls other commands in sequence.
103+ - ``wiki `` and ``skills `` are skipped in preview/check modes until they expose a
104+ non-destructive verification path.
0 commit comments