npm install -g scaledsearchThis installs two equivalent commands — use whichever you prefer:
scaledsearch migrate apply # full name
ss migrate apply # shorthandRequirements: Node.js >= 18. No cluster connection is needed for status, diff,
validate, or apply --dry-run — those work fully offline.
# 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 statusinit creates a .scaledsearch/config.yaml and a migrations/ directory. See
Configuration for the config file.
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 applyimport 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.