Open
Conversation
…kflow Adds three new commands under `dokploy sync` that serialize Dokploy server state to local YAML files, diff local vs. remote, and push local changes back. - `sync pull` - fetches full state and writes YAML files to disk - `sync diff` - compares local YAML against live server with colored output - `sync push` - applies local changes via tRPC update endpoints (update-only) Supports --project filter, --redact for sensitive fields, --dry-run, and --yes. Also fixes pre-existing build error in database/redis/create.ts (missing environmentId destructure). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
28 tests covering: - redact: sensitive field masking, nested objects, arrays, null handling - diff: identical states, field modifications, added/removed resources, ephemeral field skipping, redacted field skipping - apply: update plan building, skip create/delete, redacted field filtering, all 5 database type endpoint mapping - yaml-io: round-trip serialization, ephemeral stripping, redaction, directory structure, empty dirs, name collision handling Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dokploy sync pull/dokploy sync diff/dokploy sync pushcommands for an infrastructure-as-code workflow.updateendpoints (update-only in v1, no create/delete)--projectfilter,--redactfor sensitive fields,--dry-run, and--yesto skip confirmationdatabase/redis/create.ts(missingenvironmentIddestructure)New files
src/utils/sync/types.tssrc/utils/sync/constants.tssrc/utils/sync/fetch-state.tsproject.all+*.oneper resource (batched 10 concurrent)src/utils/sync/yaml-io.tssrc/utils/sync/redact.tssrc/utils/sync/diff.tssrc/utils/sync/apply.tssrc/commands/sync/pull.tssync pullcommandsrc/commands/sync/diff.tssync diffcommandsrc/commands/sync/push.tssync pushcommandYAML output structure
v1 scope
Test plan
pnpm buildcompiles cleandokploy sync pullagainst a live instance - check YAML output structuredokploy sync pull --redact- sensitive fields maskeddokploy sync diff- should show the changedokploy sync push --dry-run- should show planned update without applyingdokploy sync push- should apply and confirmdokploy sync pullagain - should show updated value🤖 Generated with Claude Code