info('----------'); // 打印分隔线 $this->info($command); // 打印要执行的命令 // 执行 shell 命令并获取输出 $output = shell_exec($command); $this->info($output); // 打印命令的输出结果 } }