src/Console/Kernel.php
public function run($commandline)
    {
        $this->bootstrap();

        $artisan = $this->getArtisan();
		$artisan->setCatchExceptions(false);
		$artisan->run($input = new \Symfony\Component\Console\Input\StringInput(trim(str_replace('php artisan', '', $commandline))), $out = new \Symfony\Component\Console\Output\BufferedOutput);
		$artisan->setCatchExceptions(true);
        return $out;
    }
public function run($commandline)
    {
        $this->bootstrap();

        $artisan = $this->getArtisan();
		$artisan->setCatchExceptions(false);
		$artisan->run($input = new \Symfony\Component\Console\Input\StringInput(trim(str_replace('php artisan', '', $commandline))), $out = new \Symfony\Component\Console\Output\BufferedOutput);
		$artisan->setCatchExceptions(true);
        return $out;
    }
Run an Artisan console command by name.

@param  string  $command
@param  array  $parameters
@return int