To open a file with the default application, I can run
open file, is there a command that will open the quickview for a file, like if I'd selected it in finder and pressed command+y?
what os version are you running? 10.5 included a program called qlmanage which can do exactly what you want. In terminal, simply type:
qlmanage -p [file]
For more information read this post.