Split web mode and cli mode to separate commands