Overview
| Artifact ID: | 8ff28cbfbc156d351b0de4c34b9646cc258b1699206176a5858f31a97e47f039 |
|---|---|
| Page Name: | emacs-symfony-cli |
| Date: | 2025-07-19 20:17:56 |
| Original User: | debian |
| Mimetype: | text/x-markdown |
| Parent: | 5300c217a44be7a23d42988b47c56065ad338a7971b1d8c68927ca0ae6968d79 (diff) |
| Next | 5a6e486d079b8c17e61f2589fa4b463f4127234c576fd1b4c2b374b74a551648 |
Content
emacs-symfony-cli
Status: Pre-Alpha
This Emacs package offers an interface of ./bin/console for Symfony development, inspired by the functionality and user experience of Magit. It aims to streamline usage of Symfony cli making it easier to interact with Symfony projects using Emacs.
Features
- List all Symfony console actions and their options [planned]
- Execute actions and see output buffers with links to the classes for quick jumps [planned]
- Debug routes / service containers and use other debug symfony actions [planned]
How to start contributing
You will need PHP, composer and Symfony installation. Symfony PHP extension requirements
sudo apt install php composer gitgit clone https://github.com/symfony/demo.gitcd demosudo apt install php-sqlite3 php-tokenizer php-xml php-opcache# install symfony required php extensionscomposer install./bin/console# The screen that we need to wrap
Example of ./bin/console output
./bin/console
Symfony 7.2.3 (env: dev, debug: true)
Usage:
command [options] [arguments]
Options:
-h, --help Display help for the given command. When no command is given display help for the list command
--silent Do not output any message
-q, --quiet Only errors are displayed. All other output is suppressed
-V, --version Display this application version
--ansi|--no-ansi Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
-e, --env=ENV The Environment name. [default: "dev"]
--no-debug Switch off debug mode.
--profile Enables profiling (requires debug).
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
about Display information about the current project
completion Dump the shell completion script
help Display help for a command
list List commands
app
app:add-user Creates users and stores them in the database
app:delete-user Deletes users from the database
app:list-users [app:users] Lists all the existing users
asset-map
asset-map:compile Compile all mapped assets and writes them to the final public output directory
assets
assets:install Install bundle's web assets under a public directory
cache
cache:clear Clear the cache
cache:pool:clear Clear cache pools
cache:pool:delete Delete an item from a cache pool
cache:pool:invalidate-tags Invalidate cache tags for all or a specific pool
cache:pool:list List available cache pools
cache:pool:prune Prune cache pools
cache:warmup Warm up an empty cache
config
config:dump-reference Dump the default configuration for an extension
dbal
dbal:run-sql Executes arbitrary SQL directly from the command line.
debug
debug:asset-map Output all mapped assets
debug:autowiring List classes/interfaces you can use for autowiring
debug:config Dump the current configuration for an extension
debug:container Display current services for an application
debug:dotenv List all dotenv files with variables and values
debug:event-dispatcher Display configured listeners for an application
debug:firewall Display information about your security firewall(s)
debug:form Display form type information
debug:router Display current routes for an application
debug:translation Display translation messages information
debug:twig Show a list of twig functions, filters, globals and tests
debug:twig-component Display components and them usages for an application
debug:validator Display validation constraints for classes
doctrine
doctrine:cache:clear-collection-region Clear a second-level cache collection region
doctrine:cache:clear-entity-region Clear a second-level cache entity region
doctrine:cache:clear-metadata Clear all metadata cache of the various cache drivers
doctrine:cache:clear-query Clear all query cache of the various cache drivers
doctrine:cache:clear-query-region Clear a second-level cache query region
doctrine:cache:clear-result Clear all result cache of the various cache drivers
doctrine:database:create Creates the configured database
doctrine:database:drop Drops the configured database
doctrine:fixtures:load Load data fixtures to your database
doctrine:mapping:info Show basic information about all mapped entities
doctrine:migrations:current Outputs the current version
doctrine:migrations:diff Generate a migration by comparing your current database to your mapping information.
doctrine:migrations:dump-schema Dump the schema for your database to a migration.
doctrine:migrations:execute Execute one or more migration versions up or down manually.
doctrine:migrations:generate Generate a blank migration class.
doctrine:migrations:latest Outputs the latest version
doctrine:migrations:list Display a list of all available migrations and their status.
doctrine:migrations:migrate Execute a migration to a specified version or the latest available version.
doctrine:migrations:rollup Rollup migrations by deleting all tracked versions and insert the one version that exists.
doctrine:migrations:status View the status of a set of migrations.
doctrine:migrations:sync-metadata-storage Ensures that the metadata storage is at the latest version.
doctrine:migrations:up-to-date Tells you if your schema is up-to-date.
doctrine:migrations:version Manually add and delete migration versions from the version table.
doctrine:query:dql Executes arbitrary DQL directly from the command line
doctrine:query:sql Executes arbitrary SQL directly from the command line.
doctrine:schema:create Processes the schema and either create it directly on EntityManager Storage Connection or generate the SQL output
doctrine:schema:drop Drop the complete database schema of EntityManager Storage Connection or generate the corresponding SQL output
doctrine:schema:update Executes (or dumps) the SQL needed to update the database schema to match the current mapping metadata
doctrine:schema:validate Validate the mapping files
importmap
importmap:audit Check for security vulnerability advisories for dependencies
importmap:install Download all assets that should be downloaded
importmap:outdated List outdated JavaScript packages and their latest versions
importmap:remove Remove JavaScript packages
importmap:require Require JavaScript packages
importmap:update Update JavaScript packages to their latest versions
lint
lint:container Ensure that arguments injected into services match type declarations
lint:translations Lint translations files syntax and outputs encountered errors
lint:twig Lint a Twig template and outputs encountered errors
lint:xliff Lint an XLIFF file and outputs encountered errors
lint:yaml Lint a YAML file and outputs encountered errors
mailer
mailer:test Test Mailer transports by sending an email
make
make:auth Create a Guard authenticator of different flavors
make:command Create a new console command class
make:controller Create a new controller class
make:crud Create CRUD for Doctrine entity class
make:docker:database Add a database container to your compose.yaml file
make:entity Create or update a Doctrine entity class, and optionally an API Platform resource
make:fixtures Create a new class to load Doctrine fixtures
make:form Create a new form class
make:listener [make:subscriber] Creates a new event subscriber class or a new event listener class
make:message Create a new message and handler
make:messenger-middleware Create a new messenger middleware
make:migration Create a new migration based on database changes
make:registration-form Create a new registration form system
make:reset-password Create controller, entity, and repositories for use with symfonycasts/reset-password-bundle
make:schedule Create a scheduler component
make:security:custom Create a custom security authenticator.
make:security:form-login Generate the code needed for the form_login authenticator
make:serializer:encoder Create a new serializer encoder class
make:serializer:normalizer Create a new serializer normalizer class
make:stimulus-controller Create a new Stimulus controller
make:test [make:unit-test|make:functional-test] Create a new test class
make:twig-component Create a twig (or live) component
make:twig-extension Create a new Twig extension with its runtime class
make:user Create a new security user class
make:validator Create a new validator and constraint class
make:voter Create a new security voter class
make:webhook Create a new Webhook
router
router:match Help debug routes by simulating a path info match
sass
sass:build Builds the Sass assets
secrets
secrets:decrypt-to-local Decrypt all secrets and stores them in the local vault
secrets:encrypt-from-local Encrypt all local secrets to the vault
secrets:generate-keys Generate new encryption keys
secrets:list List all secrets
secrets:remove Remove a secret from the vault
secrets:reveal Reveal the value of a secret
secrets:set Set a secret in the vault
security
security:hash-password Hash a user password
server
server:dump Start a dump server that collects and displays dumps in a single place
server:log Start a log server that displays logs in real time
translation
translation:extract Extract missing translations keys from code to translation files
translation:pull Pull translations from a given provider.
translation:push Push translations to a given provider.
ux
ux:icons:import Import icon(s) from iconify.design
ux:icons:lock Scan project and import icon(s) from iconify.design
ux:icons:search Search icons and icon sets from ux.symfony.com
ux:icons:warm-cache Warm the icon cache