CLI
HomeGithub
  • Getting started
    • Installation
    • Login
  • Commands
    • Data
    • Tasks
    • Dispatchers
    • Templates
    • Localizations
    • Sync
  • other
    • Change Log
    • GitHub
Powered by GitBook
On this page
  • Default configuration
  • Custom configuration
  1. Commands

Sync

Organising your Extra Horizon configuration

PreviousLocalizationsNextChange Log

Last updated 9 months ago

The exh client has a global sync command for synchronizing your Schema, Tasks, Templates, Dispatchers and Localizations using a single command.

exh sync

will sync your current directory. While

exh sync --path /your/path/here

will allow you to specify exactly which directory you want to sync, by default the CLI will try to sync the Extra Horizon configuration using a .

Default configuration

The Extra Horizon CLI by default will execute the relevant commands for these subfolders:

Command
Path

./schemas

./templates

./tasks

./localizations

./dispatchers.json

Custom configuration

In case this is not the directory layout you prefer, these locations can be customized by creating a repo-config.json in the top directory. Example:

{
  "schemas": [
    "./path/to/my-schemas",
    "./another/path/to/schemas"
  ],
  "templates": [
    "./path/to/templates",
    "./another/path/to/templates"
  ],
  "tasks": [
    "./path/to/tasks",
    "./another/path/to/tasks"
  ],
  "localizations": [
    "./path/to/localizations",
    "./another/path/to/localizations"
  ]
}

Dispatchers are expected to always exist within a root file named dispatchers.json

default file structure
Localizations Sync
Schemas Sync
Templates Sync
Dispatchers Sync
Tasks Sync