sajad torkamani

Install CLI

On macOS, run:

brew install symfony-cli/tap/symfony-cli

For other platforms, see docs.

Show all commands

symfony help

Show commands in namespace

symfony console list <namespace> 

Server recipes

Start web server in foreground mode

symfony server:start

This will start the server on http://localhost:8000 (or increment 8000 if it’s not available).

Start web server in daemon mode

symfony server:start -d

Start web server for specific environment

APP_ENV=test symfony server:start -d

Stop web server

symfony server:stop

Show server status

symfony server:status

Create a local Certificate Authority for serving HTTPS

symfony server:ca:install

Tail logs

Show the logs from PHP, the web server (e.g., Symfony’s dev server), and the application:

symfony server:log
Tagged: Symfony