add isRunFromCli method