On this page

LIB TREE

Core command LI TR LITR

Shows the folders and Scripts of the Scripts Library as a tree.

Syntax

LIB TREE [<folder>] [ALL]

Arguments

ArgumentRequiredValuesDefault
<folder>NoA folder of the Scripts Library, relative to its rootThe whole library
ALLNoEvery Script, whatever its Database Group and EnvironmentThe Scripts of the current connection

Examples

LIB TREE;
LIB TREE reports;
LIB TREE reports/finance ALL;

Details

What it shows

The folders of the Scripts Library as a tree: each folder with the number of Scripts it holds (subfolders included), then its subfolders and its Scripts. Each Script line gives its name and its description, shortened to the terminal width; a draft or deprecated Script is marked [draft] or [deprecated].

Which Scripts

The same Scripts as LIB LIST: those that apply to the current connection's Database Group and Environment, or every Script with ALL. A folder with no Script in that scope is not shown. Archived Scripts never are.

  • <folder> shows only that folder, a path relative to the library root (reports/finance).
  • Folders come first, then Scripts, each sorted alphabetically ignoring case, as in the BroadSQL Editor.

The tree is drawn with plain spaces, so it reads the same in every console and theme.

Last modified in release 5.5.0.