CLI Usage¶
codebrief provides several commands to help you generate project context. You can always get help for the main application or a specific command by using the --help
flag.
tree
Command¶
Generates a directory tree structure.
Key Options: * ROOT_DIR
: The directory to generate the tree for (defaults to current directory). * -o, --output FILE
: Save the tree to a specified file. * -i, --ignore TEXT
: Directory or file names to ignore (can be used multiple times).
Example:
flatten
Command¶
Concatenates files into a single text output.
Key Options: * ROOT_DIR
: The root directory to search for files (defaults to current directory). * -o, --output FILE
: Save the flattened content to a specified file. * --include TEXT
: File extensions, globs, or names to include (e.g., *.py
, .md
). * --exclude TEXT
: File extensions, globs, or names to exclude (e.g., *.log
).
Example:
codebrief flatten . --include "*.py" --include "*.md" --exclude "tests/*" --output context_bundle.txt
(More commands and details will be added as they are developed.)