A tool to generate boilerplate code, interact with and debug Drupal.

Overview

Table of Contents generated with DocToc

Drupal Console

Gitter Build Status Latest Stable Version Latest Unstable Version Software License SensioLabsInsight

The Drupal CLI. A tool to generate boilerplate code, interact with and debug Drupal.

Latest Version

Details of the latest version can be found on the Drupal Console project page under https://drupalconsole.com/.

Releases Page

All notable changes to this project will be documented in the releases page

Documentation

The most up-to-date documentation can be found at https://drupalconsole.com/docs/.

More information about using this project at the official documentation.

Required PHP Version

PHP 5.5.9 or higher is required to use the Drupal Console application.

Download

Install Drupal Console Using Composer

Install Drupal Console Launcher

Installing Drupal Console on Windows

Run

Using the DrupalConsole Launcher

drupal

We highly recommend you to install the global executable, but if is not installed, you can run Drupal Console depending on your installation by executing:

vendor/bin/drupal
# or
vendor/drupal/console/bin/drupal
# or
bin/drupal

Drupal Console Support

You can ask for support at Drupal Console gitter chat room http://bit.ly/console-support.

Contribute to Drupal Console

Enabling Autocomplete

/dev/null # Zsh: Add this line to your shell configuration file. source "$HOME/.console/console.rc" 2>/dev/null # Fish: Create a symbolic link ln -s ~/.console/drupal.fish ~/.config/fish/completions/drupal.fish">
# You can enable autocomplete by executing
drupal init

# Bash: Bash support depends on the http://bash-completion.alioth.debian.org/
# project which can be installed with your package manager of choice. Then add
# this line to your shell configuration file.
source "$HOME/.console/console.rc" 2>/dev/null

# Zsh: Add this line to your shell configuration file.
source "$HOME/.console/console.rc" 2>/dev/null

# Fish: Create a symbolic link
ln -s ~/.console/drupal.fish ~/.config/fish/completions/drupal.fish

Contributors

Full list of contributors

Supporting Organizations

All supporting organizations

Drupal is a registered trademark of Dries Buytaert.

