kibana/packages/kbn-es
Spencer d504a82954
[7.x] [kbn/es] use an ES_TMPDIR that is within the install pat… (#47964)
* [kbn/es] use an ES_TMPDIR that is within the install path

* support tests which don't pass installPath
2019-10-11 09:21:13 -07:00
..
src [7.x] [kbn/es] use an ES_TMPDIR that is within the install pat… (#47964) 2019-10-11 09:21:13 -07:00
package.json [7.x] Update dependency @elastic/elasticsearch to ^7.4.0 (#473… (#47396) 2019-10-05 15:48:58 -07:00
README.md Init @kbn/es readme (#39850) 2019-06-28 10:21:56 -05:00
tsconfig.json [7.x][@kbn/es] Add a predefined list of Elasticsearch secure settings to be added into keystore. Re-enable OIDC tests. (#42424) 2019-08-01 10:40:54 +02: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.

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