A command line utility for running opensearch from source or archive.
If running opensearch from source, opensearch needs to be cloned to a sibling directory of OpenSearch Dashboards.
To run, go to the OpenSearch Dashboards root and run node scripts/opensearch --help
to get the latest command line options.
Run a snapshot
node scripts/opensearch snapshot
Run from source with a configured data directory
node scripts/opensearch source --Epath.data=/home/me/opensearch_data
Start a cluster
var opensearch = require('@osd/opensearch');
opensearch.run({
version: 1.0.0,
})
.catch(function (e) {
console.error(e);
process.exitCode = 1;
});
Type: String
Desired opensearch version
Type: String
Cloned location of opensearch repository, used when running from source
Type: String
Location where snapshots are cached