0.5.0 • Published 1 month ago
@runtime-env/cli v0.5.0
@runtime-env/cli
Installation
$ npm i -D @runtime-env/cli
$ npx 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")
--env-schema-file-path <envSchemaFilePath> specify the json schema file to be loaded (default: ".runtimeenvschema.json")
-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 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:
--output-file-path <outputFilePath> specify the output file to be written instead of being piped to stdout
-h, --help display help for command
$ npx 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-path <outputFilePath> specify the output file to be written instead of being piped to stdout
-h, --help display help for command
$ npx runtime-env interpolate --help
Usage: runtime-env interpolate [options]
perform template interpolation by substituting environment variables
Options:
--input-file-path <inputFilePath> specify the input file to be loaded instead of being read from stdin
--output-file-path <outputFilePath> specify the output file to be written instead of being piped to stdout
-h, --help display help for command
0.5.0-alpha-1
1 month ago
0.5.0-alpha.2
1 month ago
0.5.0-alpha.1
1 month ago
0.5.0-alpha.0
1 month ago
0.5.0
1 month ago
0.4.1
3 months ago
0.4.0-alpha-3
3 months ago
0.4.0-alpha.2
3 months ago
0.4.0-alpha.1
3 months ago
0.4.0-alpha.0
3 months ago
0.4.0
3 months ago
0.3.2
4 months ago
0.3.1
4 months ago
0.3.0
4 months ago
0.2.3
4 months ago
0.2.1
4 months ago
0.2.0
4 months ago
0.2.2
4 months ago
0.1.4
6 months ago
0.1.3
6 months ago
0.1.2
6 months ago
0.1.1
6 months ago
0.1.0
6 months ago