Questions tagged [drupal-console]

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

24 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
2
votes
0answers
215 views

Drupal console report that mysql extension needs to be installed

Hi I am a novice at this stuff so that might explain the following: During my Drupal 8 install I received the following: The libmysqlclient driver version 5.6.26 is less than the minimum ...
1
vote
0answers
388 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 ...
1
vote
0answers
735 views

Drupal console missing some commands

I just install Drupal Console, then adding it to my pre-installed Drupal 8 with this into the drupal folder: php ~/bin/composer.phar require drupal/console:~1.0 --prefer-dist --optimize-autoloader ...
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 ...
1
vote
0answers
278 views

How can I add fields to an entity?

I'm coming from a do-it-yourself database design background, so bare with me. Let's say I want two database tables, one of car manufacturers, and one of car models. The first table, car_make, would ...
1
vote
0answers
467 views

How to unit test custom console ContainerAwareCommand in Drupal 8

I have a custom console command that extends Drupal\Console\Command\ContainerAwareCommand. Inside the command I need to access the container to fetch a service. But now I'm struggling with figuring ...
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
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
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: $ ...
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 ...
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
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
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 ...
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
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
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. [...
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 ...
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 ...
0
votes
2answers
137 views

An error upon trying to execute Drupal Console

I installed Drupal 8 into on my localhost, working under Windows 7 with OpenServer. After it I tried to install Drupal Console using Composer. Namely, this way composer require drupal/console:~1.0 --...
0
votes
0answers
58 views

Migration command error

On Drupal 8.0.5, I have created a d6_migration module with the following dependencies. dependencies: - migrate_drupal I activated my custom module, and I ran drupal migrate:debug which is ...
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 ...
-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? ...