renative icon indicating copy to clipboard operation
renative copied to clipboard

Standardize CLI options & commands

Open pavjacko opened this issue 11 months ago • 0 comments

Core RNV CLI Options & Commands

FLAGS

Output

change way how console outputs information

--no-color - remove all ANSI coloring & decorations --no-summary - omit summary box --no-intro - omit intro box --json - output in json format --print-exec - add log for each exec command (child_process)

Log Level

only one accepted from least to most verbose

--silent --fatal --error --warn --info (default) --debug --trace

Interaction

changes interactivity behaviour

--ci - expects no questions otherwise fail --yes - answer positively/default for any question --answers <value> - provide specific set of predefined answers --no-default - guide users trough each relevant option where default would be used (similar to wizard experience)

Command Options

acts like a special command

--help --version

ENV VARS:

expose options as env vars

RNV_NO_COLOR=1
RNV_JSON=1
RNV_SUMMARY=1
RNV_DEBUG=1
RNV_ANSWERS=<VALUE>

COMMANDS

info - display system info relevant to RNV

update - self upgrade

pavjacko avatar Mar 05 '24 12:03 pavjacko