LinuxCommandLibrary

symfony

Symfony PHP framework development CLI

TLDR

Create new project

$ symfony new [project_name]
copy
Create web app
$ symfony new [project_name] --webapp
copy
Start development server
$ symfony server:start
copy
Stop server
$ symfony server:stop
copy
Show server status
$ symfony server:status
copy
Open in browser
$ symfony open:local
copy
Run console command
$ symfony console [command]
copy
Check security
$ symfony check:security
copy

SYNOPSIS

symfony command [options] [args]

DESCRIPTION

symfony is the official command-line tool for managing Symfony PHP framework projects. It provides project scaffolding, a built-in local development server with PHP support, and wrappers for common Symfony console commands.
Project creation offers templates ranging from minimal microservice skeletons to full web applications with pre-configured bundles. The local development server includes automatic HTTPS via locally-trusted certificates, PHP version management, and Docker service integration for databases and other dependencies.
The console wrapper executes Symfony console commands (cache clearing, database migrations, route listing) with automatic environment detection. Security checking scans project dependencies against known vulnerability databases and recommends updates.

PARAMETERS

new NAME

Create project.
server:start
Start local server.
server:stop
Stop server.
console CMD
Run Symfony console.
open:local
Open in browser.
check:security
Check vulnerabilities.
--webapp
Full web app template.
-d, --daemon
Run in background.

CAVEATS

Requires PHP. Full features need Docker. Symfony account for cloud features.

HISTORY

The Symfony CLI was created by SensioLabs for Symfony framework development. It consolidates project management and local development.

SEE ALSO

php(1), composer(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community