@elevenback/env-yaml-generator

env.yaml auto generate CLI tool for Google AppEngine.

Usage no npm install needed!

<script type="module">
  import elevenbackEnvYamlGenerator from 'https://cdn.skypack.dev/@elevenback/env-yaml-generator';
</script>

README

@elevenback/env-yaml-generator

codecov

env.yaml auto generate CLI tool for Google AppEngine.

Motivation

When deploying applications to Google AppEngine, we bother us with managing environment variables.

This package automatically generates a dedicated YAML file that enumerates environment variables (with the prefix and regex filter you specified) and makes managing environment variables the easiest.

Usage

Preparation process

At first, Please add include to your app.yaml.

# app.yaml

includes:
- env.yaml

Usage for CLI

$ yarn add @elevenback/env-yaml-generator -D
$ export DEV_API_ROOT="https://dev.example.com"
$ export PROD_API_ROOT="https://prod.example.com"
$ yarn create-env-yaml --environment DEV --filter "API_.+"
$ cat ./env.yaml
env_variables:
  API_ROOT: "https://dev.example.com"

LICENCE

MIT