New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

elasticsearch-index-migrator

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elasticsearch-index-migrator

This repository contains scripts for managing Elasticsearch index migrations using the `elasticsearch-index-migrator` tool.

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
166
increased by26.72%
Maintainers
1
Weekly downloads
 
Created
Source

Elasticsearch Index Migration

This repository contains scripts for managing Elasticsearch index migrations using the elasticsearch-index-migrator tool.

Installation

yarn add elasticsearch-index-migrator

Cli options

The cli options is used to configure and provide options for the Elasticsearch migration scripts. Below is a table that describes each option:

PropertyDescription
commandSpecifies the command to be executed (e.g., createEmptyMigration or runMigrations).
migrationsDirSpecifies the directory where migration files are stored.
migrationNameSpecifies the name of the new migration.
migrationFileExtensionSpecifies the file extension for migration files (e.g., .js, .ts).
filePatternsAn array of file patterns used to identify migration files within the migrationsDir (default: *.js, *.ts).

Add these command to package.json file:

"elasticsearch-create-migration": "node -r ts-node/register -r tsconfig-paths/register ./node_modules/.bin/elasticsearch-index-migrator --command=createEmptyMigration --migrationsDir=./elasticsearch-migrations --migrationName=Test",
"elasticsearch-run-migrations": "node -r ts-node/register -r tsconfig-paths/register ./node_modules/.bin/elasticsearch-index-migrator --command=runMigrations --migrationsDir=./elasticsearch-migrations"

This package uses these environment variables to pass Elasticsearch authorizations by default:

process.env.ELASTICSEARCH_NODE_URL;
process.env.ELASTICSEARCH_PASSWORD;
process.env.ELASTICSEARCH_USERNAME;

FAQs

Package last updated on 11 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc