All apps/tree

tree

tree

Lists directory contents in a tree-like format.

Runs as tree|macOS, Linux, Windows

Command form

ai-draft · 2 tasks · 12 fields

Print a directory tree. Colour, HTML, sorting variants and file-attribute columns are mostly left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui tree
Show directory treeExample values, fixed in this page — nothing here reaches a terminal
Basic
Directory
directory
Include hidden files
-a
Directories only
-d
Max depth
2integer
TasksEach one presets the form for one job
Two levels deep
dirleveldirs_onlyall
With sizes
dirhumanlevelall
ParametersOnly these flags are editable in the form
Directory
path · positional 0 · repeatable
Include hidden files
boolean
-a
Directories only
boolean
-d
Max depth
integer
-L
Only matching files
Wildcard pattern of files to list.
string
-P
Exclude matching files
Wildcard pattern of files to omit.
string
-I
Full path prefix
boolean
-f
Human-readable sizes
boolean
-h
Directories first
boolean
--dirsfirst
No summary report
boolean
--noreport
JSON output
boolean
-J
Output file
path
-o
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed tree against its version. A form that does not match your version is not offered.