Ordnung

How to synchronize a fleet member

Use this guide when a repository belongs to a configured fleet and you want to bring its managed files into line with central policy.

You need the fleet configuration, the member's OWNER/NAME, and a local checkout of that member. The examples assume you are standing in the member checkout with the fleet configuration checked out beside it.

Validate the fleet configuration#

ordnung fleet check ../fleet-config/.ordnung/fleet.toml

Resolve configuration errors before continuing.

Preview the synchronization plan#

ordnung fleet sync ../fleet-config/.ordnung/fleet.toml \
  --repo acme/api \
  --repo-root .

Without --apply, the command only displays the plan. Review every proposed file change before continuing.

Apply the reviewed plan#

Run the same command with the explicit mutation flag:

ordnung fleet sync ../fleet-config/.ordnung/fleet.toml \
  --repo acme/api \
  --repo-root . \
  --apply

fleet sync writes files in the local working tree only. Inspect the working tree after the command completes and review the resulting diff before committing.

For automation, append --json. See the CLI reference for the complete fleet command surface.

Open or update the fleet pull request#

To operate on the GitHub repository without a prepared member checkout, use:

ordnung fleet github-sync ../fleet-config/.ordnung/fleet.toml \
  --repo acme/api

Review the complete dry-run plan, then repeat it with --apply. Two things happen under that one flag, and they are worth knowing precisely:

Archived repositories are refused. The command continues to report drift until the pull request lands and a later run observes a clean default branch.