--format¶
Info
The --format
flag lets you choose how the tree is displayed or exported.
tree
(default) — Display the tree in the terminal with optional icons, counts, and sizes.md
— Export the tree to a Markdown file for documentation purposes.
Usage¶
Usage
- This creates a file named
<rootname>-file-tree.md
in your current directory.
Example¶
Example
Tip¶
Tip
--format md
with other flags like --size
or --count
to generate rich, documented project trees.