0.7.0 • Published 8 months ago

@runtime-env/cli v0.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@runtime-env/cli

Installation

$ npm i -D @runtime-env/cli

$ npx -p @runtime-env/cli runtime-env --help

Usage: runtime-env [options] [command]

Options:
  -V, --version                                output the version number
  --global-variable-name <globalVariableName>  specify the global variable name (default: "runtimeEnv")
  --schema-file <schemaFile>                   specify the json schema file to be loaded (default: ".runtimeenvschema.json")
  --watch                                      turn on watch mode (default: false)
  -h, --help                                   display help for command

Commands:
  gen-js [options]                             generate a JavaScript file that includes environment variables within an object, making them
                                               accessible through the globalThis property
  gen-ts [options]                             generate a TypeScript file that provides the corresponding type definitions for the JavaScript
                                               file generated by the gen-js command
  interpolate [options]                        perform template interpolation by substituting environment variables
  help [command]                               display help for command

$ npx -p @runtime-env/cli runtime-env gen-js --help

Usage: runtime-env gen-js [options]

generate a JavaScript file that includes environment variables within an object, making them accessible through the globalThis property

Options:
  --env-file <envFile...>     set environment variables from supplied file (requires Node.js v20.12.0) (default: [])
  --output-file <outputFile>  specify the output file to be written instead of being piped to stdout
  -h, --help                  display help for command

$ npx -p @runtime-env/cli runtime-env gen-ts --help

Usage: runtime-env gen-ts [options]

generate a TypeScript file that provides the corresponding type definitions for the JavaScript file generated by the gen-js command

Options:
  --output-file <outputFile>  specify the output file to be written instead of being piped to stdout
  -h, --help                  display help for command

$ npx -p @runtime-env/cli runtime-env interpolate --help

Usage: runtime-env interpolate [options]

perform template interpolation by substituting environment variables

Options:
  --env-file <envFile...>     set environment variables from supplied file (requires Node.js v20.12.0) (default: [])
  --input-file <inputFile>    specify the input file to be loaded instead of being read from stdin
  --output-file <outputFile>  specify the output file to be written instead of being piped to stdout
  -h, --help                  display help for command

Documentation

0.7.0

8 months ago

0.6.1

10 months ago

0.6.0

10 months ago

0.5.3

10 months ago

0.5.2

11 months ago

0.5.1

12 months ago

0.5.0-alpha-1

1 year ago

0.5.0-alpha.2

1 year ago

0.5.0-alpha.1

1 year ago

0.5.0-alpha.0

1 year ago

0.5.0

1 year ago

0.4.1

1 year ago

0.4.0-alpha-3

1 year ago

0.4.0-alpha.2

1 year ago

0.4.0-alpha.1

1 year ago

0.4.0-alpha.0

1 year ago

0.4.0

1 year ago

0.3.2

1 year ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.3

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.2

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago