Documentation Index
Fetch the complete documentation index at: https://developer.kodexa.ai/llms.txt
Use this file to discover all available pages before exploring further.
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
| Command | Direction | Use it for |
|---|---|---|
kdx sync pull | Platform -> files | Download configured resources into the metadata repository |
kdx sync pull --discover | Platform -> manifest + files | Discover resources and merge them into manifests before pulling |
kdx sync push | Files -> platform | Push local metadata changes to one environment |
kdx sync deploy | Files -> platform | Deploy targets selected by branch, tag, or explicit flags |
Repository Layout
Configuration Layers
sync-config.yaml answers three questions:
| Question | Config section | Example |
|---|---|---|
| Where can this repo deploy? | environments | dev, qa, prod URLs and API key env vars |
| What resource sets can be deployed? | targets | finance, claims, shared manifests |
| When should targets deploy? | branch_mappings, tag_mappings | main -> dev, release/* -> prod |
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, and project resources 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.
Working with Claude Code
Use Kodexa metadata skills to author syncable configuration in Git.
