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.

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

sub command

Usage:

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

Example:

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):

.ENV.template
DB_URL={{DB_URL}}
REQUIRE_EMAIL_VERIFICATION={{REQUIRE_EMAIL_VERIFICATION}}

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

.ENV
DB_URL=localhost:27017
REQUIRE_EMAIL_VERIFICATION=false

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:

export JUMPJET_APIKEY=2a07f477d6dfcffc1a8bf9ce62187348f14bf0cf0054 
export JUMPJET_APPSLUG=default-de4d726513 

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

Last updated