kibana/packages/kbn-es
Kibana Machine b3fc91c6d8
chore(NA): moving @kbn/dev-utils into bazel (#98496) (#98696)
* chore(NA): moving @kbn/dev-utils into bazel

* docs(NA): updated generated plugin list

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-04-29 00:50:19 +00:00
..
scripts [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
src [kbn/es] disable geoip downloader at the root (#98372) (#98533) 2021-04-27 16:34:23 -04:00
jest.config.js [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
package.json chore(NA): moving @kbn/dev-utils into bazel (#98496) (#98696) 2021-04-29 00:50:19 +00:00
README.md
tsconfig.json

@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.

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