Skip to content

Latest commit

 

History

History
71 lines (50 loc) · 1.84 KB

File metadata and controls

71 lines (50 loc) · 1.84 KB

Getting Started

Installation

npm install -g scaledsearch

This installs two equivalent commands — use whichever you prefer:

scaledsearch migrate apply    # full name
ss migrate apply              # shorthand

Requirements: Node.js >= 18. No cluster connection is needed for status, diff, validate, or apply --dry-run — those work fully offline.

Quick start — new project

# 1. Initialize ScaledSearch in your project
scaledsearch migrate init

# 2. Create a migration
scaledsearch migrate create "add-products-index"

# 3. Edit the generated YAML
#    migrations/V001__add-products-index.yaml

# 4. Preview the changes (offline, no cluster needed)
scaledsearch migrate apply --dry-run

# 5. Apply them
scaledsearch migrate apply

# 6. Check what's applied vs pending
scaledsearch migrate status

init creates a .scaledsearch/config.yaml and a migrations/ directory. See Configuration for the config file.

Quick start — existing cluster

Already have indices in production? Capture them as a baseline first, then version forward from there:

# 1. Initialize
scaledsearch migrate init

# 2. Import current cluster state as V000
scaledsearch migrate import

# 3. Start versioning from here
scaledsearch migrate create "add-vector-field"
scaledsearch migrate apply

import snapshots indices, mappings, settings, aliases, index templates, and ingest pipelines into V000__baseline.yaml and marks it as already applied so it never re-executes. System-owned objects (APM, Fleet, ML, ILM history, leading-dot indices, OpenSearch plugin state) are excluded automatically. See the importing guide for details.

Next steps