Manifest

Get manifest information

The manifest:info command is used to display information about a specific manifest.

manifest:info

Display and manage Rejot manifest file for configuring data synchronization. The manifest file defines: - Connections: Database connection details - Data Stores: Source databases for replication - Event Stores: Target databases for replication Use subcommands to manage each component: - manifest init: Create a new manifest file - manifest connection: Manage database connections - manifest datastore: Manage data stores (replication sources) - manifest eventstore: Manage event stores (replication targets)

Examples

$ rejot-cli manifest
$ rejot-cli manifest --manifest ./custom-manifest.json
$ rejot-cli manifest init
$ rejot-cli manifest connection add --slug my-source --connection-string "postgresql://user:pass@host:5432/db"
$ rejot-cli manifest datastore add --connection my-source --publication my_pub --slot my_rejot_slot
$ rejot-cli manifest eventstore add --connection my-target

Flags

--manifest string

Path to manifest file

Default: "./rejot-manifest.json"

Initialize a new manifest

The manifest:init command is used to initialize a new manifest file at the specified path.

manifest:init

Initialize a new manifest file

Examples

$ rejot-cli manifest init
$ rejot-cli manifest init --manifest ./custom-manifest.json

Flags

--manifest string

Path to manifest file

Default: "./rejot-manifest.json"
--slug string required

The slug for the manifest

Synchronize manifest configurations

The manifest:sync command is used to synchronize manifest configurations.

manifest:sync

Start syncing based on one or more manifest files. Opens replication slots in the source data stores, transforms writes using public schemas, and stores the events in the configured event store.

Examples

$ rejot-cli manifest sync ./rejot-manifest.json
$ rejot-cli manifest sync ./manifest1.json ./manifest2.json

Arguments

manifest required

Path to manifest file(s)

Flags

--log-level option

Set the log level (user, error, warn, info, debug, trace)

Options: "user" | "error" | "warn" | "info" | "debug" | "trace"
Default: "info"
--api-port string

Set the port for the sync HTTP service

Default: 3000
--hostname string

Set the hostname for the sync HTTP service

Default: "localhost"
--resolver option

Set the resolver for the sync HTTP service

Options: "localhost" | "env"
Default: "localhost"