Skip to main content
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
Task templates and task statuses are organization-level resources in the Activity model. Projects bind the ones they use through project-resource links.

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
An Activity Plan usually lives at the organization level. A project binding says that the project is allowed to run it with that project’s document stores, task templates, data definitions, forms, users, and integrations.

Push Ordering

kdx sync push and kdx sync deploy push resources in dependency order. For example:
  1. Labels
  2. Core organization resources such as data definitions, data forms, document stores, data stores, modules, prompts, and Service Bridges
  3. Knowledge type definitions
  4. Knowledge feature instances
  5. Intakes and Activity Plans
  6. Project templates and projects
  7. Task templates, task statuses, and knowledge sets
  8. Project-scoped bindings, triggers, workflows, and workspaces when present
This ordering lets references resolve when project templates or project bindings point at shared resources.

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.
Use --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.