diff --git a/src/NewCommand.php b/src/NewCommand.php index 478b52d..4f5ca75 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -1016,9 +1016,15 @@ protected function enableStatamicPro() return $this; } + $command = ['pro:enable']; + + if (! $this->input->isInteractive()) { + $command[] = '--no-interaction'; + } + $statusCode = (new Please($this->output)) ->cwd($this->absolutePath) - ->run('pro:enable'); + ->run(...$command); if ($statusCode !== 0) { throw new RuntimeException('There was a problem enabling Statamic Pro!');