QuickLook server tool.
Display QuickLook for one or multiple files
qlmanage -p path/to/file1 path/to/file2 ...
Compute 300px wide PNG thumbnails of all JPEGs in the current directory and put them in a directory
qlmanage *.jpg -t -s 300 path/to/directory
Reset QuickLook
qlmanage -r