Comments
  • [console] Uncaught Error: Call to undefined method Drupal\Console\Core\Utils\DrupalFinder::getVendorDir()

    [console] Uncaught Error: Call to undefined method Drupal\Console\Core\Utils\DrupalFinder::getVendorDir()

    Problem/Motivation

    Running any drupal console commands results in the following error:

    PHP Fatal error:  Uncaught Error: Call to undefined method 
    Drupal\Console\Core\Utils\DrupalFinder::getVendorDir() 
    in /vagrant/vendor/drupal/console-core/src/Utils/DrupalFinder.php:24
    Stack trace:
    #0 /vagrant/vendor/drupal/console/bin/drupal.php(37): 
    Drupal\Console\Core\Utils\DrupalFinder->locateRoot('/var/www/drupal...')
    #1 /vagrant/vendor/drupal/console/bin/drupal(4): require('/vagrant/vendor...')
    #2 {main}
      thrown in /vagrant/vendor/drupal/console-core/src/Utils/DrupalFinder.php on line 24
    
    Fatal error: Uncaught Error: Call to undefined method 
    Drupal\Console\Core\Utils\DrupalFinder::getVendorDir() in 
    /vagrant/vendor/drupal/console-core/src/Utils/DrupalFinder.php on line 24
    
    Error: Call to undefined method Drupal\Console\Core\Utils\DrupalFinder::getVendorDir() in 
    /vagrant/vendor/drupal/console-core/src/Utils/DrupalFinder.php on line 24
    
    Call Stack:
        0.0000     350048   1. {main}() /vagrant/vendor/drupal/console/bin/drupal:0
        0.0011     363096   2. require('/vagrant/vendor/drupal/console/bin/drupal.php') /vagrant/vendor/drupal/console/bin/drupal:4
        0.0461    2202368   3. Drupal\Console\Core\Utils\DrupalFinder->locateRoot() /vagrant/vendor/drupal/console/bin/drupal.php:37
    

    drupal/console 1.0.0-rc19 The Drupal CLI. A tool to generate boilerplate code, interact with and debug Drupal. drupal/console-core 1.0.0-rc19 Drupal Console Core drupal/console-en 1.0.0-rc19 Drupal Console English Language drupal/console-extend-plugin 0.6.0 Drupal Console Extend Plugin

    Running Drupal 8.3.2

    It was working fine until running a recent composer update. Now getting this.

    opened by welly 63
  • Bad path to /vendor/drupal/console-core/services.yml after console update

    Bad path to /vendor/drupal/console-core/services.yml after console update

    I have DC globally installed with composer, was working fine before rc2. I've updated to rc4 and composer updated the project drupal console to rc4 as well, but still broken.

    Project structure: composer_root - vendor - web

    outside web, "drupal list" gets the outside-root directory available commands list. Inside, it throws this error: The file "composer_root/web//vendor/drupal/console-core/services.yml" does not exist. in Symfony\Component\Config\FileLocator->locate()

    Of course, the correct path is composer_root/web/../vendor/drupal/console-core/services.yml

    console seems to know that "web" is the drupal webroot, but how can I tell it that it needs to go up a level to find the vendor directory?

    And what is calling for services.yml? I don't grep that in ~/.console

    bug Hacktoberfest 
    opened by ransomweaver 52
  •  drupal/console: Installation failed

    drupal/console: Installation failed

    Installation failed, reverting ./composer.json to its original content

    Your requirements could not be resolved to an installable set of packages.

    `(10:24:22) [informedia] composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

    Problem 1 - Conclusion: don't install drupal/console 1.8.0 - Conclusion: don't install drupal/console 1.7.0 - Conclusion: don't install drupal/console 1.6.1 - Conclusion: don't install drupal/console 1.6.0 - Conclusion: don't install drupal/console 1.5.0 - Conclusion: don't install drupal/console 1.4.0 - Conclusion: don't install drupal/console 1.3.2 - Conclusion: don't install drupal/console 1.3.1 - Conclusion: don't install drupal/console 1.3.0 - Conclusion: don't install drupal/console 1.2.0 - Conclusion: don't install drupal/console 1.1.1 - Conclusion: don't install drupal/console 1.1.0 - Conclusion: don't install drupal/console 1.0.2 - Conclusion: don't install drupal/console 1.0.1 - Conclusion: don't install drupal/console 1.0.0 - Conclusion: don't install drupal/console 1.0.0-rc26 - drupal/console 1.0.0-alpha1 requires symfony/http-foundation ~2.8 -> satisfiable by symfony/http-foundation[2.8.x-dev]. - drupal/console 1.0.0-alpha2 requires symfony/http-foundation ~2.8 -> satisfiable by symfony/http-foundation[2.8.x-dev]. - drupal/console 1.0.0-beta1 requires symfony/http-foundation ~2.8 -> satisfiable by symfony/http-foundation[2.8.x-dev]. - drupal/console 1.0.0-beta2 requires symfony/http-foundation ~2.8 -> satisfiable by symfony/http-foundation[2.8.x-dev]. - drupal/console 1.0.0-beta3 requires symfony/http-foundation ~2.8 -> satisfiable by symfony/http-foundation[2.8.x-dev]. - drupal/console 1.0.0-beta4 requires symfony/http-foundation ~2.8 -> satisfiable by symfony/http-foundation[2.8.x-dev]. - drupal/console 1.0.0-beta5 requires symfony/http-foundation ~2.8 -> satisfiable by symfony/http-foundation[2.8.x-dev]. - drupal/console 1.0.0-rc1 requires symfony/http-foundation ~2.8 -> satisfiable by symfony/http-foundation[2.8.x-dev]. - drupal/console 1.0.0-rc10 requires symfony/http-foundation ~2.8 -> satisfiable by symfony/http-foundation[2.8.x-dev]. - drupal/console 1.0.0-rc2 requires symfony/http-foundation ~2.8 -> satisfiable by symfony/http-foundation[2.8.x-dev]. - drupal/console 1.0.0-rc22 requires symfony/http-foundation ~2.8 -> satisfiable by symfony/http-foundation[2.8.x-dev]. - drupal/console 1.0.0-rc23 requires symfony/http-foundation ~2.8 -> satisfiable by symfony/http-foundation[2.8.x-dev]. - drupal/console 1.0.0-rc24 requires symfony/http-foundation ~2.8 -> satisfiable by symfony/http-foundation[2.8.x-dev]. - drupal/console 1.0.0-rc25 requires symfony/http-foundation ~2.8 -> satisfiable by symfony/http-foundation[2.8.x-dev]. - drupal/console 1.0.0-rc3 requires symfony/http-foundation ~2.8 -> satisfiable by symfony/http-foundation[2.8.x-dev]. - drupal/console 1.0.0-rc4 requires symfony/http-foundation ~2.8 -> satisfiable by symfony/http-foundation[2.8.x-dev]. - drupal/console 1.0.0-rc5 requires symfony/http-foundation ~2.8 -> satisfiable by symfony/http-foundation[2.8.x-dev]. - drupal/console 1.0.0-rc6 requires symfony/http-foundation ~2.8 -> satisfiable by symfony/http-foundation[2.8.x-dev]. - drupal/console 1.0.0-rc7 requires symfony/http-foundation ~2.8 -> satisfiable by symfony/http-foundation[2.8.x-dev]. - drupal/console 1.0.0-rc8 requires symfony/http-foundation ~2.8 -> satisfiable by symfony/http-foundation[2.8.x-dev]. - drupal/console 1.0.0-rc9 requires symfony/http-foundation ~2.8 -> satisfiable by symfony/http-foundation[2.8.x-dev]. - Conclusion: don't install symfony/http-foundation 2.8.x-dev - drupal/console 1.0.0-rc15 requires symfony/http-foundation >=2.7 <3.0 -> satisfiable by symfony/http-foundation[2.7.x-dev, 2.8.x-dev]. - drupal/console 1.0.0-rc16 requires symfony/http-foundation >=2.7 <3.0 -> satisfiable by symfony/http-foundation[2.7.x-dev, 2.8.x-dev]. - drupal/console 1.0.0-rc17 requires symfony/http-foundation >=2.7 <3.0 -> satisfiable by symfony/http-foundation[2.7.x-dev, 2.8.x-dev]. - drupal/console 1.0.0-rc18 requires symfony/http-foundation >=2.7 <3.0 -> satisfiable by symfony/http-foundation[2.7.x-dev, 2.8.x-dev]. - drupal/console 1.0.0-rc19 requires symfony/http-foundation >=2.7 <3.0 -> satisfiable by symfony/http-foundation[2.7.x-dev, 2.8.x-dev]. - drupal/console 1.0.0-rc20 requires symfony/http-foundation >=2.7 <3.0 -> satisfiable by symfony/http-foundation[2.7.x-dev, 2.8.x-dev]. - drupal/console 1.0.0-rc21 requires symfony/http-foundation >=2.7 <3.0 -> satisfiable by symfony/http-foundation[2.7.x-dev, 2.8.x-dev]. - Conclusion: don't install symfony/http-foundation 2.7.x-dev - drupal/console 1.0.0-rc14 requires drupal/console-core 1.0.0-rc14 -> satisfiable by drupal/console-core[1.0.0-rc14]. - Conclusion: don't install drupal/console-core 1.0.0-rc14 - drupal/console 1.0.0-rc13 requires drupal/console-core 1.0.0-rc13 -> satisfiable by drupal/console-core[1.0.0-rc13]. - Conclusion: don't install drupal/console-core 1.0.0-rc13 - drupal/console 1.0.0-rc12 requires drupal/console-core 1.0.0-rc12 -> satisfiable by drupal/console-core[1.0.0-rc12]. - Conclusion: don't install drupal/console-core 1.0.0-rc12 - Conclusion: remove symfony/http-foundation v3.4.9 - Installation request for symfony/dom-crawler (locked at v4.0.9) -> satisfiable by symfony/dom-crawler[v4.0.9]. - Installation request for symfony/console (locked at v3.4.9, required as ~3.4.0) -> satisfiable by symfony/console[v3.4.9]. - Installation request for drupal/console ~1.0 -> satisfiable by drupal/console[1.0.0, 1.0.0-alpha1, 1.0.0-alpha2, 1.0.0-beta1, 1.0.0-beta2, 1.0.0-beta3, 1.0.0-beta4, 1.0.0-beta5, 1.0.0-rc1, 1.0.0-rc10, 1.0.0-rc11, 1.0.0-rc12, 1.0.0-rc13, 1.0.0-rc14, 1.0.0-rc15, 1.0.0-rc16, 1.0.0-rc17, 1.0.0-rc18, 1.0.0-rc19, 1.0.0-rc2, 1.0.0-rc20, 1.0.0-rc21, 1.0.0-rc22, 1.0.0-rc23, 1.0.0-rc24, 1.0.0-rc25, 1.0.0-rc26, 1.0.0-rc3, 1.0.0-rc4, 1.0.0-rc5, 1.0.0-rc6, 1.0.0-rc7, 1.0.0-rc8, 1.0.0-rc9, 1.0.1, 1.0.2, 1.1.0, 1.1.1, 1.2.0, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1.5.0, 1.6.0, 1.6.1, 1.7.0, 1.8.0]. - Conclusion: don't install symfony/http-foundation v3.4.9 - drupal/console 1.0.0-rc11 requires symfony/http-foundation >=2.7 <3.2 -> satisfiable by symfony/http-foundation[2.7.x-dev, 2.8.x-dev, 3.0.x-dev, 3.1.x-dev]. - Can only install one of: symfony/http-foundation[3.0.x-dev, v3.4.9]. - Can only install one of: symfony/http-foundation[3.1.x-dev, v3.4.9]. - Installation request for symfony/http-foundation (locked at v3.4.9, required as ~3.4.0) -> satisfiable by symfony/http-foundation[v3.4.9].

    Installation failed, reverting ./composer.json to its original content.`

    opened by b3wii 41
  • [meta] Register generator commands in the Drupal container.

    [meta] Register generator commands in the Drupal container.

    Problem/Motivation

    Register Drupal Console generator commands as services on the Drupal container.

    Why

    • Improve command discover and take advantage of dependency injection.

    Solution

    Remove class import

    use Drupal\Console\Command\GeneratorCommand;
    

    Extend from Command

    Add use keyword

    use Symfony\Component\Console\Command\Command;
    

    Update class to extend from Command

    class AwesomeCommand extends Command
    

    Add CommandTrait

    Add use keyword

    use Drupal\Console\Command\Shared\CommandTrait;
    

    Add use trait:

    use CommandTrait; 
    

    Remove createGenerator

    protected function createGenerator()
    {
      ...
    }
    

    Remove line on execute

    $generator = $this->getGenerator();
    

    Register generator class (not the command class) as service

    File config/services/generator.yml

      console.awesome_generator:
        class: Drupal\Console\Generator\AwesomeGenerator
        tags:
          - { name: drupal.generator }
    

    NOTE: Make sure you tag as drupal.generator.

    Register generator command class as a service.

    File config/services/generate.yml

    console.awesome:
       class: Drupal\Console\Command\Generate\AwesomeCommand
       arguments: ['@console.awesome_generator', '@service_id', '@other_service_id']
       tags:
          - { name: drupal.command }
    

    NOTE: Make sure you inject the previously registered generator class service.

    How to know which services to inject

    Any call to:

    $this->getService('SERVICE_NAME')
    $this->getDrupalService('SERVICE_NAME')
    $this->get('SERVICE_NAME')
    \Drupal::service('SERVICE_NAME')
    \Drupal::getContainer()->get('SERVICE_NAME')
    $this->getApplication()->getContainerHelper()->get('SERVICE_NAME')
    

    Should be added as argument: ['@SERVICE_NAME'] on the service definition.

    Inject service add use, property and constructor method.

    ...
    use Drupal\Console\Generator\AwesomeGenerator;
    use Vendor\Package\ServiceName;
    ...
    
        /**
         * @var AwesomeGenerator
         */
        protected $generator; 
    
        /**
         * @var ServiceName
         */
        protected $serviceName; 
    
        /**
         * AwesomeCommand constructor.
         * @param ServiceName $serviceName
         */
        public function __construct(AwesomeGenerator generator, ServiceName $serviceName) {
            $this->generator = $generator;
            $this->serviceName = $serviceName;
            parent::__construct();
        }
    

    NOTES:

    • You can find the Vendor\Package\ServiceName of your service by executing from your Drupal 8 site drupal container:debug SERVICE_NAME.
    • Make sure you call the parent::__construct(); on the added __constructmethod.

    Some methods and classes has been relocated to new service and maybe renamed, this is the table mapping those changes.

    | Current | New Service name | New Method name | | --- | --- | --- | | $this->get('site')->loadLegacyFile | console.site | loadLegacyFile |

    How to test

    Read setup instructions at https://gist.github.com/jmolivas/97bbd07f328217be3564a434c5bd2618

    Related documentation

    • http://symfony.com/doc/current/console/commands_as_services.html

    Related issues:

    • [meta] Register commands as services https://github.com/hechoendrupal/DrupalConsole/issues/2225

    Completed Namespace

    • [x] AuthenticationProviderCommand.php
    • [x] BreakPointCommand.php
    • [x] CommandCommand.php
    • [x] ConfigFormBaseCommand.php
    • [x] ControllerCommand.php
    • [ ] EntityBundleCommand.php
    • [ ] EntityCommand.php
    • [ ] EntityConfigCommand.php
    • [ ] EntityContentCommand.php
    • [x] EventSubscriberCommand.php
    • [x] FormAlterCommand.php
    • [x] FormBaseCommand.php
    • [x] FormCommand.php
    • [x] HelpCommand.php
    • [x] ModuleCommand.php
    • [ ] ModuleFileCommand.php
    • [x] PermissionCommand.php
    • [x] PluginBlockCommand.php
    • [x] PluginCKEditorButtonCommand.php
    • [ ] PluginConditionCommand.php
    • [x] PluginFieldCommand.php
    • [x] PluginFieldFormatterCommand.php
    • [x] PluginFieldTypeCommand.php
    • [x] PluginFieldWidgetCommand.php
    • [x] PluginImageEffectCommand.php
    • [x] PluginImageFormatterCommand.php
    • [x] PluginMailCommand.php
    • [x] PluginRestResourceCommand.php
    • [x] PluginRulesActionCommand.php
    • [x] PluginSkeletonCommand.php
    • [x] PluginTypeAnnotationCommand.php
    • [x] PluginTypeYamlCommand.php
    • [x] PluginViewsFieldCommand.php
    • [x] PostUpdateCommand.php
    • [x] ProfileCommand.php
    • [x] RouteSubscriberCommand.php
    • [x] ServiceCommand.php
    • [x] ThemeCommand.php
    • [x] TwigExtensionCommand.php
    • [x] UpdateCommand.php
    • Make sure you add a comment on the generator you take to work to avoid working on same classes.
    • Make sure you get latest changes from Drupal Console repository for instructions Keeping your fork up to date
    opened by jmolivas 41
  • [Doctrine\Common\Annotations\AnnotationException] if using drupal console command inside drupal project directory

    [Doctrine\Common\Annotations\AnnotationException] if using drupal console command inside drupal project directory

    If I try a drupal console command inside a drupal webroot I always get this error. Any ideas whats wrong?

    [Doctrine\Common\Annotations\AnnotationException] [Semantical Error] The class "Drupal\Console\Annotation\DrupalCommand" is not annotated with @Annotation. Are you sure this class can be used as annotation? If so, then you need to add @A nnotation to the _class_ doc comment of "Drupal\Console\Annotation\DrupalCommand". If it is indeed no annotation, then you need to add @IgnoreAnnotation("DrupalCommand") to the _class_ do c comment of class Drupal\Console\Command\Migrate\DebugCommand.

    opened by marcusx 39
  • Generate is not defined

    Generate is not defined

    Need some help, everything was working great on D8 beta 6. I just upgraded to beta 11 and tried to upgrade console to match, and now nothing works. Looks like it doesn't think I'm in my drupal root directory, but I absolutely am.

    Executing commands from the drupal root folder"

    drupal
    Drupal Console version 0.7.14
    
    Usage:
     command [options] [arguments]
    
    Options:
     --help (-h)           Display this help message
     --quiet (-q)          Do not output any message
     --verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
     --version (-V)        Display this application version
     --ansi                Force ANSI output
     --no-ansi             Disable ANSI output
     --no-interaction (-n) Do not ask any interactive question
     --drupal (-d)         Path to Drupal root.
     --shell (-s)          Launch the shell.
     --env (-e)            The Environment name. (default: "prod")
     --no-debug            Switches off debug mode.
     --learning            Generate a verbose code output.
    
    Available commands:
     help          Displays help for a command
     init          Copy configuration files to user home directory.
     list          Lists commands
     self-update   Update the console to latest version.
    
     In order to list all of the available commands, you should run this inside a drupal root directory.
    
    drupal generate 
    
    
    
      [InvalidArgumentException]
      Command "generate" is not defined.
    
    
    
    drupal generate -v
    
    
    
      [InvalidArgumentException]
      Command "generate" is not defined.
    
    
    
    Exception trace:
     () at phar:///usr/local/bin/drupal/vendor/symfony/console/Symfony/Component/Console/Application.php:549
     Symfony\Component\Console\Application->find() at phar:///usr/local/bin/drupal/vendor/symfony/console/Symfony/Component/Console/Application.php:192
     Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/drupal/src/Console/Application.php:132
     Drupal\AppConsole\Console\Application->doRun() at phar:///usr/local/bin/drupal/vendor/symfony/console/Symfony/Component/Console/Application.php:126
     Symfony\Component\Console\Application->run() at phar:///usr/local/bin/drupal/bin/console.php:69
     require() at phar:///usr/local/bin/drupal/bin/console:3
     require() at /usr/local/bin/drupal:10
    
    bug 
    opened by anakinjay 39
  • PHP Fatal error:  Call to undefined function Drupal\Console\Launcher\Utils\pcntl_exec()

    PHP Fatal error: Call to undefined function Drupal\Console\Launcher\Utils\pcntl_exec()

    A team member gets this error when upgrading the launcher to RC19. Not sure what this means a.t.m.

    PHP Fatal error:  Call to undefined function Drupal\Console\Launcher\Utils\pcntl_exec() in phar:///usr/local/bin/drupal/src/Utils/Launcher.php on line 34
    
    Fatal error: Call to undefined function Drupal\Console\Launcher\Utils\pcntl_exec() in phar:///usr/local/bin/drupal/src/Utils/Launcher.php on line 34
    
    bug 
    opened by nvaken 38
  • [meta] Register commands in the Drupal container.

    [meta] Register commands in the Drupal container.

    Problem/Motivation

    Register Drupal Console commands as services on the Drupal container.

    Why

    • Improve command discover and take advantage of dependency injection.

    Solution

    Extend from Symfony\Component\Console\Command\Command

    Add use keyword if not present

    use Symfony\Component\Console\Command\Command;
    

    Update class to extend from Command

    class AwesomeCommand extends Command
    

    Add CommandTrait

    Add use keyword if not present

    use Drupal\Console\Command\Shared\CommandTrait;
    

    If command is using

    Drupal\Console\Command\Shared\ContainerAwareCommandTrait;
    

    Update to

    Drupal\Console\Command\Shared\CommandTrait;
    

    Add use trait:

    use CommandTrait; 
    

    Register command class as a service at config/services/NAMESPACE.yml

    console.awesome:
       class: Drupal\Console\Command\AwesomeCommand
       arguments: ['@service_id', '@other_service_id', '@another_service_id']
       tags:
          - { name: drupal.command }
    

    NOTE: If command already registered make sure you remove comment definition and confirm service name is prepended with console..

    How to know which services to inject

    Any call to:

    $this->getService('SERVICE_NAME')
    $this->getDrupalService('SERVICE_NAME')
    $this->get('SERVICE_NAME')
    \Drupal::service('SERVICE_NAME')
    \Drupal::getContainer()->get('SERVICE_NAME')
    $this->getApplication()->getContainerHelper()->get('SERVICE_NAME')
    

    Should be added as argument: ['@SERVICE_NAME'] on the service definition.

    Inject service add use, property and constructor method.

    ...
    use Vendor\Package\ServiceName;
    ...
    
        /**
         * @var ServiceName
         */
        protected $serviceName; 
    
        /**
         * AwesomeCommand constructor.
         * @param ServiceName $serviceName
         */
        public function __construct(ServiceName $serviceName) {
            $this->serviceName = $serviceName;
            parent::__construct();
        }
    

    NOTES:

    • You can find the Vendor\Package\ServiceName of your service by executing from your Drupal 8 site drupal container:debug SERVICE_NAME.
    • Make sure you call the parent::__construct(); on the added __constructmethod.

    Some methods and classes has been relocated to new service and maybe renamed, this is the table mapping those changes.

    | Current | New Service name | New Method name | | --- | --- | --- | | $this->get('site')->loadLegacyFile | console.site | loadLegacyFile |

    How to test

    Read setup instructions at https://gist.github.com/jmolivas/97bbd07f328217be3564a434c5bd2618

    Related documentation

    • http://symfony.com/doc/current/console/commands_as_services.html

    Related issues:

    • [meta] Register commands as services https://github.com/hechoendrupal/DrupalConsole/issues/2225

    Completed Namespace

    • [x] Miscellaneous without Namespace.
    • [x] Breakpoints Namespace
    • [x] Cache Namespace
    • [x] Chain Namespace
    • [x] Config Namespace
    • [x] Create Namespace
    • [x] Cron Namespace
    • [x] Database Namespace
    • [x] Develop Namespace (@langelhc)
    • [x] Entity Namespace
    • [x] Exclude Namespace
    • Exec Namespace (relocated to drupal-core)
    • [x] File Namespace
    • Generate Namespace (This will be done at the issue #2679)
    • [x] Image Namespace
    • [x] Libraries Namespace
    • [x] Locale Namespace (@novia713)
    • [x] Migrate Namespace
    • [x] Module Namespace (@enzolutions)
    • [x] Multisite Namespace
    • [x] Node Namespace
    • [x] Queue Namespace
    • [x] Rest Namespace
    • [x] Router Namespace
    • Self Namespace (relocated to drupal-launcher)
    • Shared Namespace (traits will be updated as required)
    • [x] Site Namespace (@jmolivas)
    • [x] State Namespace
    • [x] Test Namespace
    • [x] Theme Namespace
    • [x] Update Namespace
    • [x] User Namespace
    • [x] Views Namespace
    • [x] Yaml Namespace
    • Make sure you add a comment on the namespace you take to work to avoid working on same namespaces.
    • Make sure you get latest changes from Drupal Console repository for instructions Keeping your fork up to date
    opened by jmolivas 38
  • Doesn't recognize drupal directory

    Doesn't recognize drupal directory

    Problem / motivation

    After updating drupal console globally and installing drupal console within my drupal directory, I'm getting this error on drupal list:

    [WARNING] In order to list all of the available commands, you should run this against a drupal root directory. 
    

    The directory is definitely a working drupal 8.1.10 installation. drush status returns:

     Drupal version                  :  8.1.10                                             
     Site URI                        :  http://default                                     
     Database driver                 :  mysql                                              
     Database hostname               :  localhost                                          
     Database port                   :  3306                                               
     Database username               :  drupal                                             
     Database name                   :  drupal                                             
     Drupal bootstrap                :  Successful                                         
     Drupal user                     :                                                     
     Default theme                   :  bartik                                             
     Administration theme            :  seven                                              
     PHP executable                  :  /usr/bin/php                                       
     PHP configuration               :  /etc/php/7.0/cli/php.ini                           
     PHP OS                          :  Linux                                              
     Drush script                    :  /usr/local/share/drush/drush.php                   
     Drush version                   :  9.0-dev-ga9ef364                                   
     Drush temp directory            :  /tmp                                               
     Drush configuration             :                                                     
     Drush alias files               :  /home/vagrant/.drush/site.aliases.drushrc.php 
     Install profile                 :  standard                                           
     Drupal root                     :  /var/www/drupalvm                                  
     Drupal Settings File            :  sites/default/settings.php                         
     Site path                       :  sites/default                                      
     File directory path             :  sites/default/files                                
     Temporary file directory path   :  /tmp
    
    Hacktoberfest 
    opened by kentr 37
  • Porting field_report to drupal console field:info

    Porting field_report to drupal console field:info

    Here's my first attempt, doesn't look great yet, but does work... I felt 'field:info' is a better name, then could extend with argument for content type, e.g. case_study (a demo content type I set up)

    needs-review needs-work 
    opened by stephenpurkiss 34
  • [console] Error

    [console] Error "You have requested a non-existent service "console.configuration_manager" when running drupal command

    Issue title

    Problem/Motivation

    Every command I enter results in the following error:

    sumone@sumserver /var/www/sumone/web $ ../vendor/bin/drupal
    Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "console.configuration_manager". in /var/www/sumone/vendor/symfony/dependency-injection/ContainerBuilder.php on line 824 
    #0 /var/www/sumone/vendor/symfony/dependency-injection/ContainerBuilder.php(464): Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition('console.configu...')
    #1 /var/www/sumone/vendor/drupal/console-core/src/Bootstrap/DrupalConsoleCore.php(62): Symfony\Component\DependencyInjection\ContainerBuilder->get('console.configu...')
    #2 /var/www/sumone/vendor/drupal/console/src/Bootstrap/Drupal.php(158): Drupal\Console\Core\Bootstrap\DrupalConsoleCore->boot()
    #3 /var/www/sumone/vendor/drupal/console/bin/drupal.php(58): Drupal\Console\Bootstrap\Drupal->boot()
    #4 /var/www/sumone/vendor/drupal/console/bin/drupal(4): require('/var/www/sumone/...')
    #5 {main}
    Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "console.configuration_manager". in Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition() (line 824 of /var/www/sumone/vendor/symfony/dependency-injection/ContainerBuilder.php).
    
    

    Details to include:

    drupal/console                        1.0.0-rc17   The Drupal CLI. A tool to generate boilerplate code, interact with and debug Drupal.
    drupal/console-core                   1.0.0-rc17   Drupal Console Core
    drupal/console-en                     1.0.0-rc17   Drupal Console English Language
    drupal/console-extend-plugin          0.4.0        Drupal Console Extend Plugin
    

    How to reproduce

    Install composer-drupal-boilerplate, install dependencies and run:

    cd web && ../vendor/bin/drupal
    
    missing-update 
    opened by n1ru4l 31
  • Cannot install on PHP 8.0 Drupal 9.5.0

    Cannot install on PHP 8.0 Drupal 9.5.0

    Cannot install on PHP 8.0 Drupal 9.5.0

    Problem/Motivation

    I get errors when trying to install.

    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - drupal/console[1.9.5, ..., 1.9.10] require alchemy/zippy ~0.4 -> satisfiable by alchemy/zippy[0.4.0, ..., 0.4.9].
        - drupal/console[1.0.0, ..., 1.9.4] require php ^5.5.9 || ^7.0 -> your php version (8.0.26) does not satisfy that requirement.
        - alchemy/zippy[0.4.0, ..., 0.4.8] require symfony/filesystem ^2.0.5|^3.0 -> found symfony/filesystem[v2.1.0, ..., v2.8.52, v3.0.0, ..., v3.4.47] but the package is fixed to v5.4.13 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
        - alchemy/zippy 0.4.9 requires symfony/filesystem ^2.0.5 || ^3.0 || ^4.0 -> found symfony/filesystem[v2.1.0, ..., v2.8.52, v3.0.0, ..., v3.4.47, v4.0.0, ..., v4.4.42] but the package is fixed to v5.4.13 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
        - Root composer.json requires drupal/console ~1.0 -> satisfiable by drupal/console[1.0.0, ..., 1.9.10].
    
    Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
    
    Installation failed, reverting ./composer.json and ./composer.lock to their original content.
    

    How to reproduce

    lando composer require "drupal/console:~1.0" \   
      --prefer-dist \
      --optimize-autoloader
    
    Drupal version   : 9.5.0                                    
    Site URI         : http://default                           
    DB driver        : mysql                                    
    DB hostname      : database                                 
    DB port          : 3306                                     
    DB username      : drupal9                                  
    DB name          : drupal9                                  
    Database         : Connected                                
    Drupal bootstrap : Successful                               
    Default theme    : olivero                                  
    Admin theme      : claro                                    
    PHP binary       : /usr/local/bin/php                       
    PHP OS           : Linux                                    
    PHP version      : 8.0.26                                   
    Drush script     : /app/drupal/vendor/drush/drush/drush     
    Drush version    : 11.4.0                                   
    Drush temp       : /tmp                                     
    Drush configs    : /app/drupal/vendor/drush/drush/drush.yml 
    Install profile  : standard                                 
    Drupal root      : /app/drupal/web                          
    Site path        : sites/default                            
    Files, Public    : sites/default/files                      
    Files, Temp      : /tmp    
    

    Composer file:

    {
        "name": "drupal/recommended-project",
        "description": "Project template for Drupal 9 projects with a relocated document root",
        "type": "project",
        "license": "GPL-2.0-or-later",
        "homepage": "https://www.drupal.org/project/drupal",
        "support": {
            "docs": "https://www.drupal.org/docs/user_guide/en/index.html",
            "chat": "https://www.drupal.org/node/314178"
        },
        "repositories": [
            {
                "type": "composer",
                "url": "https://packages.drupal.org/8"
            }
        ],
        "require": {
            "composer/installers": "^1.9",
            "drupal/core-composer-scaffold": "^9.5",
            "drupal/core-project-message": "^9.5",
            "drupal/core-recommended": "^9.5",
            "drupal/disable_login": "^1.1",
            "drush/drush": "^11.4"
        },
        "conflict": {
            "drupal/drupal": "*"
        },
        "minimum-stability": "stable",
        "prefer-stable": true,
        "config": {
            "allow-plugins": {
                "composer/installers": true,
                "drupal/core-composer-scaffold": true,
                "drupal/core-project-message": true,
                "dealerdirect/phpcodesniffer-composer-installer": true
            },
            "sort-packages": true
        },
        "extra": {
            "drupal-scaffold": {
                "locations": {
                    "web-root": "web/"
                }
            },
            "installer-paths": {
                "web/core": [
                    "type:drupal-core"
                ],
                "web/libraries/{$name}": [
                    "type:drupal-library"
                ],
                "web/modules/contrib/{$name}": [
                    "type:drupal-module"
                ],
                "web/profiles/contrib/{$name}": [
                    "type:drupal-profile"
                ],
                "web/themes/contrib/{$name}": [
                    "type:drupal-theme"
                ],
                "drush/Commands/contrib/{$name}": [
                    "type:drupal-drush"
                ],
                "web/modules/custom/{$name}": [
                    "type:drupal-custom-module"
                ],
                "web/profiles/custom/{$name}": [
                    "type:drupal-custom-profile"
                ],
                "web/themes/custom/{$name}": [
                    "type:drupal-custom-theme"
                ]
            },
            "drupal-core-project-message": {
                "include-keys": [
                    "homepage",
                    "support"
                ],
                "post-create-project-cmd-message": [
                    "<bg=blue;fg=white>                                                         </>",
                    "<bg=blue;fg=white>  Congratulations, you’ve installed the Drupal codebase  </>",
                    "<bg=blue;fg=white>  from the drupal/recommended-project template!          </>",
                    "<bg=blue;fg=white>                                                         </>",
                    "",
                    "<bg=yellow;fg=black>Next steps</>:",
                    "  * Install the site: https://www.drupal.org/docs/installing-drupal",
                    "  * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html",
                    "  * Get support: https://www.drupal.org/support",
                    "  * Get involved with the Drupal community:",
                    "      https://www.drupal.org/getting-involved",
                    "  * Remove the plugin that prints this message:",
                    "      composer remove drupal/core-project-message"
                ]
            }
        }
    }
    
    opened by kburakozdemir 1
  • Cannot install with PHP 8.1 on a fresh Drupal 10 install

    Cannot install with PHP 8.1 on a fresh Drupal 10 install

    Problem/Motivation

    Error on composer installation - requirements problems.

    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - drupal/console[v1.9.0, ..., 1.9.4] require php ^5.5.9 || ^7.0 -> your php version (8.1.2) does not satisfy that requirement.
        - drupal/console[1.9.5, ..., 1.9.10] require composer/installers ~1.0 -> found composer/installers[v1.0.0, ..., 1.x-dev] but it conflicts with your root composer.json require (^2.0).
        - Root composer.json requires drupal/console ^1.9 -> satisfiable by drupal/console[v1.9.0, ..., 1.9.10].
    

    Details to include:

    • Drupal version : 10.0.0-rc2
    • PHP : 8.1.2

    composer.json

    {
        "name": "PROJECT_NAME",
        "description": "PROJECT_DESC",
        "type": "project",
        "license": "GPL-2.0-or-later",
        "repositories": [
            {
                "type": "composer",
                "url": "https://packages.drupal.org/8"
            }
        ],
        "require": {
            "composer/installers": "^2.0",
            "drupal/core-composer-scaffold": "^10.0",
            "drupal/core-recommended": "^10.0",
            "drush/drush": "^11.3",
            "vlucas/phpdotenv": "^5.5"
        },
        "conflict": {
            "drupal/drupal": "*"
        },
        "minimum-stability": "dev",
        "prefer-stable": true,
        "config": {
            "allow-plugins": {
                "composer/installers": true,
                "drupal/core-composer-scaffold": true,
                "phpstan/extension-installer": true,
                "dealerdirect/phpcodesniffer-composer-installer": true,
            },
            "sort-packages": true
        },
        "autoload": {
            "files": ["load.environment.php"]
        },
        "extra": {
            "drupal-scaffold": {
                "locations": {
                    "web-root": "web/"
                }
            },
            "installer-paths": {
                "web/core": [
                    "type:drupal-core"
                ],
                "web/libraries/{$name}": [
                    "type:drupal-library"
                ],
                "web/modules/contrib/{$name}": [
                    "type:drupal-module"
                ],
                "web/profiles/contrib/{$name}": [
                    "type:drupal-profile"
                ],
                "web/themes/contrib/{$name}": [
                    "type:drupal-theme"
                ],
                "drush/Commands/contrib/{$name}": [
                    "type:drupal-drush"
                ],
                "web/modules/custom/{$name}": [
                    "type:drupal-custom-module"
                ],
                "web/profiles/custom/{$name}": [
                    "type:drupal-custom-profile"
                ],
                "web/themes/custom/{$name}": [
                    "type:drupal-custom-theme"
                ]
            }
        }
    }
    
    

    How to reproduce

    composer require drupal/console
    
    opened by crtlf 2
  • Install instructions fail

    Install instructions fail

    https://drupalconsole.com/installer returns error

    Error: Server Error
    
    The server encountered an error and could not complete your request.
    Please try again in 30 seconds.
    
    opened by stovak 5
  • Commands on php 8.1 - PHP Deprecated errors

    Commands on php 8.1 - PHP Deprecated errors

    Code - Drupal Console on php 8.1 throws errors on every command

    Problem/Motivation

    Running Drupal Console 1.9.8 in PHP 8.1 throws errors on any and all commands.

    Details to include:

    • Why are we doing this? Above all, a summary should explain why a change is needed, in a few short sentences.

    How to reproduce

    While running PHP 8.1 Install Drupal Console via composer, issue a command

    Error produces:

    PHP Deprecated: preg_replace_callback(): Passing null to parameter #3 ($subject) of type array|string is deprecated in phar:///usr/local/bin/drupal/vendor/dflydev/placeholder-resolver/src/Dflydev/PlaceholderResolver/RegexPlaceholderResolver.php on line 57 PHP Stack trace: PHP 1. {main}() /usr/local/bin/drupal:0 PHP 2. require() /usr/local/bin/drupal:10 PHP 3. require() phar:///usr/local/bin/drupal/bin/drupal:3 PHP 4. Drupal\Console\Core\Utils\ConfigurationManager->loadConfiguration($directory = '/srv/drupal/drupal9/ncela/code/pantheon-d9') phar:///usr/local/bin/drupal/bin/drupal.php:50 PHP 5. Dflydev\DotAccessConfiguration\AbstractConfiguration->get($key = 'application.extras.aliases') phar:///usr/local/bin/drupal/vendor/drupal/console-core/src/Utils/ConfigurationManager.php:83 PHP 6. Dflydev\DotAccessConfiguration\AbstractConfiguration->resolveValues($input = NULL) phar:///usr/local/bin/drupal/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/AbstractConfiguration.php:42 PHP 7. Dflydev\PlaceholderResolver\RegexPlaceholderResolver->resolvePlaceholder($placeholder = NULL) phar:///usr/local/bin/drupal/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/AbstractConfiguration.php:156 PHP 8. preg_replace_callback($pattern = '/%([a-zA-Z0-9\.\(\)_\:]+?)%/', $callback = [0 => class Dflydev\PlaceholderResolver\RegexPlaceholderResolverCallback { private $dataSource = class Dflydev\DotAccessConfiguration\ConfigurationDataSource { ... } }, 1 => 'callback'], $subject = NULL) phar:///usr/local/bin/drupal/vendor/dflydev/placeholder-resolver/src/Dflydev/PlaceholderResolver/RegexPlaceholderResolver.php:57

    Details to include:

    • Drupal version 9.4.5
    • Console version 1.9.8
    • Console Launcher version 1.9.8
    • Steps to reproduce issue any command: drupal [command]

    Solution

    For now I attempt to run commands even with errors.

    opened by robertfoleyjr 0
  • Cannot install Drupal Console while using Drush 11.0.6 or higher

    Cannot install Drupal Console while using Drush 11.0.6 or higher

    Starting with this version of drush there's a dependency on v2 of consolidation/config which is a project that Drupal Console ultimately depends on and which can only use v1:

    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - dflydev/dot-access-configuration[v1.0.0-BETA1, ..., 1.0.x-dev] require dflydev/dot-access-data 1.* -> found dflydev/dot-access-data[v1.0.0, v1.0.1, v1.1.0] but these were not loaded, likely because it conflicts with another require.
        - drupal/console 1.9.8 requires drupal/console-core 1.9.7 -> satisfiable by drupal/console-core[1.9.7].
        - drupal/console-core 1.9.7 requires dflydev/dot-access-configuration ^1.0 -> satisfiable by dflydev/dot-access-configuration[v1.0.0-BETA1, ..., 1.0.x-dev].
        - Root composer.json requires drupal/console 1.9.8 -> satisfiable by drupal/console[1.9.8].
    
    opened by beunerd 4
  • [console] Unable to download the Drupal Console Launcher

    [console] Unable to download the Drupal Console Launcher

    Problem/Motivation

    As per the documentation stated (page source), this is the command to install the console launcher:

    curl https://drupalconsole.com/installer -L -o drupal.phar
    mv drupal.phar /usr/local/bin/drupal
    chmod +x /usr/local/bin/drupal
    

    The first command is supposed to download the drupal.phar file from drupalconsole website. But it doesn't work:

    # curl https://drupalconsole.com/installer -L -o drupal.phar
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
      0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
    curl: (7) Failed connect to drupalconsole.com:443; Connection refused
    

    If you go directly to the URL https://drupalconsole.com/installer, you'd see this: 2022-04-08 15-05-48 的螢幕擷圖

    It is always this "500 Server Error" message.

    Solution

    Please fix the server download path. Or, please fix the documentation.

    opened by yookoala 6
Releases(1.9.10)
  • 1.9.10(Oct 2, 2022)

  • 1.9.9(Sep 17, 2022)

    • D9 Deprecated function call to getUsername in DatabaseLogBase:221 - - #4292
    • [ console ] drupal cr triggers a fatal uncaught error - - #4261
    • fix: revision translation revert - - #4253
    • Fix fatal when scaffolding a FieldWidget. - #4239
    • [generate:entity:content] misses revision annotations - #4284
    • [generate:plugin:ckeditorbutton] Spelling error of variable in plugin.php.twig - #4203
    • generate:module gives Fatal error: Call to a member function getPath() - #4118
    • fix: bad namespace - #4206
    • fix: missing property - #4208
    • fix(generator): block description index - #4199
    • [config:import:single] Writing to DB before using the ConfigImporter - #4236
    • Generate content entity: Revision links broken - #4317
    • [generate:entity:config] SchemaIncompleteException on Drupal 9 when using generated config entities - #4280
    • [generate:entity:content] Start using show_revision_ui Entity Annotation Key - #4000
    • Update links.task-entity-content.yml.twig - #4215
    • Fix array_pop call - #4233
    • Fix drupal 9 deprecations in generateentitycontent] - #4214
    • [generate:plugin:field] Missing coma in fieldwidget.php.twig - #4201
    • [site:install] console.site_install - You have requested a non-existent service "extension.list.module". - #4265
    • [config:export] Path is broken on windows - #4195
    • [config:export] directory incorrectly prefixed with composer root - #4245
    • [config:export] broken in 1.9.4 - #4198
    • fix sync directory path - #4219
    • [generate:plugin:block] Default content broken - #4217
    • Fix typo - #4339
    • Return value of "Drupal\Console\Command\Config\ImportSingleCommand::execute()" should always be of the type int since Symfony 4.4, NULL returned. - #4305
    • replace module handler interface - #4337
    • generate:module gives Fatal error: Call to a member function getPath() - #4118
    • [console] PHP warning in DrupalServiceModifier when commands called on PHP8 - #4310
    • Remove default parameter before required parameter - #4327
    • [console] ProcessBuilder is removed in Symfony 4, hence Drupal 9 - #4330
    • [generate:entity:content] per-bundle-permissions - #4216
    • D9 Deprecated function call to getUsername in DatabaseLogBase:221 - #4292
    • Remove default parameter before required parameter - #4327
    • fix: Use ModuleHandlerInterface instead of ModuleHandler - #4333
    Source code(tar.gz)
    Source code(zip)
  • 1.9.7(Nov 30, 2020)

  • 1.9.5(Aug 15, 2020)

  • 1.9.4(Nov 11, 2019)

    04522b687b2149dc1f808599e716421a20d50a5b Update version to 1.9.4 (#4193) 3c59d0b9ddd7bab52fe5a15352ac896b89e41737 Bugfix for #4174. (#4192) 232d4794974ce687dffa2dfe0cc7e4f0ba4fd033 [console] Add extra path to find the autoload (#4191) 73453aa0809238b7389e73a6e5a4381eb4f85a3c fix: allow empty db-prefix (#4189) 83df9371cd848486f821f0e0a31fb38e9afa2c81 [generate:theme] fix libraries.yml syntax (#4187) 1bc9f1b6c72a1272ab44718650bcbec0e1946f89 validate https and create the url if have https (#4183) 9b5e8ac4de1a1ab2128bc4c06481e9766baea3b7 [generate:entity:content] permissions for no-bundle entity (#4181) b21607fc5f027ba1558d6c2ce273ba1124c86868 Create a function to get the multisite name (#4186) 1b806b9be8e372d1bd8d7e5f18cf054e1edecb8a Update Readme.md (#4182) e4d656c2d1871ca5c0e31a4a2495b90f9fdcfe34 fix: typo (#4185) 0fe1993d30fe17dfcb69ff5d7cdd1724437512f0 Removes constructor override on service object generators. (#4174) ee6ad4a5c19f422e5016749346b8b03046c29d9b Use injected messenger service if possible. (#4177) c578fc6183ec99f7f52aed3963f885ead3c91b37 Fixed block template using incorrect item and sequence order in 'for' loop. (#4175) f82883c2e8368fa725639092176891b7d39fff76 [module:install] Remove moduleRequirement() (#4178) 9af887aaf41f360075cc1d55d6f3306da69c3658 [module:install] Allow module installation with Drupal 8.8.x and enable Composer-based installation (#4167) ddb53e51926e21c9047a2783f4ad677be7483410 [generate:plugin:derivative] New command (#4173) 0ae799f74efd6183a41ca2ee823b4adccc7f2d5e Fix failing TravisCI builds (#4165) 2a941ff51740bbba986d01f874bfed859f837e34 [generate:block:type] New command (#4160) 464fb8255dbbf4dc173bbd00fa88290643b9a1fb [generate:theme:setting] New command (#4159) 44c8d8ca612f871e713dad4a351ed42911cbfabe Add option install theme with release version (#4158) e9e4d3a8fcaacb68d9bd864cc140a43809034412 Fixes a typo in CacheContextGenerator (#4156) 20f7370ebf9170d8f7de9ecc14370c2acba694bc Fix generate:entity:content installing module (#4155) 37aeb5d12fd1a65d8fc93124a595e5e9e5802377 Fix path directory and to create config files (#4154) 7f023ab68e3d0f3de8806a63252884ca006db7d8 Fix path config:export on root Drupal (#4153) 9b9d8b3db4ec383bca6c51a37801fd411573cae8 Fix urls of #Download section (#4151) 55c162cbde35049d2f7585a188d80d1fb32fa2dc 4147 module validation (#4148) 173a51d9322e2b5369c6d276c469a13e1a44aba1 add class extends generate:plugin:ckeditorbutton (#4149)

    Source code(tar.gz)
    Source code(zip)
  • 1.9.3(Sep 6, 2019)

    f26fd9b5fdb389719d77ff30849af714762e7d2b Update version to 1.9.3 (#4144) c4a3b5ffe400c5619f98d953005d6f7585138cea Add --default option to database:add (#4143) 3c83f02ed1e928664ca48ac8bb26a8d0a5d6601f Add bundle permissions for content entity (#4138) e03be58c04df123849fa991634981c6e4dc0601f Generate revisional entity content is broken (#4139) b84ad5c424d3494f8015982017bfd0e240fa497d Ensure $roles is an array when creating users. (#4134) b34af90e23cdde20f0e376392efe92f737cade85 [TravisCI] Create a local mirror Composer repository to load drupal/console from the git clone (#4137) a4ce15b5f7a9d6200440cfa056a081019f627e22 Fix TravisCI testing (#4136)

    Source code(tar.gz)
    Source code(zip)
  • 1.9.2(Aug 20, 2019)

    03b20de476d01b60647726ef507ca66abc904086 Update version to 1.9.2 (#4135) dd6492237ad18402a8886f08ce3423d8a6e39262 [generate:entity:content] Change to EditorialContentEntityBase (#4127) a9df68076bc55653bce39445c2390b2cb0de9c02 [generate:entity:content] Fix when owner is false (#4126) 350cc3d8ac10f0945c7a5118ffcc21f865a831d1 [debug:module] Allow multiple options (#4125) a51b7f411950df8b7ac9cfe106f81a8bab1f6066 Remove composer option from download module or theme (#4124) 3f23f601c547d469f352335cbf665cc002b79405 [services:override] New command (#4123) 377704521077ee7fbb757f0227f0270a62840bfb [generate:plugin:queue] Add missing argument (#4122) 9a2aac3422a1f4ce7d8bd0ddc9bea68295f83adc Execute database command without drupal boostap (#4117) 8f812649c02b646dad464fe8f50db68ab6355fc1 [generate:plugin:fieldwidget] Add schema file (#4116) 57931cabf8169303085e02c4c2ae426fb78731ff Create FUNDING.yml

    Source code(tar.gz)
    Source code(zip)
  • 1.9.1(Jul 17, 2019)

    3bcce31018ea61f6f83f090c598835669f8e7e5a [generate:theme] Add --base-theme-regions option (#4111) 22f114d9eb19766ac11c22377c5cb35cd4c5deb1 [create:users] Fix time-range question (#4087) e6e3332ef14aaa9434f28e97544549e52b9448b4 add capability to accept updates via command option (#4109) fca95727337ce1f9636abddec10b9d065aa18685 4006 serialize (#4013) 04f43a75a28ed56a204c8174475a139ded59722c [generate:plugin:block] Add template option (#4107) aab9529f28339c37e0ec92f404e47f94f81cd5e4 Remove unused variable (#4106) 79c425e89ddeefe132dbdcfdb56b04ae4ed8f43b [debug:update:composer] Add new command (#4105) 05d4f8fd07174505f2c67d2ef4eb835dd0212f11 [module:install] Add dependencies validation (#4103) fe45f9ab60b05bfa3cf2eb2cde4349495bf9e523 [generate:module] Add default values --no-interaction (#4102) c79f60315e664779837142d903915353a7d51391 [composerize] Fixed key services (#4101) c7ed72e8662bc67cbddf25d86185e7d4734f77d2 [module:install] Fixed composer key trans (#4100) 032f80e3dc93f09c4a14cb7611866767ee71491b [generate:plugin:block] Added code standard (#4099) 6fb60046c50b4514fc4b7a723010b3271e42e779 [generate:entity:content] Added owner option (#4098) 02498e822ae533da3e1255ef4f79424765bdc890 [config:import | config:export] Added interactive mode (#4097) 9adfcba595fdd2f03cca72c8d6922a63ca50f5aa [templates] Add code standard to module file and permissions (#4096) abbfb5dabcdd064b80b8960f43a8b531eeab9abf [templates] Add code standard (#4095) 483b7b2b71d0908c13fc5fa93f235f4062590212 Update version to 1.9.1 (#4094) 6f393c962eb28bd716ca9f8ee47fcc9d084b69a8 (origin/master) Update version to 1.9.1 11ad023e6480c2397cfcf53f7367a9c69fb116cb Update version to 1.9.1 541cd2ecda5e1e071239507932d928a5fec735a0 [generate:form] Input missing was fixed (#4093) 14dead1c6e1e7ef1327c19ad75ad9494a634890e [database:dump | database:restore] Implement the symfony process and remove escapeshellcmd (#4092) e076e833414cd21800439e692325880d4da76bf6 [create:nodes] Added the revision option (#4091)

    Source code(tar.gz)
    Source code(zip)
  • 1.9.0(Jun 11, 2019)

    5719ccc929efda9252b13899c80870b922cea8ee Update version to 1.9.0 9a895aa6381dee24b713422848d392cee69b9ea6 Modified the install command to return the proper exit code in case of error. (#4080) 6af1543f914bfdec29497441783704eb0ef7483a [generate:event:subscriber] Added coding standard (#4076) 918a883d6c735a5296871ce69b97cd0de3799d08 4071 command coding standard (#4074) 46fb9ebb4ab369dc117ea3b4a975d62717bbcefd [debug:database:table] Sqlite support (#4073) ee79d2ea8b094dc2735be62f47b69accc4cd98f5 [console] Fixed coding standards (#4072) 4734956982552258a021685f79d9fa8ca592a78f [generate:entity:content] Fixed coding standard errors (#4070) f6981bcfa6fb80909d66ea33b2d1e4d99f1283ba [generate:controller] Validate class file is already exist (#4066) df8b95b56b1816af19ec93a902b2676bebc69173 [site:status] improvements (#4063) 96850801ccf6a86da7dcca416b12d2454c814a43 [boostrap] Enabled the uri base path (#4064) 047c18b0c1946c98e67062eca85888c8fd6ccd8a Fix module uninstall translation (#4062) 131bb18b2007508b77933aa99879fc1688527ba0 [site:install] Small improvements (#4061) ac553b727427d0c913aa18424f5941ed9e6a10bd [update:execute] Fixed update table (#4060) db15e4e316b6b7fee2001fa8392245d3ea55c855 by rlmumford: Support batch updates. (#4057) 5d6a21a5f5ec24720f50745ac213171421d1c756 [generate:entity:content] Enabled has-form option (#4058) a026e445d3900327692d6d1d0f14b17803662b7b 4044 config export all option (#4045) 813ad2468b9dcb3476b2df2ca8d22509400248cb [site:install] Change dbFile if the installation is a multisite (#4056) 3c23a097d042d217f994c2762009e43d42e8e547 [services] Relocated multisite services (#4055) ddb30300451239e76d4b1b6850f96c90920bca59 [site:install] Fixed typo (#4054) 1141d03c884e9107ba6237cd1fda33166c69a917 [generate:module] Show multisite dir to generate (#4053) 1247f202250359e12821a6a2e17d53adb5303e55 [site:install] Improve support of --db-url (#4049) bfce216f78999078a7ea7f31564bfffa1e59f12d changed source storage variable initiation to use service instance for if --directory option is not passed in (#3902) 7ea06da7be1656eecd58acb9ee22cd355670b951 [router:rebuild] Handle unsuccessful rebuild (#4050) e64ab9bd93e24640b52209e09ce18188bcafae41 [config:override] Refactor 3772 allow nested configs (#4047) 304ff7e17668e1b01cda40bb4f77aacf0c18e6e7 Use Database::getConnectionInfoAsUrl to get the db URL (#4046) 72bd831d1ac265a9b639ddfb2c67a42b5e0bb0fa 3980 reinstall sqlite (#4043) 84928c370a714e10aa366c05a07bbdd44bcef4a5 update alchemy-zippy dep version (#4042) f1dc3aaf381e93acd3218013f52086fc6c1b3dbc [site:install] Implement db_url to install (#3917) 610b6d983de5138f336767d0d02a3b5ddf1f3e1a [database:add] Hide the dbpass on interactive mode (#4041) 6fe73b3375f5c7b9bb1e1f75c2629b805178f842 fix so that multi site command uses uri argument (#3871) 039a0644192c516d6df15a213255402a2c04c802 [multisite:new] Validated uri name (#4039) a1222729f95c31a02d76662566f19266eaf8ba28 Test PHP 7.2 and 7.3 and support 7.x (#3903) 6f42420740ed9607dd36484a689893609812305e Update rest resource command (#3869) 5fdb4881b6c6b23b1b62e8e9c4601d46d5b74a5d [database] Run database commands without Drupal bootstrap (#4038) 62faf57a262d2692518a83aae8a3d9887c6eb966 [database:restore] Fixed conflicts of #3856 PR (#4037) 02726f5372e23929eca025751ba1987bc0a00291 [plugin:block] Change the option label to plugin-label (#3851) c2c3efb6620bc7aa468a6d873a77ce44de1010c7 added 'all' option for exporting all content types (#4036) 168b2509033595cc5642db74492cdad420468041 [templates] Updated text_format to get the value (#4035) 8b2753d48bbee7f3810d2516989a6ab1c9beac41 [console] Added the ContainerAwareCommand extension to commands that have services (#4034) b0a15c981e2723bb2bf38bdac936a8427d79560d [generate:entity:content] Add coding standards for Entity classes (#4031) 5a0508827eab1c7ecbb2f726a15fe4d55eb694a4 [generate:module] Fixed dependencies validation (#4030) 245767a8643f77a21ecc6448b12427b1ac04351f [generate:plugin:skeleton] Fixed namespace (#4028) 404a02616aa926f1a8a0da127bb4174bbc4b4728 4020 fix update execute command (#4027) 241d7932a4dab6ed3dea9b716feff02815764bd5 [config:export:view] Fix overwritten info.yaml (#4026) 9bbc171c14fb7d6e668753a381a3fcfef8adafac [site:install] Add error message to failed connection (#4024) ca39d83c73967eae5a1393a2bdfa21681d187480 --exclude-cache option for database:dump command (#4019) 3f87907a85f5ccdbaf0b218353fa4735e4a684b7 Allow unblocking a blocked user. (#4018) 7f914f7730741f28d20892e7460f32014c4a0036 [update:execute] run trailing post updates if there is no updates (#3996) f463c75bb5387784be742ed8ed707f21750927f7 allow alchemy/zippy version to go above 0.4.3 (#3876) 407edf16b00d77af862958f7afe3832ac3133fb9 Add missing use statements (#4015) 6d6ac03b0627b60816e4662e25839a319d20b96b 3978 db dump exception (#3979) ad79269cfbf9c3eb081fafbb377a7748aaf58997 Refactoring (#3967) a0f3f933029a339a52814ec84f7016e4d5fde5d9 3943 maintenance mode update entities (#3963) 51035af5fbdafb2ac13b979ab01d52ffac07b3a4 1088 interfaces into src (#3960) c179f09cfc0ba105aadb71bfdd2e5296ee5284c6 Add source_module to the template. Improve code: fix comments and order use statements alphabetically (#3858) a6d97a2c97db91759ec76e9ab66ef700483773e0 Add composer:generator command. Replace generation of composer.json file in Module Generator Command to chain using new composer:generator command (#3844) d80825f213a0533959182d6b916a992497c79a9e Add logger channel generation for generate:service command (#3841) 75f578481819eac80d1d7538b89f04016b3654c5 3948 backup file check (#3953) efe17e2388c963f24d62b48652f81bbf64320250 Add support of additional database from settings for drop db command (#3910) b52f3e9da8ddbd24f86c5ece48ed99b6d48eefac Add an opportunity to add multiple view fields at once (#3883) fe650976f7dec8e723b5f245b45aeacb0488314d Add error message when view doesn't exist. Fix translation strings (#3911) f7cf0fd1c27d0f2a07cfc4afe4775f62edc844fd Add authenticated users to user generation (#3946) a267393b2750d8bfe1e4322add64a7afb194eb93 3954 machine name (#3962) ca380de04604c834d34af884420971594bb13280 3965 remove UUID (#3989) 5e668f6dcb9e3fe51e521bf5510ac0616d28bee2 [generate:plugin:queue] Create new command to generate QueueWorker (#3950) 098f4876036c449a9f33ced399f98ac8d4164a6c Fix codings issues for generate:plugin:condition template file (#3873) 22490f237465138d3a72a8975c82a28de905fb95 Fix coding standards for generate:form command. (#3900) ee8ebb5dabc2e84e71d3b64467dabb791b9e8a89 Add a new option pattern. Improve the code styling (#3913) e95210756fe9dc22f6b8240fedc58c8cd1accf98 3860 region options (#3959) 09114aa40b607ae745e31fb9f3061b33cf46be94 3956 entity clean up (#3957) 0ca9d6ad4ddd29a15e08da3a533345c66ebf715c [composer] Remove guzzle and use it from the core (#3874) aa5197b259cf67e239ca241e8a27bd452b6b3e78 Generator of rules condition (#3827) a0714c553e13dc0edc6b6ed42996d1ff33354e96 Add generate:plugin:rules:dataprocessor command (#3828) a626074ed19f21b934ca6a18143cf8ecd2b653d0 Renovated command generate:plugin:rules:action (#3824) 7103912c69bf7b4b9cf090efd5d721dc9daf7fb1 3888 database dump escape (#3906) 9cff0df03ba52a23052765b2bbe767a981cde499 Use EntityPublishedTrait (#3991) aeeb3a3a0fd649535fae6ad12fcd78537cfb1073 3955 site status (#3958) 754b55f9b629f44d4ce7b169d2273696e5066291 Escape single quotes in .info.ym file generation for generate:module cmd (#3972) eeba53590594fad4874a1e718a011b73d1fd119a Replace username with message for deleted users (#3945) 05d81f7403cb0adff2286bf5a94f75f80167633a Remove missing variable (#3952) d7bf425463854462ccdda4ec13a5c06e0c2781e9 Wrap default value with quotes (#3944) dafe9ead0b77a67b1a2b3f80259e18817c5abaf1 4011 debug container (#4012) 1a7ba5332c8bf8515a88b5047a328128032cd4de [config:export] Warnings on language directories (#3863) e60ecb64a8d8caac98233f8a33ac01d897a043e9 3794 export entities (#3875) 5f84adb80c3312ba6b6308b264ddba72d030cf23 Revert "Added Paragraph type export to export Paragraph type's fields with command drupal config:export:paragraph:type (#3880)" (#4009) e30b14de0270148ca1e8106f3d0c6ceb25369b2c Added Paragraph type export to export Paragraph type's fields with command drupal config:export:paragraph:type (#3880) 4321d51339851fe5f175c6c3e19b070efd01b7ac Fix for generate:controller. See https://github.com/hechoendrupal/drupal-console/issues/3998 (#3999) 3051dbb0c9c732657431e35de99344c16562472e Fixed missing default argument (#3988) d72f5c0534f1b3f30058e1322e5449a64e29c4e7 FIX #3983: Correct coding standards for EventSubscriber class (#3984) 3782e09d3669a539e8a25d90d68178c6f1eb3e9c Remove -A option to enable autocomplete on the mysql client (#3973) f79dab48cd76a3c186b6b540fade15468e906692 Fix [Drupal\Component\Plugin\Exception\PluginNotFoundException] error (#3897) 912508f5465962877659480198802c43231e1057 Grant [generate:entity:content] correct view permissions for revisions (#3932) (#3933) 37730ce0f8f5226fbab5dab025d47b1d92e33a35 Changes constructor type signatures (#3919) (#3934) d1adc9d7a3bebb6fa27525de1d94c8022ad3dbe3 Ask for db prefix only if it is not explicitly set (#3930) (#3931) 6e8f602a9ba4f18204c96d723f293cfdd93d044f Fix typo (#3923) 9b0a7b0b09638c3bb42b4bd803467b26964d5f2e [create:nodes] Using a default language code (#3915) 2f90c7ee5869bf4341880586ea6fca8a3bba888e Fix [module:uninstall] Deprecated each() function #3908 (#3909) 62646146c278d0c5de2b62683dfda2fa44d9e17e Fix issue #3898 (#3899) 1d08ccbdefb68774f3391b3fa65e52d05aeee1a2 Change deprecated composer template license. (#3887) f69efe5ccd775fa05cd3166ddcd6576e5511461b Replate deprecated drupal_set_message (#3867) bd35d150f05d49b0d0f1398d24653cbc55f57177 [modules] Fix validation in ProjectDownloadTrait (#3870) f5fd6de208cffd37588b785605cc2280738492c2 3275 remove translation code (#3822) 3e5a458cacbc82222eda6f5bbfe814b3fd418b12 Enable Maintenance mode for database:restore during execution (#3811) 390a1316b395b0a8ea3349478fe05e38253070f5 Replace condition for module input. Improve the code presentation (#3855) b5daec523618c877f1ac02f311fcc4cbb5f9f918 Fix format of command to restore PostreSQL db (#3849) 73139e36f6ff63b2590259943ce6adb9403df149 Add additional validation for module, when we use no-interaction mode (#3813) 1a9a48e2ec7c80a835b7009f5ae192101f0049d0 Add additional information for field type plugin, field widget plugin and field formatter plugin (#3809) 39170921d1ab0c5ae07b11414407130b6fe07674 Add warning that hook already exists, remove useless use statements, add append flag for module.views.inc file (#3814) 1b9508687741be4b92d0049fc900a906167aa781 Add new arguments key and target. Make it possible use not only default target for db connections (#3804) 43db14f0b1bf0aad720c4e4f0705ee85705d8d5e [debug:hooks] Add command to display available in the system hooks. (#3790) 927a11b641b2df392a85ac5049a97cb0cf996bab [generate:plugin:migrate:dataparser] Add new command for generating data parser plugin for migration. Fix #3773 (#3774) f95cf2f81b615267a3487fec64074c3f086a53f5 Accept multiple buttons from users (#3770) c5e5d07191da41f617dcd5284af596ec2c014027 A new command : Generates Validation constraint plugin (#3768)

    Source code(tar.gz)
    Source code(zip)
  • 1.8.0(Mar 21, 2018)

    368bbfa4 [console] Tag 1.8.0 release. (#3842) 21f311d7 (add-site-gsa) [docker:init] Apply chmod to directory before/after generate files. (#3840) 037dcec7 [docker:init] Add command. (#3839) 85cd7545 [dotenv:init] Improve env and setting files generation. (#3838) 0368218f [debug:config] Add show-overridden flag. (#3837) e6bf8a2e [dotenv:init] Fix templates path when Drupal not installed. (#3836) 4d0decfc [composerize] Remove use statement. (#3835) 65f96337 Fix link check. Update validator translation string (#3826) adb8174b Set all as default value. Remove interact mode, because we do not need anymore (#3834) dbfc97cd Fix issue #3831 (#3832) f26d0a18 Fix issue 3829 (#3830) 130283a7 [console] Validate container has system.config_subscriber service. (#3820)

    Source code(tar.gz)
    Source code(zip)
  • 1.7.0(Mar 6, 2018)

    f4edcad0 [console] Tag 1.7.0 release. (#3819) f60afb64 (drupal/master) [dotenv:init] Add .env dependency message. (#3818) e66605e4 [config:*] Add configuration to stop site uuid config import/export error. (#3806)

    Source code(tar.gz)
    Source code(zip)
  • 1.6.1(Feb 21, 2018)

    85a6948f Tag 1.6.1 release. (#3803) c7e848f1 [dotenv] Relocate commands. (#3802) 5f1d9556 [console] Suggest vlucas/phpdotenv dependency. (#3801) db9fa887 Replace checkbox with boolean_checkbox (#3795) 31f333c8 Make symfony/thanks a suggestion rather than a hard requirement. (#3789) 932f2e24 [console] remove drupal/console-dotenv dependency. (#3800) 879e1b6d [console] Remove gabordemooij/redbean dependency. (#3799) 08a0c780 [console] Require drupal/console-core master. (#3798) ed7d4866 [console] Remove unused symfony/expression-language package. (#3797) ea920a94 [composerize] Replace console.root service with drupal_finder service. (#3796) 7df301b5 (origin/master, origin/HEAD, drupal/master) Pass TranslatorManager through DI in order to have access to it in configure function of the command (#3763) 0c47f846 Use interface instead of classe, if it is possible (#3777) 12ef5353 [create:*] Create content exception. Fix #3779 (#3781) 3741529e Fix the wrong param name (#3785) 28c464d0 Fix issue 3133 (#3793)

    Source code(tar.gz)
    Source code(zip)
  • 1.6.0(Feb 13, 2018)

    05812d09 [console] Tag 1.6.0 release. (#3782) 3f64cc18 Add form element for the status and make name field required (#3775) b596bfe6 Replace invalid commands service with console container (#3759) 5306d694 [site:install] Load commands after site installation. (#3776) 2e7e1b35 Small bugfix for update:execute, removing extra unneeded parameter from runUpdates. (#3757) 72736437 [console] Add new option for generate ajax commmand. (#3755) dfbca67e [site:install] Fix dbHostQuestion ask null. (#3754) b386af77 [license] Update version GPL-2.0+ is deprecated. (#3752) 85766ba4 "[console] Pass DrupalFinder to DrupalConsoleCore." (#3751) 76f005be [console] Show message only on list command. (#3750) a8a6aa14 3729 role improvements (#3745) dcc986fa [locale:language:add] Add multiple languages as arguments (#3738) 45732603 A new format output for adding new fields (#3747) 0b6f4c4a (origin/master, origin/HEAD, drupal/master) Adding ArrayInput trait. Add spaces for contantination. Fix the bug with missing default_code (#3743) 281b4e8d Fix parameter class. (#3742) f68bcf9b [generate:module] Fix parameter name. (#3741) 7d827bd9 [console] Add DrupalFinder as service. (#3740) e98a6f7a [generate:help] Fix duplicated use statement. (#3739) 40ec43d2 Implementation of GeneratorInterface (#3737) 4b480cea [generate] Implement GeneratorInterface fixes. (#3735) 52c96381 3515 form trait input multi values (#3734) bac0de00 [theme] Refactor theme commands. Fix #3696 (#3703) 0ee42c62 [console] Apply PSR-2 code style. (#3732) e203274f Implementation of generator interface (#3731) b0a14a81 Replace default value and update handling of Enter input from the user (#3730) c1c7deb9 [generate:command] Replace null with empty string as default value on choiceNoList. (#3728) 65239264 Add symfony/thanks Composer plugin (#3727) f24306fc [user:create] Remove email default value. (#3726) b48099c3 [console] Remove un-usued createGenerator legacy method. (#3725) 82df098b [user:create] Set email default as empty string. (#3723) fe34f5fe [user:create] Remove email default null value. (#3724) 46c63034 Add support of multiple values for breakpoints option, when we use inline options (#3713) 7f8a6eb7 [generate:controller] Add default value. Fix #3719. (#3722) 0fb1b345 [console] Remove useless traits and death code. Fix #3716 (#3717) c9d2e62e [generate:ajax:command] Update Generator to implement GeneratorInterface. (#3721) edd12a9b [generate:command] Add generator option. (#3720) 723d5802 Add new trait ArrayInputTrait, which will parse nested data. Switch muti value options to array to handle them properly, when receive params through the options (#3712) ca88d116 Fix cs for AuthenticationProviderCommand (#3709) d9cce58a Fix cs for AjaxCommand (#3708) c3a8b53c [generate:ajax:command] Change command extend Command not ContainerAwareCommand. (#3706) 80cde771 [generate:command] Add initialize option. (#3704) cfd8ad68 Remove unused variables (#3702) dea5feeb [console] Remove unused vars in feature trait. Fix #3686. (#3692) 5fa51d19 Fix translation for generate ajax command. (#3690) 02acda80 Remove Drupal core code drupal_set_message in theme install and uninstall commands. Fix the message for theme install command when dependencies are not met (#3697) 4a8746cc [generate:module] Fix issues with .info template. (#3689) dd25b2a0 Add extension annotation to views command. (#3688) 2bf3d003 [console] Replace DrupalStyle object usage. Fix #3685 (#3691)

    Source code(tar.gz)
    Source code(zip)
  • 1.5.0(Jan 11, 2018)

    e468cbef [console] Tag 1.5.0 release. (#3684) 98023b37 [ user:* ] Update user commands. (#3683) a8acc095 Issue 3600 missing db connection (#3680) ec179edd Issue 3672 yml template quoted values (#3679) f08a2faa ReMove default assignment alias in abstract class. The alias should be set in the classes which extend the FormCommand (#3678) 0935cdc8 Replace module unput call without params (#3681) 44facf3f [console] Apply PSR-2 code style. (#3677) 39c432d8 [console] Resolve missing module variable. Fix #3670 (#3671) 5aef2314 Add validator of HTTP methods. Move list of http methods to separate method and add settings for it. Change twig template to generate the methods based on HTTP methods accrodingly (#3666) 40c3bc7c Add validation of node id. Fix code structure. Replace the wrong method getTitle with getSubject. Order use statements alphabetically (#3669) 8d28be28 [generate:ajax:command] Add new command. (#3668) 1e8be8b2 [user:*] Updates for user commands (#3667) 78b6fd80 Order use statements alphabetically. Remove unused variables for drupal root. Add comment for the class. Rename base_theme to theme to be consistent with the option name. Fix coding issues (#3665) 77f518f7 [cache:rebuild] Add missing comments, order use statements alphabetically (#3663) 468ba22c [composerize] Add support for profiles. (#3675) 13db8171 [debug:event] Update display remove ending new line. (#3676)

    Source code(tar.gz)
    Source code(zip)
  • 1.4.0(Jan 8, 2018)

    3fda33ca [console] Tag 1.4.0 release. (#3661) a860f398 [composerize] Add translation keys. (#3660) 9ae59ede [console] Add missing parameter when initializing Drupal. (#3659) 4db8f5a1 [console] Apply PSR-2 code style. (#3658) 42c18c39 Add support of --yes (confirmation) parameter for the command, which generate the code and files (#3656) b586b25c Issue 2178 replace code with module from input (#3653) 6c809c54 [console] Update configuration file paths. (#3657) 7af7c4ba Replace assertResponse with ->assertSession()->statusCodeEquals(); (#3654) e11c3ba9 [console] Apply PSR-2 code style. (#3652) 5076f183 [config:import] Add skip-uuid option flag. (#3638) 0b89228d [config:export] Remove _core if it's empty. (#3651) cacaa08c [console] Fix ModuleTrait class. (#3650) 7780d2ce Add new method for ModuleTrait, which get module name from input. Replace the code in the FormCommand (#3642) f30e6e51 Add views display manager through DI (#3646) 268569a2 [composerize] Add command. (#3643) 115b81e4 Replace strings theme_default and theme_admin with translations for them (#3640) b9eebb07 FIX #3556: Add urlRouteParameters function to the content entity class (#3637) ce6834c4 #3621 by andrewbelcher: Remove _core if it's empty. (#3629) 384c54cd offer module as an interactive option in config:export:single - fixes #3631 (#3632) 407b89e2 check that the content type exists - fixes #3626 (#3627) f4e44371 throw exception if module does not exist - fixes #3609 (#3625) 317211a5 [config:export:content:type] Add --remove-uuid and --remove-config-hash - fixes #3622 (#3623) d1b230f0 [console] Support for configurations has multilanguage (#3605) 8f47242d [console] Implement ConfigurationManager changes. (#3649)

    Source code(tar.gz)
    Source code(zip)
  • 1.3.2(Jan 4, 2018)

    abc83134 [console] Tag 1.3.2 release. (#3648) e8c91ac5 [server] Add alias serve to command. (#3645) 0aa7eff4 [create:comments] Add module dependency. (#3644) 23820bf7 Removed &, objects are by reference by default (#3618) 81c13718 [console] Pass site:install as removableBy argument. (#3624)

    Source code(tar.gz)
    Source code(zip)
  • 1.3.1(Dec 5, 2017)

  • 1.3.0(Dec 5, 2017)

    a7ab1d6b [console] Tag 1.3.0 release. (#3617) 782a2bc1 [entity:delete] Add --all option. (#3599) (#3604) c8f72d12 [console] Update profile path and fix its execution (#3596) 828ed9c1 [role:delete] New command (#3594) 615cd40b [debug:cotainer] Add --tag option to filter services. (#3616) b19e75dc [console] Remove unused code. (#3615) 1aa0a50f [console] Remove console.service_definitions parameter definition. (#3614) 71d16526 [console] Relocate getData method to drupal-console-core. (#3607) 4e74e989 [console] Set cache key. (#3606) a8cbb288 [console] Set arguments as null (#3603) cc9ebdf5 Delegate yml loader to drupal (#3602) 3ab4b981 [console] Remove usage of expression builder on services registration. (#3601) 5995a902 [console] Validate table 'sessions' exists. Fix #3572 (#3598)

    Source code(tar.gz)
    Source code(zip)
  • 1.2.0(Nov 15, 2017)

    5c346709 [console] Tag 1.2.0 release. (#3593) a082c99c [console] Fix You have requested a non-existent service 'cache.backend.null'. fa76191b [console] Add batch file to ./bin for Windows users (#3586) 2ad8c7b9 [console] Create roles commands (#3588) -- [debug:roles] New command. Display all aplication roles -- [create:roles] New command. Create dummy roles -- [role:new] New command. Create application role 8c14c1dc [console] Use message_parser service to store messages. (#3587)

    Source code(tar.gz)
    Source code(zip)
  • 1.1.1(Nov 13, 2017)

    428c771e Update drupal command annotation. (#3584) f27d0c24 [console] Minor code fixes. (#3583) 19359e68 (multisite-debug-on-uninstalled) [console] Rollback ExtensionManager class. (#3581) 511b99cb [console] Relocate code to core (#3580) 2b997597 Remove error if drupal not installed yet (#3578)

    Source code(tar.gz)
    Source code(zip)
  • 1.1.0(Nov 10, 2017)

    e73f2996 [console] Tag 1.1.0 release. (#3576) 1e625972 [console] Avoid run of Request handle(). (#3575) 3c4395b9 Avoid run of Request handle() and use of container at compiler pass fix #3091 and #3553 (#3558) 9b0e7fef Fixed comment typo. (#3569) 8fc0ac6d [user:*] Update user commands. (#3565) 8ec8a99e [console] Update DrupalApi class. (#3564) b209e908 [console] Add UserBase.php Command class. (#3563) 37103e08 Enable count code lines on generators (#3559) 5392ca33 [console] Add validation in the class field in the commands (#3534) 1180442e [generate:profile] Add base-path option (#3524) 8349aa93 [multisite:update] New command (#3522) 16a57bfc Always extend ContentEntityInterface since it extends RevisionableInterface anyway (#3555) bfeace71 3550 module download composer (#3551) 4093a579 Properly record ran post_update functions. (#3547) 13c437b7 Fix block plugin output (#3549) 4a3e4327 Use interfaces for DI. (#3546) 051c2d82 [debug:libraries] Show libraries when debugging extensions. (#3537) 30821a71 Omit 'access {entity type} overview' permission since it does nothing. (#3530) cb02dc9a Allow dependencies of parent profiles to be uninstalled (#3525) decc9db9 change dump name to 24 hour format (#3521) 058dcc60 [generate:jstest] Add new command (#3465) 4ddcdad9 [snippet] Add new command. (#3511) 38b92be2 Disable tty on non interactive mode (#3517) dfd94137 update:execute should warn and return 0 if there are no pending updates. (#3518) 10ea42a5 [debug:theme:keys] Displays all theme keys for DX. (#3361)

    Source code(tar.gz)
    Source code(zip)
  • 1.0.2(Sep 5, 2017)

    8561b13b [console] Tag 1.0.2 release. (#3512) f7847574 [console] Fix #3505: Too few arguments to function on hook updates. (#3510) 3ee47c14 Support .sql.gz files as input files (#3455) d23267cd Skip the reset password page and just login. (#3507) bca99497 Fix #3505: prints exception variable contents (#3504) 37c5df8c Corrects validator method for machine name option. (#3496) de73d34f [console] Write temp files using stream_wrapper.temporary. Fixes #3481 (#3493) cc2e3dbd Don't wipe cache during cron run (#3492) 99286c46 Fix queue:run (#3486) (#3487) c0b077c0 Fall back to environment editor if not set in console config (#3483) dff900cf [config:export] Create paths when exporting collections. (#3482) 3c4a10f3 Add option to generate interact method. (#3473) aa991429 Update ServerCommand.php (#3472) 8173853f [console] Set list as default command. (#3494) 45e70cd9 Add missing translations in generate, and remove unnecessary options in commands (#3497)

    Source code(tar.gz)
    Source code(zip)
  • 1.0.1(Aug 18, 2017)

  • 1.0.0(Aug 5, 2017)

    c70c1398 Replace missing translation key in commands (#3462) ae445f26 [generate:command] Remove use statement. (#3461)y 24233e71 [console] Extend command base (#3460) c3b26846 [generate:command] Extend base commands. (#3459) fe6c8ea3 [console] Extend base commands. (#3457)

    Source code(tar.gz)
    Source code(zip)
  • 1.0.0-rc26(Jul 28, 2017)

    17892bab [console] Tag 1.0.0-rc26 release. (#3456) 22bb51db Update Symfony component requirements to allow 3.0+ (#3453) 90d16643 Relax doctrine version constraints (#3452) eea21708 [console] Fix annotation does not exists. (#3451) a10fcb20 Add cache:tag:invalidate command. (#3445) f6091a92 [debug:breakpoints] Make breakpoint.manager optional. (#3450) b0513d1d [console] Read root option to allow remote exection. (#3449) 256d563a Update composer package type; remove composer.lock (#3447) a4a8efb3 Adding translations for some commands (#3446)

    Translation status

    | Language | Percentage | |---|---| | मराठी | 98.71% | | Español | 91.49% | | 简体中文 | 81.74% | | Français | 75.1% | | हिन्दी | 66.5% | | Català | 62.54% | | Magyar | 61.78% | | Tiếng Việt | 54.43% | | pусский язык | 53.23% | | Romanian | 52.29% | | Bahasa Indonesia | 49.98% | | Português | 49.58% | | 日本語 | 46.77% | | 繁體中文 | 36.12% | | 한국어 | 18.62% | | Tagalog | 17.73% | | ਪੰਜਾਬੀ | 16.21% |

    Source code(tar.gz)
    Source code(zip)
  • 1.0.0-rc25(Jul 17, 2017)

    a7b32fe1 [console] Tag 1.0.0-rc25 release. (#3444) c5f60ae1 Fix array_unique() expects parameter 1 to be array. (#3443) 118b2ada [console] Remove lazy service definition. (#3442) c491624f [console] Add contribute links. (#3441) 14da01ae Fix space in __con struct (#3439) 65983cb1 Adding translation messages for commands (#3437)

    Source code(tar.gz)
    Source code(zip)
  • 1.0.0-rc24(Jul 14, 2017)

    77faef51 [console] Tag 1.0.0-rc24 release. 528acbcf [console] Add gitbook translations. (#3435) a3ce128d [console] Remove console-develop templates. (#3434) a2cbcc09 [console] Add missing alias. (#3433) 073e928e Allow removing modules installed by profile. (#3407) dc4e1509 Adding Aliases for Generate Commands. (#3431) 24c79aa0 Restore generate command and generators (#3430) a3f6b7d0 [console] Fix alias names. (#3429) c1047f3c [console] Set alias as array. (#3428) 3d75678e [console] remove drupal/console-generate dependency. (#3427) 4746fb3c Allow inherited ModuleInstaller classes. (#3408) 8719cc2e Updated theme:path command. (#3425) e07a79ec Adding Missing Aliases and fixing existing ones. (#3423) c3a368b1 Updated taxonomy:term:delete command. (#3426) e3923239 [console] Add drupal/console-generate dependency. (#3424) 5e580f98 Point travis badge and link to correct job (#3412) 1dea4742 Removed generate commands and generators (#3417) e7f2bee5 Replacing in translation key from _ to - (#3422) d4acb539 [console] Load command aliases. (#3413) 030bdbe4 [console] Rename cache services file. (#3411) c8830e2a 3380 relocate to debug module commands (#3409) de04f6b5 deleting develop services (#3406) 28c82ab9 [console] Make services lazy. (#3405) 0efa2cc3 [console] Relocate services cache file. (#3404) 2a410024 [console] Relocate core dependent command registration. (#3403) 801bfb1f 3380 relocate to debug config (#3402) d9829b1f text used in yml fixed for export command (#3401) 4531efb7 3380 relocate to debug (#3399) b6ad1871 3380 relocate debug commands (#3398) 424cad6f Move state:debug to debug:state (#3397) dbc59da1 [debug:views:plugins] Remove old service definition. (#3396) d56747a1 Move update:debug to debug:update (#3395) 36454877 Move user:debug to debug:user (#3394) 7f997db0 Move views:debug to debug:views (#3393) 5da2344b Move views:plugins:debug to debug:views:plugins (#3390) 5eda387e Translations changed to the same in form command (#3391) ad2b98d6 [console] Indent commands options. (#3389) 8d467602 [config:diff]:fix bug with directory parameter. (#3373) (#3388) 7149fdb7 Fix revision revert path for untranslatable content (#3372) acec1b26 [3380] relocate debug commands (#3387) e11c9f68 adding aliases to the commands as per requirements (#3386) 93ddb2b8 Generate service command parameters changes to standard (#3385) d28e6afb Generate form (#3382) 2532b145 library path change (#3384) 8ab4907f Read translation library (#3383) b7a1303c [cache:rebuild] Add command alias. (#3379) e974fbcd Validate command (#3377) 3cbeed25 adding translation by library methods to the console (#3376) bc4b3ce0 Override Command properly indented (#3375) bd9f2cea Parameter cache-context fixed (#3374) 9f42a0fd Updated generate:entity command. (#3370) 0e22bcb9 [config:import:single] Remove name option. Fix #3223. (#3369) 0bc0abb9 [config:export:single] Set name as array on interactive mode. (#3368)

    Translation status

    | Language | Percentage | |---|---| | मराठी | 91.87% | | Español | 87.45% | | 简体中文 | 77.29% | | Français | 76.03% | | हिन्दी | 67.31% | | Català | 63.3% | | Magyar | 62.53% | | Tiếng Việt | 55.08% | | Romanian | 52.91% | | Português | 50.16% | | 日本語 | 47.31% | | Bahasa Indonesia | 43.66% | | pусский язык | 41.44% | | 繁體中文 | 36.48% | | 한국어 | 18.74% | | Tagalog | 17.83% | | ਪੰਜਾਬੀ | 16.3% |

    Source code(tar.gz)
    Source code(zip)
  • 1.0.0-rc23(Jun 27, 2017)

    2bac2122 [console] Tag 1.0.0-rc23 release. (#3363) dd684a94 [console] Fix doctrine/collections dependency. (#3362) ad48c2a3 [dotenv] Fix Dotenv dependency. (#3360)

    Source code(tar.gz)
    Source code(zip)
  • 1.0.0-rc22(Jun 27, 2017)

    369c1b23 [console] Tag 1.0.0-rc22 release. (#3359) 1501cf90 [console] Show version and execution path. (#3358) 2c64b3cf Fix show themes on theme:install command (#3357) 302ebe03 [config:settings:debug] Improve output add new line. (#3356) 20b64d54 [site:install] Validate connection before drop tables. (#3355) 1a453fe9 Quoting route names is not necessary. (#3351) 1f31679b Remove @package declarations from generated code. (#3350) 6ff75b0a Collection routes are provided by core. (#3344) 403d2bb7 Use Console's DrupalFinder for constructing Drupal object in installer command (#3345) dcf768c2 Add missing arguments to empty method call. (#3342) 03cb470b Use fully qualified namespace for @use statements (#3341) bbfe1e83 [generate:controller] Update default path value. (#3343) e0c705d3 Generate theme command should use right machine name question string. (#3339) 8b0c5f55 [console] Load extend uninstall services. (#3338)

    Source code(tar.gz)
    Source code(zip)
Owner
Hecho en Drupal
Drupal 8, Symfony
Hecho en Drupal
A command line code generator for Drupal

Drupal Code Generator A command line code generator for Drupal.

Ivan 227 Dec 14, 2022
Drupal.org Git CLI

doGit Drupal.org + Git CLI application. doGit assists in making the transition to merge requests, and general Git operations, easier for Drupal develo

dpi 16 Dec 15, 2022
Cecil is a CLI application that merges plain text files (written in Markdown), images and Twig templates to generate a static website.

Cecil is a CLI application that merges plain text files (written in Markdown), images and Twig templates to generate a static website.

Cecil 209 Jan 2, 2023
A PHP Command Line tool that makes it easy to compile, concat, and minify front-end Javascript and CSS/SCSS dependencies.

Front End Compiler A PHP Command Line tool that makes it easy to compile, concat, and minify front-end Javascript and CSS/SCSS dependencies. The minif

Happy Medium 2 Nov 12, 2021
A Cli tool to save you time, and gives you the power to scaffold all of your models,controllers,commands

A Cli tool to save you time, and gives you the power to scaffold all of your models,controllers,commands... at once Installation You can install the p

Coderflex 16 Nov 11, 2022
A simple tool to backup data & db from a web server to Google Drive.

PHP Google Drive backup - A (very) simple CLI tool that I used to backup my www directory and my database from OVH to Google Drive, in a cronjob.

Alex 18 Jan 4, 2023
PHP CLI tool which allows publishing zipped MODX extra to modstore.pro marketplace

MODX Extra Publisher PHP CLI tool which allows publishing zipped MODX extra to modstore.pro marketplace. Installation global? local? To install packag

Ivan Klimchuk 3 Aug 6, 2021
👨🏻‍🚀 A command-line tool that gives you the Alpine Day 2021 schedule in your timezone. 🚀

Alpine Day Schedule a command-line tool that gives you the Alpine Day 2021 schedule in your timezone. ?? Quick start Requires PHP 7.4+ # First, instal

Nuno Maduro 11 Jun 10, 2021
PHP Interminal is a command-line tool that gives you access to PHP Internals discussions in your terminal.

PHP Interminal is a command-line tool that gives you access to PHP Internals discussions in your terminal. ??

Nuno Maduro 32 Dec 26, 2022
Patrol is an elegant command-line tool that keeps your PHP Project's dependencies in check.

Patrol is an elegant command-line tool that keeps your PHP Project's dependencies in check. Installation / Usage Requires PHP 8.0+ First, install Patr

Nuno Maduro 237 Nov 14, 2022
A PHP command line tool used to install shlink

Shlink installer A PHP command line tool used to install shlink. Installation Install this tool using composer.

null 8 Nov 3, 2022
Laracon Schedule a command-line tool that gives you the Laracon Online schedule in your timezone.

Laracon Schedule a command-line tool that gives you the Laracon Online schedule in your timezone. ?? Quick start Requires PHP 7.4+ # First, install: c

Nuno Maduro 101 Sep 16, 2022
A simple command-line tool whose aim is to facilitate the continous delivery of PHP apps

Deployer Simple command-line tool that aims to facilitate the continous delivery of PHP apps, particularly Laravel apps. Imagine you want to update yo

Fernando Bevilacqua 4 Sep 8, 2021
Simple command-line tool to access HiWeb account information

Simple command-line tool to access HiWeb account information.

Milad Nekofar 2 Dec 26, 2022
💥 Collision is a beautiful error reporting tool for command-line applications

Collision was created by, and is maintained by Nuno Maduro, and is a package designed to give you beautiful error reporting when interacting with your

Nuno Maduro 4.2k Jan 5, 2023
A CLI tool to check whether a specific composer package uses imported symbols that aren't part of its direct composer dependencies

A CLI tool to analyze composer dependencies and verify that no unknown symbols are used in the sources of a package. This will prevent you from using "soft" dependencies that are not defined within your composer.json require section.

Matthias Glaub 722 Dec 30, 2022
Takeout is a CLI tool for spinning up tiny Docker containers, one for each of your development environment dependencies.

Takeout Takeout is a CLI tool for spinning up tiny Docker containers, one for each of your development environment dependencies. It's meant to be pair

Tighten 1.4k Jan 2, 2023
A commandline based tool to sync watch state between different media servers

Warning This is an early release version, expect bugs and edge cases that we haven't encountered. Please keep that in mind before running this tool. w

Abdulmohsen 160 Jan 4, 2023
tin is a PHP code highlighter for the terminal.

tin tin is a PHP code highlighter for the terminal. Installation Requires PHP 8.0.0+ You can install the package via composer: composer require felixd

Felix Dorn 15 Oct 7, 2022