How do I open a file with Chrome from the command line?
Try
open {filename}
if it's an .html
file it should open in your default browser
From the bash shell (on Windows), you can use:
start myFilename.html
and to open a folder:
explorer "C:\Program Files\Git"
Added for reference, since my search landed here, too.
For Mac i'm using
open -a 'google chrome' /yourPath
Just type in the program name followed by the file:
google-chrome {file-path}
ex:
google-chrome ~/index.html