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):
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):
DB_URL=localhost:27017
REQUIRE_EMAIL_VERIFICATION=false
Last updated
Was this helpful?