A full reference of all Gittxt CLI subcommands and options.
Scan directories or GitHub repositories to extract text in AI-ready formats.
gittxt scan [OPTIONS] [REPOS]...repos: One or more repository paths or URLs to scan.--exclude-dir, -x: Exclude specific folder paths from scanning.--output-dir, -o: Specify a custom output directory for the generated files.--output-format, -f: Specify output formats (comma-separated). Supported formats:txt,json,md.--include-patterns, -i: Glob patterns to include specific files (textual only).--exclude-patterns, -e: Glob patterns to exclude specific files.--zip: Create a ZIP bundle of the output files.--lite: Generate minimal output instead of full content.--sync: Enable.gitignoreusage for excluding files.--size-limit: Set a maximum file size (in bytes) for files to include.--branch: Specify a Git branch for remote repositories.--tree-depth: Limit the directory tree output to a specific depth.--log-level: Set the logging level (e.g.,INFO,DEBUG).
gittxt scan https://github.com/example/repo -o ./output -f json,md --liteManage configuration settings for Gittxt.
gittxt config [OPTIONS]--set: Set a configuration key-value pair.--get: Retrieve the value of a specific configuration key.--reset: Reset all configuration settings to their defaults.
gittxt config --set output_dir ./custom_outputClean up temporary files or cached data used by Gittxt.
gittxt clean [OPTIONS]--all: Remove all temporary files and cached data.--temp: Remove only temporary files.--cache: Remove only cached data.
gittxt clean --allReverse operations performed by Gittxt, if applicable.
gittxt reverse_command [OPTIONS]--input-dir: Specify the directory containing the files to reverse.--output-dir: Specify the directory to save the reversed files.--log-level: Set the logging level (e.g.,INFO,DEBUG).
gittxt reverse_command --input-dir ./output --output-dir ./reversed- All commands support the
--log-leveloption to control the verbosity of logs. - For more information, refer to the official documentation.