[cli] Support passing the path to compile.