Skip to main content

Command-Line Options

NestCLI offers a variety of command-line options to customize your experience.

Available Options#

FlagDescriptionDefault
-d, --depth <level>Limit directory tree depthInfinite
-e, --extensions <ext>Filter files by extensions (comma-separated)All
-l, --line-numbersShow line numbers in file contentfalse
-s, --sizeDisplay file sizes in tree viewfalse
--hiddenInclude hidden files and directoriesfalse
-t, --tree-onlyShow only the directory structurefalse
-f, --file-onlyShow only file contents (hide tree)false
-L, --line-limit <num>Set number of lines to display per page200
-S, --search <term>Search for files by name (case-insensitive)none
-r, --regexEnable regex-based searchfalse
--syntax-highlightEnable syntax highlightingfalse
-k, --keyboard-navEnable interactive navigationfalse
--save-configSave current options as default-
--reset-configReset to default configuration-

Example#

nest_cli --depth 3 --line-numbers --syntax-highlight