mix lightning.merge_projects (Lightning v2.15.0-pre5)
View SourceMerges two project state files (JSON) and outputs the result.
This task is useful for merging sandbox projects. It takes two state files (source and target) and produces a merged state that can be imported.
Usage
mix lightning.merge_projects SOURCE_FILE TARGET_FILE [OPTIONS]Arguments
SOURCE_FILE- Path to the source project state JSON fileTARGET_FILE- Path to the target project state JSON file
Options
-o, --output PATH- Write output to file instead of stdout--uuid SOURCE_UUID:TARGET_UUID- Map source UUID to target UUID for any entity (workflow, job, or edge) (repeatable)
Examples
# Merge staging into main, output to stdout
mix lightning.merge_projects staging.state.json main.state.json
# Merge and save to file
mix lightning.merge_projects staging.state.json main.state.json -o merged.json
# Merge with explicit output flag
mix lightning.merge_projects staging.state.json main.state.json --output result.json
# Merge with UUID mappings for workflows, jobs, and edges
mix lightning.merge_projects staging.state.json main.state.json \
--uuid 550e8400-e29b-41d4-a716-446655440000:650e8400-e29b-41d4-a716-446655440001 \
--uuid a1b2c3d4-e5f6-4a5b-8c7d-1e2f3a4b5c6d:b2c3d4e5-f6a7-4b5c-8d7e-2f3a4b5c6d7e \
--uuid f6a7b8c9-d0e1-4f5a-9b0c-5d6e7f8a9b0c:a7b8c9d0-e1f2-4a5b-9c0d-6e7f8a9b0c1d \
-o merged.json