Available Commands

CommandUtilisation
about
Affiche les informations concernant le projet Drupal Console
  • chain
    Séquence d'exécution de commandes
  • drupal chain \ --file="/path/to/file/chain-file.yml"
  • check
    Vérificateur de configuration minimale système
  • composerize
    Converts Drupal codebase to composer.
  • exec
    Exécute une commande externe.
  • help
    Affiche de l'aide pour une commande
  • init
    Copie les fichiers de configuration dans le répertoire dédié de l'utilisateur.
  • list
    Liste les commandes
  • shell
    Open a shell providing an interactive REPL (Read–Eval–Print-Loop).
  • server
    Lance le serveur web PHP interne
  • serveur drupal
    serveur drupal 127.0.0.1:8089
    drupal --root=/var/www/drupal8.dev server
  • snippet
    Runs PHP code
  • drupal snippet --file=/path/to/file
    drupal snippet --code=codeToExecute
    drupal snippet --show-code --file=/path/to/file
  • cache:rebuild
    Reconstruit l'ensemble des caches du site.
  • drupal cr all
    drupal cr discovery
  • cache:tag:invalidate
    Invalidate cache tags.
  • drupal cti routes
    drupal cti node:1 node_list
  • config:delete
    Supprimer la configuration
  • drupal config:delete active all
  • config:diff
    Affiche les items de configuration qui sont différents dans la configuration active par rapport à un dossier.
  • drupal config:diff ../config/path
  • config:edit
    Éditer la configuration sélectionnée.
  • drupal config:edit system.cron
    drupal config:edit system.cron gedit
  • config:export
    Exporte la configuration actuelle de l'application.
  • drupal config:export \ --directory="path/to/export"
    drupal config:export \ --directory="path/to/export" \ --tar \ --remove-uuid \ --remove-config-hash
  • config:export:content:type
    Exporte un type de contenu avec les champs qui le composent.
  • drupal config:export:content:type page \ --module="demo"
    drupal config:export:content:type page \ --module="demo" \ --optional-config
  • config:export:entity
    Export a specific config entity and their fields.
  • drupal config:export:entity node_type page \ --module="demo"
    drupal config:export:entity node_type page \ --module="demo" \ --optional-config \ --remove-uuid \ --remove-config-hash
  • config:export:single
    Exporte une unique configuration sous la forme d'un fichier YAML.
  • drupal config:export:single \ --name=config.settings.name
    drupal config:export:single \ --name=config.settings.name \ --remove-uuid \ --remove-config-hash
  • config:export:view
    Exporte une vue vue dans le format YAML au sein d'un module pour la réutiliser sur un autre site.
  • drupal config:export:view viewid
    drupal config:export:view viewid \ --module="modulename" \ --optional-config \ --include-module-dependencies
    drupal config:export:view viewid \ --module="modulename" \ --optional-config \ --include-module-dependencies
  • config:import
    Importe une configuration dans le site courant.
  • drupal config:import \ --file=/path/to/config/file
    drupal config:import \ --directory=/path/to/config/dir
  • config:import:single
    Importer la configuration sélectionnée.
  • drupal config:import:single \ --file="/path/to/file/block.block.default_block.yml"
    drupal config:import:single \ --file="block.block.default_block.yml" \ --directory="/path/to/directory"
  • config:override
    Surcharge la valeur d'une configuration dans la configuration active.
  • drupal config:override contact.settings flood.limit 10
  • config:validate
    Validate a drupal config against its schema
  • drupal config:validate configuration.name
  • create:comments
    Créé des commentaires factices pour votre application Drupal 8.
  • drupal create:comments node-id
    drupal create:comments node-id \ --limit="2" \ --title-words="5" \ --time-range="1"
  • create:nodes
    Créer des nœuds factices pour votre application Drupal 8.
  • drupal create:nodes content-name
    drupal create:nodes content-name \ --limit="5" \ --title-words="5" \ --time-range="1" \ --language="und"
  • create:roles
    Create dummy roles for your Drupal 8 application.
  • drupal create:roles
    drupal create:roles
  • create:terms
    Génère des termes de taxonomie factices pour votre application Drupal 8.
  • drupal create:terms vocabulary
    drupal create:terms tags \ --limit="10" \ --name-words="5"
  • create:users
    Génère des utilisateurs factices pour votre application Drupal 8.
  • drupal create:users role
    drupal create:users role \ --limit="5" \ --password="usersnewpassword" \ --time-range="1"
  • create:vocabularies
    Génère des vocabulaires factices pour votre application Drupal
  • drupal create:vocabularies \ --limit="5" \ --name-words="5"
  • cron:execute
    Lancer une tâche cron d'un module particulier ou l'ensembles des tâches
  • drupal cron:execute
    drupal cron:execute \ <module>
  • cron:release
    Relâche le verrou lié au cron afin de pouvoir le relancer
  • drupal cron:execute
  • database:add
    Add a database to settings.php
  • drupal database:add \ --database=DATABASE \ --username=USERNAME \ --password=PASSWORD
  • database:client
    Lancer une base de données client si disponible
  • drupal database:client <database>
  • database:connect
    Lancer une base de donnée client si disponible
  • drupal database:connect \ <database>
  • database:drop
    Supprime toutes les tables d'une base de données.
  • drupal database:drop \ <database>
  • database:dump
    Exporte la structure et le contenu de votre base de données MySQL
  • drupal database:dump \ <database>
    drupal database:dump \ --gz
  • database:log:clear
    Vide la table DBLog contenant les événements, avec possibilité de fitrer
  • drupal database:log:clear \ <database>
    drupal database:log:clear \ <database> \ --type=TYPE \ --severity=SEVERITY
  • database:log:poll
    Poll the watchdog and print new log entries every x seconds
  • drupal database:log:poll \ 100
  • database:query
    Executes a SQL statement directly as argument
  • drupal database:query 'select * from node limit 0,1'
  • database:restore
    Restaure la structure et le contenu de votre base de données MySQL depuis une sauvegarde
  • drupal database:restore \ --file='/srv/dump/db.sql'
  • debug:breakpoints
    Affiche les breakpoints disponibles dans l'application
  • drupal breakpoints:debug bartik
  • debug:cache:context
    Affiche le contexte de cache courant pour l'application.
  • drupal debug:cache:context
  • debug:chain
    Liste des fichiers chain disponibles
  • debug:config
    Affiche la configuration actuelle.
  • drupal config:debug
    drupal config:debug system.site
    drupal config:debug | grep system
    drupal debug:config --show-overridden
  • debug:config:settings
    Affiche la paire key:value du fichier de configuration.
  • drupal debug:config:settings
  • debug:config:validate
    Validate a schema implementation before a module is installed.
  • drupal debug:config:validate \ /path/to/file \ /path/to/schema-filepath
  • debug:container
    Affiche les services actuels d'une application.
  • drupal debug:container views.views_data_helper
  • debug:cron
    Liste des modules implémentant une tâche cron
  • drupal debug:cron
  • debug:database:log
    Affiche les entrées courantes du journal pour l'application
  • drupal debug:database:log
    drupal debug:database:log 21228
  • debug:database:table
    Montre toutes les tables d'une base de données spécifique.
  • drupal debug:database:table
    drupal debug:database:table node
  • debug:dotenv
    Debug Dotenv debug values.
  • debug:entity
    Debug entities available in the system
  • drupal debug:entity
  • debug:event
    Affiche les événements disponibles
  • drupal debug:evet
    drupal debug:event kernel.request
  • debug:features
    List registered features.
  • debug:hook
    commands.debug.hook.description
  • debug:image:styles
    Liste des styles d'images sur le site
  • drupal debug:image:styles
  • debug:libraries
    Affiche les librairies disponibles dans l'application
  • drupal debug:libraries
    drupal debug:libraries block
    drupal debug:libraries block/drupal.block
  • debug:migrate
    Affiche la migration actuellement disponible dans l'application
  • drupal debug:migrate
  • debug:module
    Affiche les modules actuellement disponibles dans l'application
  • drupal mod --status=installed
    drupal mod --status=installed --type=no-core
  • debug:multisite
    Liste toutes les installations multi-sites disponibles dans le système
  • drupal debug:multisite
  • debug:permission
    Displays all user permissions.
  • drupal debug:permission
  • debug:plugin
    Affiche tous les types de plugins, les instances de plugin d'un certain type, ou la définition d'un plugin spécifique.
  • drupal debug:plugin
    drupal debug:plugin block
    drupal debug:plugin block broken
  • debug:queue
    Affiche la queue de votre application
  • drupal debug:queue
  • debug:rest
    Affiche la resource Rest disponible dans l'application
  • drupal debug:rest
  • debug:roles
    Displays current roles for the application
  • drupal debug:roles
  • debug:router
    Affiche les routes de l'application
  • drupal rod
    drupal rod user.page
    drupal debug:router
    drupal debug:router user.login
    drupal debug:router --pattern=/user/login
  • debug:settings
    Affiche la configuration personnalisée de Drupal Console.
  • drupal debug:settings
  • debug:site
    Liste tous les sites connus en local et distants.
  • drupal debug:site
  • debug:state
    Affiche les clés de l'Etat actuel.
  • drupal debug:state
    drupal debug:state install_task
  • debug:theme
    Affiche les thèmes actuels de l'application
  • drupal debug:theme
    drupal debug:theme bartik
  • debug:theme:keys
    Affiche toutes les clefs de thème définies par les fonctions hook_theme
  • debug:update
    Affiche les mises à jour actuellement disponibles pour l'application
  • drupal debug:update
  • debug:update:composer
    Displays current updates available from the composer file
  • drupal debug:update:composer
  • debug:user
    Liste les utilisateurs de l'application
  • drupal debug:user
  • debug:views
    Affiche des informations à propos des vues de l'application
  • drupal debug:views
  • debug:views:plugins
    Affiche les plugins de vues de l'application
  • drupal debug:views:plugins
  • devel:dumper
    commands.devel.dumper.messages.change-devel-dumper-plugin
  • docker:init
    Create a docker-compose.yml file
  • dotenv:init
    Add support and required config to work with an .env file
  • entity:delete
    Supprime une entité spécifique
  • drupal entity:delete node 1
  • features:import
    Import module config.
  • field:info
    Affiche des informations concernant des champs.
  • generate:ajax:command
    Generate & Register a custom ajax command
  • generate:authentication:provider
    Générer un système d'authentification
  • drupal generate:authentication:provider \ --module="modulename" \ --class="DefaultAuthenticationProvider" \ --provider-id="default_authentication_provider"
  • generate:breakpoint
    Générer un breakpoint
  • drupal generate:breakpoint \ --theme="classy" \ --breakpoints='"breakpoint_name":"narrow", "breakpoint_label":"narrow", "breakpoint_media_query":"all and (min-width: 560px) and (max-width: 850px)", "breakpoint_weight":"1", "breakpoint_multipliers":"1x"'
  • generate:cache:context
    Generate a cache context
  • drupal generate:cache:context \ --module="modulename" \ --cache-context="ContextName" \ --class="DefaultCacheContext"
  • generate:command
    Génère une commande utilisable via la console
  • drupal generate:command \ --extension="ExtensionName" \ --extension-type="module" \ --class="DefaultCommand" \ --name="CommandName"
  • generate:composer
    Generate a composer.json file
  • drupal generate:composer \ --module="module_name" \ --name="drupal/module_name" \ --type="drupal-module" \ --description="Package description" \ --keywords='Drupal' --keywords='logging' \ --license="GPL-2.0+" \ --homepage="https://www.drupal.org/project/module_name" \ --minimum-stability="stable" \ --authors='"name":"Author name", "email":"author@email.com", "homepage":"http://website.com", "role":"Developer"' \ --support='"channel":"email", "url":"author@email.com"' \ --support='"channel":"source", "url":"http://github.com"' \ --required='"name":"drupal/views", "version":"^1.0"' \ --required='"name":"drupal/token", "version":"^2.0"'
  • generate:controller
    Générer & enregistrer un contrôleur
  • drupal generate:controller \ --module="modulename" \ --class="DefaultController" \ --routes='"title":"ControllerMethod", "name":"modulename.default_controller_hello", "method":"hello", "path":"/modulename/hello/{name}"' \ --test
  • generate:entity:bundle
    Génère un nouveau type de contenu (nœud / bundle d'entité)
  • drupal generate:entity:bundle \ --module="modulename" \ --bundle-name="default" \ --bundle-title="default"
  • generate:entity:config
    Génère une nouvelle entité de configuration
  • drupal generate:entity:config \ --module="modulename" \ --entity-class="DefaultEntity" \ --entity-name="default_entity" \ --base-path="/admin/structure" \ --label="Default entity"
  • generate:entity:content
    Génère une nouvelle entité de contenu
  • drupal generate:entity:content \ --module="modulename" \ --entity-class="DefaultEntity" \ --entity-name="default_entity" \ --base-path="/admin/structure" \ --label="Default entity"
    drupal generate:entity:content \ --module="modulename" \ --entity-class="DefaultEntity" \ --entity-name="default_entity" \ --base-path="/admin/structure" \ --label="Default entity" \ --is-translatable \ --revisionable
  • generate:event:subscriber
    Génère un abonné à un événement
  • drupal generate:event:subscriber \ --module="modulename" \ --name="modulename.default" \ --class="DefaultSubscriber" \ --events='kernel_request'
  • generate:form
    Génère un nouveau "FormBase"
  • drupal generate:form \ --module="modulename" \ --class="DefaultForm" \ --form-id="default_form" \ --config-file \ --path="/modulename/form/default"
    drupal generate:form \ --module="modulename" \ --class="DefaultForm" \ --form-id="default_form" \ --config-file \ --inputs='"name":"inputname", "type":"text_format", "label":"InputName", "options":"", "description":"Just a text input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \ --inputs='"name":"email", "type":"email", "label":"Email", "options":"", "description":"Just an email input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \ --path="/modulename/form/default"
  • generate:form:alter
    Génère une implémentation de hook_form_alter() ou de hook_form_FORM_ID_alter
  • drupal generate:form:alter \ --module="modulename"
    drupal generate:form:alter \ --module="modulename" \ --inputs='"name":"inputtext", "type":"text_format", "label":"InputText", "options":"", "description":"Just an input text", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \ --inputs='"name":"email", "type":"email", "label":"Email", "options":"", "description":"Just an email input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""'
  • generate:form:config
    Génère un nouveau "ConfigFormBase"
  • drupal generate:form:config \ --module="modulename" \ --class="DefaultForm" \ --form-id="default_form" \ --config-file \ --path="/modulename/form/default"
    drupal generate:form:config \ --module="modulename" \ --class="DefaultForm" \ --form-id="default_form" \ --config-file \ --inputs='"name":"inputname", "type":"text_format", "label":"InputName", "options":"", "description":"Just a text input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \ --inputs='"name":"email", "type":"email", "label":"Email", "options":"", "description":"Just an email input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \ --path="/modulename/form/default"
  • generate:help
    Génère une implémentation de hook_help()
  • drupal generate:help \ --module="modulename" \ --description="My Awesome Module"
  • generate:jstest
    Generate a JavaScript test.
  • drupal generate:module \ --module="modulename" \ --machine-name="modulename" \ --module-path="/modules/custom" \ --description="My Awesome Module" \ --core="8.x" \ --package="Custom" \ --module-file \ --composer \ --test \ --twigtemplate
  • generate:module
    Génère un module.
  • drupal generate:module \ --module="modulename" \ --machine-name="modulename" \ --module-path="/modules/custom" \ --description="My Awesome Module" \ --core="8.x" \ --package="Custom" \ --module-file \ --composer \ --test \ --twigtemplate
  • generate:module:file
    Génère un fichier .module
  • drupal generate:module:file \ --module="modulename"
  • generate:permissions
    Generate module permissions
  • generate:plugin:block
    Génère un plugin de bloc
  • drupal generate:plugin:block \ --module="modulename" \ --class="DefaultBlock" \ --label="Default block" \ --plugin-id="default_block" \ --theme-region="header" \ --inputs='"name":"inputtext", "type":"text_format", "label":"InputText", "options":"", "description":"Just an input text", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""'
  • generate:plugin:ckeditorbutton
    Génère un plugin de bouton CKEditor.
  • drupal generate:plugin:ckeditorbutton \ --module="modulename" \ --class="DefaultCKEditorButton" \ --label="Default ckeditor button" \ --plugin-id="default ckeditor button" \ --button-name="Default ckeditor button" \ --button-icon-path="modules/custom/modulename/js/plugins/default ckeditor button/images/icon.png"
  • generate:plugin:condition
    Génère un plugin de condition.
  • drupal generate:plugin:condition \ --module="modulename" \ --class="ExampleCondition" \ --label="Example condition" \ --plugin-id="example_condition" \ --context-definition-id="entity:node" \ --context-definition-label="node" \ --context-definition-required
    drupal generate:plugin:condition \ --module="modulename" \ --class="ExampleCondition" \ --label="Example condition" \ --plugin-id="example_condition" \ --context-definition-id="language" \ --context-definition-label="Language" \ --context-definition-required
    drupal generate:plugin:condition \ --module="modulename" \ --class="ExampleCondition" \ --label="Example condition" \ --plugin-id="example_condition" \ --context-definition-id="entity:user_role" \ --context-definition-label="user_role" \ --context-definition-required
  • generate:plugin:field
    Génère des plugins de type, de widget et de formateur de champ.
  • drupal generate:plugin:field \ --module="modulename" \ --type-class="ExampleFieldType" \ --type-label="Example field type" \ --type-plugin-id="example_field_type" \ --type-description="My Field Type" \ --formatter-class="ExampleFormatterType" \ --formatter-label="Example formatter type" \ --formatter-plugin-id="example_formatter_type" \ --widget-class="ExampleWidgetType" \ --widget-label="Example widget type" \ --widget-plugin-id="example_widget_type" \ --field-type="example_field_type" \ --default-widget="example_widget_type" \ --default-formatter="example_formatter_type"
  • generate:plugin:fieldformatter
    Générer un plugin de formateur de champ.
  • drupal generate:plugin:fieldformatter \ --module="modulename" \ --class="ExampleFieldFormatter" \ --label="Example field formatter" \ --plugin-id="example_field_formatter" \ --field-type="text"
  • generate:plugin:fieldtype
    Génère un plugin de type de champ.
  • drupal generate:plugin:fieldtype \ --module="modulename" \ --class="ExampleFieldType" \ --label="Example field type" \ --plugin-id="example_field_type" \ --description="My Field Type"
    drupal generate:plugin:fieldtype \ --module="modulename" \ --class="ExampleFieldType" \ --label="Example field type" \ --plugin-id="example_field_type" \ --description="My Field Type" \ --default-widget="DefaultWidget" \ --default-formatter="DefaultFormatter"
  • generate:plugin:fieldwidget
    Génère un plugin de widget de champ.
  • drupal generate:plugin:fieldwidget \ --module="modulename" \ --class="ExampleFieldWidget" \ --label="Example field widget" \ --plugin-id="example_field_widget" \ --field-type="text"
  • generate:plugin:imageeffect
    Génère un plugin d'effet d'image
  • drupal generate:plugin:imageeffect \ --module="modulename" \ --class="DefaultImageEffect" \ --label="Default image effect" \ --plugin-id="default_image_effect" \ --description="My Image Effect"
  • generate:plugin:imageformatter
    Génère un plugin de formateur d'image.
  • drupal generate:plugin:imageformatter \ --module="modulename" \ --class="ExampleImageFormatter" \ --label="Example image formatter" \ --plugin-id="example_image_formatter"
  • generate:plugin:mail
    Génère un plugin de courriel
  • drupal generate:plugin:mail \ --module="modulename" \ --class="HtmlFormatterMail" \ --label="Html formatter mail" \ --plugin-id="html_formatter_mail"
  • generate:plugin:migrate:dataparser
    Generate a migrate data parser
  • drupal generate:plugin:migrate:source \ --module="modulename" \ --class="PluginClassName" \ --plugin-id="plugin_class_name" \ --plugin-title="Data parser"
  • generate:plugin:migrate:process
    Generate a migrate process plugin
  • drupal generate:plugin:migrate:process \ --module="modulename" \ --class="MigrationProcess" \ --plugin-id="migrationprocess"
  • generate:plugin:migrate:source
    Generate a migrate source plugin
  • drupal generate:plugin:migrate:source \ --module="modulename" \ --class="PluginClassName" \ --plugin-id="plugin_class_name" \ --table="DefaultTableName" \ --alias="D"
    drupal generate:plugin:migrate:source \ --module="modulename" \ --class="DefaultPluginClass" \ --plugin-id="default_plugin_class" \ --table="users" \ --alias="u" \ --fields='"id":"id", "description":"the user id"' \ --fields='"id":"username", "description":"the username"' \ --fields='"id":"password", "description":"the user password"' \ --fields='"id":"email", "description":"the user email"'
  • generate:plugin:queue
    Drupal Console Queueworker generator.
  • drupal generate:plugin:queue \ --module="modulename" \ --class="PluginClassName" \ --plugin-id="plugin_class_name" \ --cron-time="30" \ --label="Example QueueWorker"
  • generate:plugin:rest:resource
    Génère un plugin de ressource rest
  • drupal generate:plugin:rest:resource \ --module="modulename" \ --class="DefaultRestResource" \ --plugin-id="default_rest_resource" \ --plugin-label="Default rest resource" \ --plugin-url="http://rest.resources.example.com" \ --plugin-states='GET'
  • generate:plugin:rules:action
    Generate a plugin rule action
  • drupal generate:plugin:rules:action \ --module="modulename" \ --class="DefaultAction" \ --label="Default Action" \ --plugin-id="default_action" \ --category="Action category" \ --context='"name":"user", "type":"entity:user", "label":"Context label", "description":"Context description"'
    drupal generate:plugin:rules:action \ --module="modulename" \ --class="DefaultAction" \ --label="Default Action" \ --plugin-id="default_action" \ --category="Action category" \ --context='"entity":"node", "type":"entity", "label":"Context label", "description":"Context description"'
  • generate:plugin:rules:dataprocessor
    Generate a plugin rule dataprocessor
  • drupal generate:plugin:rules:dataprocessor \ --module="modulename" \ --class="DefaultDataprocessor" \ --label="Default dataprocessor" \ --plugin-id="default_dataprocessor" \
  • generate:plugin:skeleton
    Génère une implémentation d'un squelette de plugin pour les plugins Drupal Console qui n'ont pas de générateur spécifique
  • drupal generate:plugin:skeleton \ --module="modulename" \ --plugin-id="link_relation_type" \ --class="DefaultLinkRelationType"
  • generate:plugin:type:annotation
    Génère un type de plugin avec des annotations (mécanisme de découverte)
  • drupal generate:plugin:type:annotation \ --module="modulename" \ --class="ExamplePlugin" \ --machine-name="example_plugin" \ --label="Example plugin"
  • generate:plugin:type:yaml
    Generate a plugin type with Yaml discovery
  • drupal generate:plugin:type:yaml \ --module="modulename" \ --class="ExamplePlugin" \ --plugin-name="example_plugin" \ --plugin-file-name="example.plugin"
  • generate:plugin:validationconstraint
    Generate a validation constraint plugin.
  • drupal generate:plugin:validationconstraint \ --module="modulename" \ --class="ExampleConstraint" \ --label="Example validation constraint" \ -plugin-id="example_validation_constraint" \ --hook \ --field-id="field_exmaple_id" \ --bundle="entity_example_bundle" \ --no-interaction
  • generate:plugin:views:field
    Génère un plugin personnalisé de champ de vue.
  • drupal generate:plugin:views:field \ --module="modulename" \ --class="CustomViewsField" \ --title="Custom views field" \ --description="My awesome custom views field plugin."
  • generate:post:update
    Génère une implémentation de hook_post_update_NAME()
  • drupal generate:post:update \ --module="modulename" \ --post-update-name="PostUpdateName"
  • generate:profile
    Génère un profil.
  • drupal generate:profile \ --profile="NewProfileName" \ --machine-name="newprofilename" \ --description="My Useful Profile" \ --core="8.x" \ --dependencies="modulename"
  • generate:routesubscriber
    Génèrer un RouteSubscriber
  • drupal generate:routesubscriber \ --module="modulename" \ --name="modulename.route_subscriber" \ --class="RouteSubscriber"
  • generate:service
    Génère un service
  • drupal generate:service \ --module="modulename" \ --name="modulename.default" \ --class="DefaultService" \ --path-service="/modules/custom/modulename/src/"
    drupal generate:service \ --module="modulename" \ --name="modulename.default" \ --class="DefaultService" \ --interface \ --interface-name="InterfaceName" \ --path-service="/modules/custom/modulename/src/"
  • generate:site:alias
    Generates a site alias.
  • drupal generate:site:alias \ --name="demo" \ --environment="dev" \ --type="ssh" \ --composer-root="/path/to/remote/project" \ --site-uri="default" \ --host="hostName/domain" \ --user="userName" \ --port="port" \ --drupal-console-binary="drupal" \ --extra-options="-tt" \ --directory="/Users/hjuarez/drupalSq/console/"
  • generate:theme
    Génère un theme.
  • drupal generate:theme \ --theme="AnotherTheme" \ --machine-name="anothertheme" \ --theme-path="/themes/custom" \ --description="My Awesome theme" \ --core="8.x" \ --package="PackageName" \ --global-library="global-styling" \ --base-theme="false"
    drupal generate:theme \ --theme="MyTheme" \ --machine-name="mytheme" \ --theme-path="/themes/custom" \ --description="My Awesome theme" \ --core="8.x" \ --package="MyThemePackage" \ --global-library="global-styling" \ --base-theme="stable" \ --regions='"region_name":"Content", "region_machine_name":"content"' \ --regions='"region_name":"Panel", "region_machine_name":"panel"' \ --breakpoints='"breakpoint_name":"narrow", "breakpoint_label":"narrow", "breakpoint_media_query":"all and (min-width: 560px) and (max-width: 850px)", "breakpoint_weight":"1", "breakpoint_multipliers":"1x"'
  • generate:twig:extension
    Génère une extension Twig.
  • drupal generate:twig:extension \ --module="modulename" \ --name="modulename.twig.extension" \ --class="DefaultTwigExtension"
  • generate:update
    Génère une implémentation de hook_update_N()
  • drupal generate:update \ --module="modulename" \ --update-n="8001"
  • image:styles:flush
    Vide les caches par style d'image ou pour tous les styles d'image
  • drupal image:styles:flush large
    drupal image:styles:flush thumbnail
  • locale:language:add
    Ajoute une langue à votre site
  • locale:language:delete
    Supprime une langue de votre site
  • locale:translation:status
    Liste des mises à jour de traduction disponibles
  • migrate:execute
    Exécute une migration disponible dans l'application
  • migrate:rollback
    Rollback one or multiple migrations
  • migrate:setup
    Charge et créé les migrations adéquates pour la base de données existante indiquée
  • module:dependency:install
    Install dependencies module in the application
  • drupal module:dependency:install modulename
  • module:download
    Télécharge le module ou les modules dans l'application
  • drupal module:download modulename \ --path="modules/contrib"
  • module:install
    Installe un ou plusieurs modules dans l'application
  • drupal module:install modulename
  • module:path
    Renvoie le chemin relatif vers le module (ou le chemin absolu)
  • drupal module:path modulename
  • module:uninstall
    Désinstalle le ou les modules de l'application
  • drupal module:uninstall modulename
  • module:update
    Met à jour le cœur, ou bien un ou plusieurs modules de l'application
  • drupal module:update modulename \ --composer
  • multisite:new
    Prépare les fichiers pour une nouvelle installation multi-sites.
  • drupal multisite:new vendor/newsite http://mysite.example.com
  • multisite:update
    Update the files for a multisite installed.
  • drupal multisite:update
  • node:access:rebuild
    Reconstruit les permissions d'accès aux noeuds. Le processus supprimera tous les privilèges sur le contenu et les remplacera par des permissions basés sur les modules et la configuration actuels.
  • drupal node:access:rebuild --batch
  • queue:run
    Traite la queue sélectionnée.
  • quick:start
    Download, install and serve a new Drupal project
  • rest:disable
    Désactive une ressource Rest dans l'application
  • rest:enable
    Active une ressource Rest de l'application
  • role:delete
    Delete roles for the application
  • drupal role:delete moderator
  • role:new
    Create roles for the application
  • drupal role:new moderator moderator
  • router:rebuild
    Reconstruit les routes de l'application
  • drupal router:rebuild
  • settings:set
    Change une valeur de configuration spécifique dans le fichier de configuration de Drupal Console
  • drupal settings:set application.language es
  • site:import:local
    Importe/Configure un projet local Drupal existant
  • drupal site:import:local SiteName /private/var/www/vhost/anexusit/drupal8.dev/web
  • site:install
    Installe un site Drupal
  • drupal site:install standard \ --langcode="en" \ --db-type="mysql" \ --db-host="127.0.0.1" \ --db-name="drupal8" \ --db-user="u53rn4m3" \ --db-pass="dbp455" \ --db-port="3306" \ --site-name="Drupal 8" \ --site-mail="admin@example.com" \ --account-name="admin" \ --account-mail="admin@example.com" \ --account-pass="p455w0rd"
    drupal site:install standard mysql://dbUser:dbPass@dbHost/dbName \ --langcode="en" \ --site-name="Drupal 8" \ --site-mail="admin@example.com" \ --account-name="admin" \ --account-mail="admin@example.com" \ --account-pass="p455w0rd"
  • site:maintenance
    Fait basculer le site en mode maintenance
  • drupal site:maintenance on
    drupal site:maintenance off
  • site:mode
    Change la configuration de la performance du système
  • drupal site:mode prod
    drupal site:mode dev
  • site:new
    Download a new Drupal project
  • site:statistics
    Affiche les statistiques actuelles du site web.
  • site:status
    Voir l'état actuel de l'installation Drupal
  • drupal site:status \ --format="table"
  • state:delete
    Supprime l'Etat
  • drupal state:delete comment.maintain_entity_statistics
  • state:override
    Surcharge la clé d'un Etat.
  • drupal state:override comment.node_comment_statistics_scale "!!float 1"
  • taxonomy:term:delete
    Delete taxonomy terms from a vocabulary
  • drupal taxonomy:term:delete tags
  • theme:download
    Télécharge un thème dans l'application
  • drupal theme:download Alina 7.x-1.2
  • theme:install
    Installe un ou plusieurs thèmes dans l'application
  • drupal theme:install mytheme
  • theme:path
    Renvoie le chemin relatif du thème (ou le chemin absolu)
  • drupal theme:path mytheme
  • theme:uninstall
    Désisntalle un ou plusieurs thèmes dans l'application
  • drupal theme:uninstall mytheme
  • update:entities
    Applique des mises à jour d'entités
  • drupal update:entities
  • update:execute
    Exécute une fonction de mise à jour N dans un module, ou bien exécute toutes les fonctions
  • drupal update:execute
    drupal update:execute system
  • user:create
    Create users for the application
  • drupal user:create john p455w0rd \ --roles='authenticated' \ --email="john@anexusit.com" \ --status="1"
    drupal user:create doe p455w0rd \ --roles='administrator' \ --email="doe@anexusit.com" \ --status="1"
  • user:delete
    Supprime des utilisateurs de l'application
  • drupal user:delete \ --user-id="2" --roles='authenticated'
    drupal user:delete \ --user-id="3"
    drupal user:delete \ --role="authenticated"
  • user:login:clear:attempts
    Nettoie les tentatives de connexion ratés pour un compte.
  • user:login:url
    Retourne une url de connection à validité unique pour un utilisateur.
  • drupal user:login:url 1
    drupal user:login:url jmolivas
  • user:password:hash
    Génère un hash à partir d'un mot de passe en texte brut.
  • drupal user:password:hash p455w0rd
  • user:password:reset
    Réinitialise le mot de passe pour un utilisateur spécifique.
  • drupal user:password:reset 2 p455w0rd
    drupal user:password:reset jmolivas p455w0rd
  • user:role
    Ajoute/retire un rôle à un utilisateur donné
  • drupal user:role add admin administrator
    drupal user:role remove admin administrator
  • user:unblock
    Unblock a specific user.
  • drupal user:unblock 2
    drupal user:unblock johndoe
  • views:disable
    Désactive une vue
  • drupal views:disable content
    drupal views:disable frontpage
  • views:enable
    Active une vue
  • drupal views:enable content
    drupal views:enable frontpage