Create M-x symfony command that outputs symfony binary output to symfony buffer. When it happens it should auto switch to symfony buffer.
Example of output of symfony cli binary:
Symfony CLI version 5.12.0 (c) 2021-2025 Fabien Potencier (2025-07-27T14:12:53+04:00 - stable)
Symfony CLI helps developers manage projects, from local code to remote infrastructure
These are common commands used in various situations:
Work on a project locally
local:new Create a new Symfony project
local:server:start Run a local web server
local:server:stop Stop the local web server
local:check:security Check security issues in project dependencies
composer Runs Composer without memory limit
console Runs the Symfony Console (bin/console) for current project
php, pecl, pear, php-fpm, php-cgi, php-config, phpdbg, phpize, pie Runs the named binary using the configured PHP version
Manage a project on Cloud
project:init Initialize a new project using templates
cloud:domain:list Get a list of all domains
cloud:environment:branch Branch an environment
cloud:environment:list Get a list of environments
cloud:environment:push Push code to an environment
cloud:environment:ssh SSH to the current environment
cloud:project:list Get a list of all active projects
cloud:tunnel:open Open SSH tunnels to an app's relationships
cloud:user:add Add a user to the project
cloud:variable:list List variables
Show all commands with symfony help,
Get help for a specific command with symfony help COMMAND.