[cli-compile] compile parameterized by directory