kibana/packages/kbn-es
2020-12-18 19:56:24 -05:00
..
scripts [7.x] [kbn/es] use a basic build process (#78090) (#78659) 2020-09-28 12:47:05 -07:00
src Explicitly set Elasticsearch heap size during CI and local development (#86513) (#86573) 2020-12-18 19:56:24 -05:00
jest.config.js Jest multi-project configuration (#77894) (#84826) 2020-12-02 14:02:21 -08:00
package.json chore(NA): move into single pkg json (#80015) (#82378) 2020-11-02 23:22:35 +00:00
README.md Init @kbn/es readme (#39850) 2019-06-28 10:21:56 -05:00
tsconfig.json Introduce TS incremental builds & move src/test_utils to TS project (#76082) (#76632) 2020-09-03 23:02:05 +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