kibana/packages/kbn-es
2024-01-02 18:04:09 -06:00
..
src [7.17] Upgrade Node.js to v20.10.0 (#173962) 2024-01-02 18:04:09 -06:00
BUILD.bazel [7.17] [Ops] Bump Node.js to version 18 (#160289) (#162722) 2023-08-15 09:16:19 +02:00
jest.config.js [jest] add *_node presets (#126192) (#126262) 2022-02-23 10:09:51 -07:00
jest.integration.config.js [jest] add *_node presets (#126192) (#126262) 2022-02-23 10:09:51 -07:00
package.json chore(NA): moving @kbn/es to babel transpiler (#107577) (#107595) 2021-08-03 19:26:00 -04:00
README.md [kbn-es] Allow overriding of Java heap (#99517) (#99794) 2021-05-11 12:31:37 -04:00
tsconfig.json [build_ts_refs] improve caches, allow building a subset of projects (#107981) (#108139) 2021-08-11 05:08:54 -04:00

@kbn/es

A command line utility for running elasticsearch from source or archive.

Getting started

If running elasticsearch from source, elasticsearch needs to be cloned to a sibling directory of Kibana.

To run, go to the Kibana root and run node scripts/es --help to get the latest command line options.

The script attempts to preserve the existing interfaces used by Elasticsearch CLI. This includes passing through options with the -E argument and the ES_JAVA_OPTS environment variable for Java options.

Examples

Run a snapshot install with a trial license

node scripts/es snapshot --license=trial

Run from source with a configured data directory

node scripts/es source --Epath.data=/home/me/es_data

API

run

Start a cluster

var es = require('@kbn/es');
es.run({
  license: 'basic',
  version: 7.0,
})
.catch(function (e) {
  console.error(e);
  process.exitCode = 1;
});

Options

options.license

Type: String

License type, one of: trial, basic, gold, platinum

options.version

Type: String

Desired elasticsearch version

options['source-path']

Type: String

Cloned location of elasticsearch repository, used when running from source

options['base-path']

Type: String

Location where snapshots are cached