Refined cli, env and build cmd.