kumiko sync-managed
kumiko sync-managed # dry run, lists what would changekumiko sync-managed --write # write the changeskumiko sync-managed --write --adoptRenders the managed files of an app from the installed
@cosmicdrift/kumiko-dev-server and compares them with the files in the
repository. Without --write the command changes nothing and lists each file
it would create or update. The repository root is found from the current
directory, and kumiko.json there must declare kind app.
Managed files
Section titled “Managed files”| Files | Note |
|---|---|
deploy/Dockerfile, deploy/Dockerfile.dockerignore | Container build |
.github/workflows/ci.yml, release.yml, cache-cleanup.yml | Shared workflows |
.husky/pre-push | App additions go to scripts/pre-push-extra.sh |
bunfig.toml, bunfig.integration.toml, bunfig.real.toml, bunfig.dom.toml | bunfig.dom.toml only with uiRoots |
kumiko/schema.ts | FEATURES and ENTITY_METAS from kumiko.config.ts |
A file is overwritten only when it carries the kumiko-managed marker on its
first line, or on the second line after a #! or # syntax= line. A file with
kumiko-managed: local <reason> on the line after the marker keeps its local
change; the output lists it as skip with the reason.
| Flag | Effect |
|---|---|
--write | Write the changes instead of listing them |
--adopt | Also take over existing files that have no marker yet, for the first adoption |
Any other argument stops the command with a list of the known flags.
When to use
Section titled “When to use”- After a framework bump, when
kumiko checkreports drift in managed files - When an upgrade note says to run
kumiko sync-managed --write, for example before generating a migration from a changedkumiko/schema.ts
Exit code
Section titled “Exit code”0 after the dry run or the write, also when files differ. 1 when no
Kumiko repository is found, when kumiko.json declares another kind than
app, or on an unknown argument. Template errors are printed with ✗ but do
not change the exit code; kumiko check is the gate for drift.
See also
Section titled “See also”- App skeleton, which files are managed, preset, seed or app-owned
kumiko upgrade, what changed since your version