@typed-secure-config/cli

2.0.0 • Public • Published

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

Usage

The CLI provides commands to initialize, manage, and retrieve configuration values. Below are the general options and available commands.

General Options

-V, --version                  Output the version number
-c, --config-dir <config-dir>  Specify the path to the config file (default: "config")
-e, --env <environment>        Specify the environment to use for the operation
-h, --help                     Display help for commands

Commands

init

Initialize a config dir into the project.

typed-secure-config init

add-env

Add a new environment to the configuration.

typed-secure-config add-env

set [options]

Set a value in the configuration.

Example:

typed-secure-config set

Or, you can specify the key option:

typed-secure-config set -k apiKey

get [options]

Get a value from the configuration.

Example:

typed-secure-config get

Or, you can specify the key option:

typed-secure-config get -k apiKey

set-encrypt [options]

Set an encrypted value in the configuration.

Example:

typed-secure-config set-encrypt

Or, you can specify the key option:

typed-secure-config set-encrypt -k apiKey

get-encrypt [options]

Get an encrypted value in the configuration.

Example:

typed-secure-config get-encrypt

Or, you can specify the key option:

typed-secure-config get-encrypt -k apiKey

Readme

Keywords

none

Package Sidebar

Install

npm i @typed-secure-config/cli

Weekly Downloads

10

Version

2.0.0

License

none

Unpacked Size

11.3 kB

Total Files

6

Last publish

Collaborators

  • boke0