Questions tagged [drupal-console]

Use it for the suite of tools run from a command line interface to generate boilerplate code: the Drupal Console.

Filter by
Sorted by
Tagged with
0
votes
1answer
707 views

How come Drupal Console is not downloading all commands?

When adding Drupal Console using Composer, we are finding that the list of commands is not complete. How can I resolve the issue? Installation steps: change to root directory (/local/path/drupal-...
0
votes
2answers
392 views

Command “generate:module” is not a valid command name

I have this problem when I run command drupal generate:module. I don't know why, despite everything I did was suggested on the documentation for Drupal Console. I don't see all the possible commands, ...
0
votes
0answers
31 views

An AJAX HTTP error occurred during the Drupal module update

On Druapl 9.1.5, during the Metatag 8.x-1.16 update from the site it gave the following: Debugging information follows. Path: /core/authorize.php/core/authorize.php?batch=1&id=477&op=do_nojs&op=do ...
0
votes
3answers
3k views

Unable to uninstall a module

When I try to uninstall the "Commerce license" module, the following error appears : drupal module:uninstall commerce_license [ERROR] SQLSTATE[42S02]: Base table or view not found: 1146 Table ...
1
vote
1answer
337 views

How do I uninstall and remove Drupal Console from my project?

1 year ago, I installed the Drupal Console module on my site. This module seems to be completely abandoned, so I'm asking my question here. https://www.drupal.org/project/console I had installed this ...
3
votes
1answer
380 views

Render a view in a given language in a custom command

I have written a Drupal Console command that creates a huge batch of HTML snippets. This is done by rendering a view programmatically (as in this StackExchange answer) The task Now I have to create ...
1
vote
1answer
853 views

Export Paragraph bundles

I know drupal config:export:content:type is for exporting a content type. Is there a way to do this for a Paragraph bundle? drupal config:export:paragraph:type doesn't work.
0
votes
1answer
34 views

Argument 2 passed to Drupal\Console\Command\Test\RunCommand::__construct() must be an instance of Drupal\simpletest\TestDiscovery

I'm trying to install drupal console with Drupal 9.0.5, so I ran this command: composer require drupal/console:~1.0 However when I try run the drupal command with any arguments I get this error: root@...
2
votes
2answers
4k views

How to update core and all modules and themes from CLI?

On a LAMP environment I have a Drupal 8.5.6 website which is nearly all-core with the Bartik theme and a few stable contrib modules. Nothing is customized and I have daily backups so I don't "fear" of ...
3
votes
3answers
7k views

How do I disable a module?

I am trying to disable modules in Drupal 8, and I found some solution like Drupal console, but I am not sure how to use it with XAMPP. I am unable to understand how I can disable a Drupal 8 module. ...
0
votes
0answers
120 views

How do you get the current directory in a command method?

In a standard Drupal 8 environment, the current working directory is override and becomes the document root of the site. This is a bit troublesome for Drupal Console command implementations that wants ...
0
votes
1answer
489 views

How do I install without having these errors? [closed]

So far, Drupal Commerce is the best module for e-commerce on Drupal. But now Drupal 9.0.0 was released, and when I want to install Drupal Commerce on Drupal 9, both way is out of luck. Both way I ...
4
votes
1answer
221 views

Drush or Drupal console command to list modules with security updates?

Is there a command for Drupal 8.x that shows available updates? I added forms_steps 1.1 that has an SA and a security update required in the Web UI, which is saying to update to 1.2 I tried drush pm:...
0
votes
0answers
89 views

How can I create a content type field?

How do i create a content type field using Drush or Drupal Console? I tried both ways but nothing seems to work. I am using Drush Commandline Tool 9.7.1 and Drupal Console version 1.9.4. Drush: $ ...
3
votes
3answers
6k views

How do I install Drupal Console to my project with Composer?

I am running my Drupal 8 project under Acquia Dev Desktop 2 and just got Composer installed. How can I add the Drupal Console to my project?
0
votes
2answers
61 views

Content type export with drupal console not working

I have a content type called slider as the image below shows: I tried the following to export the content-type: drupal config:export:content:type slider when I enter the command, I am prompted to ...
10
votes
4answers
5k views

Is Drupal Console aimed to replace Drush?

Is Drupal Console (which is available for Drupal 8) aimed to totally or partially replace Drush?
0
votes
1answer
48 views

How can I get single keys in multi-item config objects using debug:config?

For example, in drush I can run drush cget search_api.server.iges_solr backend_config.connector_config.port and get a useful answer. ('search_api.server.iges_solr:backend_config.connector_config....
1
vote
2answers
605 views

Composer installation of drupal console missing functions

I've been attempting to install drupal console for the first time ever. I was looking for a means of creating boiler plate modules, blocks etc. My issue is when I have finished the installation ...
0
votes
1answer
61 views

Setup many to many relationship - custom content entity

I'm currently setting up a site and using 2 custom content entities (generated with Drupal Console) : A tenant, with some custom fields A Building, with some custom fields Theses two entities need ...
2
votes
2answers
1k views

How do I create a sub-theme from CLI? [closed]

How do I create a sub-theme using Drupal Console or Drush 9? I looked at Creating a Drupal 8 sub-theme, or sub-theme of sub-theme and the documentation of drupal generate:theme, but I didn't find ...
1
vote
0answers
387 views

How do I generate a custom content entity bundle?

I created a custom content entity with Drupal console version 1.9.2. Everything is working fine. To use all the configuration and settings of my custom entity type in different bundles, I want ...
0
votes
3answers
725 views

Drupal console set site:mode

I installed a site use composer with command composer create-project drupal-composer/drupal-project:8.x-dev some-dir --stability dev --no-interaction I would like to set site mode to dev. If site ...
0
votes
0answers
150 views

Commands doen't work because of the Address module and its dependencies

When I try to use a Drupal Console command, even a simple a drupal list, I get an error. Fatal error: Class 'CommerceGuys\Addressing\AddressFormat\AddressFormatRepository' not found in /path/to/...
0
votes
1answer
308 views

Clearing cache takes “long time”

I am absolutely new in Drupal. I am trying to set up my first "Hello world" module and I am playing with it. Every time I clear cache using Drupal Console, it takes 15 seconds, which is an eternity ...
3
votes
1answer
29 views

Undo/redo drupal console generate:plugin:block?

I ran drupal console generate:plugin:block and made a mistake. I'd like to run it again, but I get this error: 'block' entity with ID 'my_block' already exists. I've removed the source file that ...
0
votes
3answers
830 views

'Edit Own Content' permission missing in custom entity

I have generated a custom entity using Drupal Console. drupal generate:entity:content The entity doesn't have the permission edit own content which we usually have in node types etc... The entities ...
0
votes
1answer
172 views

Command to list all media entities in console?

I have an issue in my site which is not allowing me to visit the /en/admin/content/media page. I'm looking for an approach to list and delete media entities on the command line. When I run drupal ...
-4
votes
2answers
137 views

Is there a single Drush and or Drupal console command to export and import all configurations?

Normally I goto Config Sync then export all > save config tar.gz > import. Can this be achieved with one command?
0
votes
1answer
650 views

Migrate content from drupal8 to drupal8 programmatically with Node::load and Node::create

Basicly I want to migrate content from one drupal8 instance to another. they are mostly identical with some small changes. first step is to migrate the content type via drush gen module module and ...
4
votes
2answers
8k views

Rebuild node access permissions

How can I rebuild the node access permissions? drupal node:access:rebuild returns the following error message. [Symfony\Component\Console\Exception\CommandNotFoundException] There are no commands ...
8
votes
2answers
2k views

Define module as feature

Creating a module with Drupal Composer asks me: Define module as feature (yes/no) What does it mean?
3
votes
3answers
8k views

views exposed filter to have dropdown of entity reference in cutstom entity

I generated with drupal console utility my own module and content entity code. After I added a user entity reference field and a taxonomy term entity reference field. Now I'm listing my content with ...
0
votes
1answer
155 views

Custom entity translation interface

I created a new custom entity using drupal console, I enabled translation and all looks ok in code. The problem is that I don't know how to translate an entity from the admin interface, I don't see ...
3
votes
2answers
551 views

Which cache bin to clear after changing services

I made some changes to own services and now I get an error about invalid arguments. When I clear all caches everything works fine. I don't want to clear all caches in my production environment. Which ...
0
votes
1answer
167 views

Problem translation of terms menu - Drupal 8.5.1 - Distribution VarBase

how are they? I have a problem with the menu item translation. when i make click in button translate i have a issue i attach image. I am using Drupal 8.5.1 and the distribution VarBase 8.x-4.16. ...
0
votes
0answers
450 views

Creating entity type using console doesn't work

I've installed Drupal 8.5.4 and followed these two steps to create a module and an entity type: Ran drupal gm and filled in the info Ran drupal geco and filled in the info (No bundles, No translation,...
0
votes
0answers
266 views

run drupal console command from linux cron

I have created a .sh file which runs a drupal console command via bash. I have tried to run this script in linux cron and all other commands work with exception to the drupal console command. How ...
1
vote
1answer
67 views

How do I download a specific version of a module?

The official documentation for Drupal Console says that the arguments for drupal module:download are the following. drupal module:download [arguments] [options] is there an argument or option to ...
0
votes
1answer
21 views

urol executed via bash throws exception error if role has a space in it

Role name "teaching assistant" command executed is: drush @comply-all urol "teaching assistant" sdf --y if I copy and paste this it works fine. if the following command is called from a bash script ...
0
votes
1answer
121 views

The test:run command is missing, but other commands work fine

I installed Drupal Console, put it on my path, ran drupal init, and successfully used Drupal Console to generate a module. Now I want to run tests with drupal test:run, but I get this error. [...
1
vote
3answers
938 views

Why do I get an error about the modules/custom directory not existing?

I have installed Drupal 8 on Ubuntu. All works well, but I cannot create a new module using Drupal Console. When I run drupal generate:module, I get the following error message. [...
3
votes
1answer
92 views

Drupal console “settings:set” not working or I am doing it wrong

I wanted to use Drupal console to change some settings on a site: To set the default 403 page to "/user/login" To set user registration permission to "admin only" Following the instructions here, ...
1
vote
1answer
356 views

How do I display all available field types?

I want generate an new form in a custom module via the generate:form command. In this step, I must enter a field type. How can I get all available field types?
0
votes
0answers
52 views

Modifying and Existing Theme in Drupal

The theme I am using has a slider -- a panel of automatically changing images to display a topic that the user can choose -- but it only shows a few slides. I want to extend it to a dozen slides. I ...
-1
votes
1answer
13 views

module/theme update on web hosted site question

I am new to drupal and I just installed a fresh site onto Acquia web hosting. How do I install modules and themes since I can't seem to be given direct access to the file manager via the browser? ...
0
votes
0answers
118 views

Error while importing just exported content type with drupal console

I'm trying to export a content type from one drupal installation and then install it to another. I export a content type with : ../vendor/bin/drupal cect And then I try to import it to another ...
3
votes
1answer
751 views

Get a list of available migration destination plugins

how can I get all available migration destination plugins? A way to ask with drupal console? like listed on Migrate destination plugin examples
3
votes
3answers
722 views

How to properly set up Drupal Console on Windows 7

I have been trying to set up Drupal Console for quite some time now on Windows 7; however, there always seems to be some kind of error which I am unable to solve. I have installed Drupal Console via ...
2
votes
1answer
308 views

Installing latest drupal console RC via composer

I'm trying to install drupal console latest release candidate globally via composer. I run $ composer global require drupal/console:~1.0.0@rc But I get the following error: Your requirements could ...