---
icon: octicons/command-palette-24
---

Pass launch arguments to the 10x Engine via the command-line interface.

The structure for configuring a 10x Engine instance via the command line is:

``` console
 $ tenx <bootstrap options> <pipeline> [pipeline options]
```

[Bootstrap](https://doc.log10x.com/run/bootstrap) options specify the target pipeline (e.g., [run](https://doc.log10x.com/run/), [compile](https://doc.log10x.com/compile/)) to start,
as well additional bootstrap settings (e.g., license key).

Command line arguments can configure pipeline and  [module](https://doc.log10x.com/config/module/)
settings as sub-options of the pipeline argument. 

For example, to specify a bootstrap [licenseKey](https://doc.log10x.com/run/bootstrap/#licensekey) 
option for a `run` pipeline and an [elasticSearchHost](https://doc.log10x.com/run/input/analyzer/elasticsearch/#elasticsearchhost) 
input module argument, use: 

``` console
$ tenx licenseKey <my-key> run elasticSearchHost acme.us-central1.gcp.cloud.es.io ...
```

### :material-link: Include Files

To load config file(s) in any of the [supported formats](https://doc.log10x.com/config/#sources),
specify its path on disk preceded with a `@` character. For example:

``` console
$ tenx @~/config.yaml @~/script.js
```

### :material-format-list-numbered: List Arguments

Arguments whose type is defined as [list](https://doc.log10x.com/config/module/#options) can specify multiple values on the command line.

The example below specifies two [elasticSearchTargets](https://doc.log10x.com/run/input/analyzer/elasticsearch/#elasticsearchtargets) argument values for a target Elastic input:

``` console
$ tenx run elasticSearchHost acme.us-central1.gcp.cloud.es.io elasticSearchTargets index1 elasticSearchTargets index2
```

### :material-hexagon-multiple: Multiple Instances

Unit and modules whose [allowMultiple](https://doc.log10x.com/config/module/#allowmultiple) 
setting is true (e.g., [inputs](https://doc.log10x.com/run/input/), 
[outputs](https://doc.log10x.com/run/output/)) can configure multiple instances of each [module](https://doc.log10x.com/engine/module/)
via the command line.
 
The example below configures two instances of the [Elastic input](https://doc.log10x.com/run/input/analyzer/elasticsearch/) 
module to read data into the pipeline:

``` console
$ tenx run elasticSearchHost acme.us-central1.gcp.cloud.es.io ... elasticSearchHost acme.us-central2.gcp.cloud.es.io
```

