Added cli tool.
use process.cwd() for rootpath in cli