@typed-secure-config/cli
v2.0.1
Published
Typed Secure Config CLI ===
Readme
Typed Secure Config CLI
Typed Secure Config is a CLI tool for managing configuration files, with support for multiple environments and encryption. It provides a simple, interactive interface for setting and retrieving configuration values.
Installation
Install the CLI tool via npm:
npm install -g @typed-secure-config/cliAlso, by installing as dev-dependency, you can install only in your project. (Not globally) In this way, you can run commands from npm scripts.
cd path/to/project;
npm install -D @typed-secure-config/cliUsage
The CLI provides commands to initialize, manage, and retrieve configuration values. Below are the general options and available commands.
General Options
-c, --config-dir <config-dir> Specify the path to the config file (default: "config")
-e, --env <environment> Specify the environment to use for the operationCommands
init
Initialize a config dir into the project.
typed-secure-config initadd-env
Add a new environment to the configuration.
typed-secure-config add-envset [options]
Set a value in the configuration.
Example:
typed-secure-config setget [options]
Get a value from the configuration.
Example:
typed-secure-config getset-encrypted [options]
Set an encrypted value in the configuration.
Example:
typed-secure-config set-encryptedOr, you can specify the key option:
typed-secure-config set-encrypted -k apiKeyget-encrypted [options]
Get an encrypted value in the configuration.
Example:
typed-secure-config get-encryptedOr, you can specify the key option:
typed-secure-config get-encrypted -k apiKey