pdfunite

PDF merging utility. More information: https://github.com/mtgrosser/pdfunite.

pdfunite path/to/fileA.pdf path/to/fileB.pdf path/to/merged_output.pdf

pdfunite path/to/directory/*.pdf path/to/merged_output.pdf