Automating with GitHub Actions? Use the official kdx-sync-action. See the CI/CD Integration guide.
What Sync Is For
kdx sync turns Kodexa metadata into a version-controlled repository. Use it when a project is larger than a one-off CLI change and the configuration should be reviewed, promoted, and repeatable.
Use sync for:
- Activity Plans and triggers
- Task templates and task statuses
- Data definitions and data forms
- Project templates and project resource bindings
- Modules and prompt templates
- Service Bridges
- Knowledge types, features, sets, and project knowledge items
- Labels, intakes, document stores, and data stores
Command Flow
Repository Layout
Configuration Layers
sync-config.yaml answers three questions:
Minimal example:
Organization Resources
Organization resources are reusable building blocks:- Activity Plans
- Data Definitions
- Data Forms
- Document Stores
- Data Stores
- Modules
- Prompt Templates
- Service Bridges
- Knowledge Item Types
- Knowledge Feature Types
- Knowledge Feature Instances
- Knowledge Sets
- Labels
- Intakes
- Task Templates
- Task Statuses
- Project Templates
- Projects
Project Resources
Project folders contain resources and bindings that make a specific project runnable:- Project metadata
- Project resource links
- Triggers
- Project knowledge items
- Project-specific knowledge sets when used
Push Ordering
kdx sync push and kdx sync deploy push resources in dependency order. For example:
- Labels
- Core organization resources such as data definitions, data forms, document stores, data stores, modules, prompts, and Service Bridges
- Knowledge type definitions
- Knowledge feature instances
- Intakes and Activity Plans
- Project templates and projects
- Task templates, task statuses, and knowledge sets
- Project-scoped bindings, triggers, workflows, and workspaces when present
Conflict Detection
Sync records server state in.sync-state/. Commit those files so the next push can detect when the server changed after your last pull.
--force only when you intentionally want local files to overwrite server-side changes.
Next Steps
Getting Started
Build the first metadata repository.
Configuration
Define environments, targets, branch mappings, and tag mappings.
Manifests & Resource Types
Learn manifest shape and current resource names.
Pull, Push & Deploy
See command flags and operational behavior.
Conflict Detection
Understand sync state and stale-write protection.
CI/CD Integration
Automate deployments from GitHub Actions and other CI systems.
