0% found this document useful (0 votes)
25 views2 pages

Symfony Command Cheat Sheet

Uploaded by

Ounissi Mouadh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views2 pages

Symfony Command Cheat Sheet

Uploaded by

Ounissi Mouadh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Symfony Command Cheat Sheet

General Commands
Clear Cache: php bin/console cache:clear

Check Symfony Version: php bin/console -V

List Available Commands: php bin/console list

Database Commands
Create Database: php bin/console doctrine:database:create

Drop Database: php bin/console doctrine:database:drop --force

Create Database Schema: php bin/console doctrine:schema:create

Update Schema: php bin/console doctrine:schema:update --force

Generate Migrations: php bin/console doctrine:migrations:diff

Execute Migrations: php bin/console doctrine:migrations:migrate

Doctrine Commands
Load Fixtures: php bin/console doctrine:fixtures:load

Generate Entity: php bin/console make:entity

Generate Migration: php bin/console make:migration

Security & Authentication


Create User: php bin/console make:user

Generate a Controller: php bin/console make:controller

Development Commands
Serve the Application: php bin/console server:start

Make a Service: php bin/console make:service

Make a Command: php bin/console make:command


Symfony Profiler & Debugging
Debug Container: php bin/console debug:container

Debug Container (with tags): php bin/console debug:container --tag=doctrine.fixture.orm

Debug Router: php bin/console debug:router

Debug Twig: php bin/console debug:twig

Show Environment Variables: php bin/console debug:env

API & HTTP


Generate API Platform Resource: php bin/console make:api:resource

Test HTTP Requests: php bin/console router:match

Miscellaneous
Generate Translation File: php bin/console make:translation

Generate Form Type: php bin/console make:form

Generate Event Listener: php bin/console make:listener

You might also like