BSPSource is a command-line tool used to decompile BSP files into VMF (Valve Map Format) files. You can provide one or more BSP files or directories as positional parameters. If you use the --list flag, the tool will treat the provided paths as text files containing lists of BSP file paths (one per line).
# Decompile a single BSP file
bspsrc map.bsp
# Decompile all BSP files in a directory
bspsrc ./maps_folder/
# Decompile using a text file containing a list of BSP paths
bspsrc --list list_of_maps.txt
# Decompile multiple files and specify an output directory
bspsrc -o ./output_dir/ map1.bsp map2.bsp