> For the complete documentation index, see [llms.txt](https://docs.jumpjet.co/jumpjet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jumpjet.co/jumpjet/cli-tool.md).

# CLI tool

Jumpjet comes with a CLI tool that creates final config files based on your configuration. To see exactly how it works, see [Getting Started in 4 Minutes](/jumpjet/getting-started-in-4-minutes.md).

Below are instructions on downloading and using the tool. You can also simply copy & paste the CLI snippets from the **CLI section at app.jumpjet.com** (for your convenience, they even contain your API credentials).

## Download

* **Mac**: <https://app.jumpjet.co/download/osx/jumpjet>
* **Linux**: <https://app.jumpjet.co/download/linux/jumpjet>
* **Windows**: <https://app.jumpjet.co/download/windows/jumpjet.exe>

## sub command

**Usage**:

```bash
jumpjet sub --env env [--output-file file] input-file
```

**Example**:

```bash
jumpjet sub --env Prod --output .env .env.template
```

**Description**: creates a final configuration file by scanning a template file (ex: .env.template) and substituting Jumpjet placeholders with values. Jumpjet placeholders are curly braces around variable names, e.g. `{{DB_URL}}`).

Here's an example for the input file (template):

{% code title=".ENV.template" %}

```bash
DB_URL={{DB_URL}}
REQUIRE_EMAIL_VERIFICATION={{REQUIRE_EMAIL_VERIFICATION}}
```

{% endcode %}

And here's the output file (the final configuration file based on our Prod configuration):

{% code title=".ENV" %}

```bash
DB_URL=localhost:27017
REQUIRE_EMAIL_VERIFICATION=false
```

{% endcode %}

{% hint style="info" %}
**You must authenticate with your API credentials** for the `sub` command to work. You can find the exact authentication snippets inside app.jumpjet.co, but here's the example for Mac again:

```bash
export JUMPJET_APIKEY=2a07f477d6dfcffc1a8bf9ce62187348f14bf0cf0054 
export JUMPJET_APPSLUG=default-de4d726513 

./jumpjet sub --env production -o .env .env.template
```

{% endhint %}

##
