hechoendrupal / drupal-console

The Drupal CLI. A tool to generate boilerplate code, interact with and debug Drupal.
http://drupalconsole.com
GNU General Public License v2.0
940 stars 559 forks source link

[docs] installing in an existing drupal multisites platform #3545

Open matoeilD opened 6 years ago

matoeilD commented 6 years ago

Problem/Motivation

We are having problem understanding how should be correctly installed the console in an existing drupal multisite platform of a dev server. Some clarifications would be appreciated. I would then be happy to explicit further the documentation

steps:

My (naïve ) questions are:

Details to include:

Thanks in advance for your precisions

jmolivas commented 6 years ago

@matoeilD To take interact with drupal multisite you should use the --uri flag ie:

drupal list --uri=site-name 
drupal site:install --uri=site-name 
matoeilD commented 6 years ago

Thanks for your time. I am sorry to say it is still not clear to me and it is still not working. from the /my_site folder

Drupal Console Launcher version 1.0.2 Drupal Console version 1.1.1

Usage: command [options] [arguments]

Options: -h, --help Display this help message -q, --quiet Do not output any message -V, --version Display this application version --ansi Force ANSI output --no-ansi Disable ANSI output -n, --no-interaction Do not ask any interactive question -e, --env[=ENV] The Environment name [default: "prod"] --root[=ROOT] Define the Drupal root to be used in command execution --debug Switches on debug mode --learning Generate a verbose code output -c, --generate-chain Shows command options and arguments as yaml output to be used in chain command -i, --generate-inline Shows command options and arguments as inline command -d, --generate-doc Shows command options and arguments as markdown -t, --target[=TARGET] Site name you want to interact with (for local or remote sites) -l, --uri=URI URI of the Drupal site to use (for multi-site environments or when running on an alternate port) -y, --yes Skip confirmation and proceed -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands: about Displays basic information about Drupal Console project chain Chain command execution check System requirement checker exec Execute an external command. help Displays help for a command init Copy configuration files. list Lists all available commands server Runs PHP built-in web server debug debug:chain (dch) List available chain files. debug:settings (dse) List user Drupal Console settings. debug:site (dsi) List all known local and remote sites. dotenv dotenv:debug Debug Dotenv debug values. dotenv:init Dotenv initializer. multisite multisite:new (mun) Sets up the files for a new multisite install. multisite:update (muu) Update the files for a multisite installed. settings settings:set Change a specific setting value in DrupalConsole config file site site:install (si) Install a Drupal project

I have never ran drupal site:install because the drupal site has been previsouly installed using aegir

jmolivas commented 6 years ago

DrupalConsole is two thing the DrupalConsole Launcher and DrupalConsole itself full explanations here => https://docs.drupalconsole.com/en/getting/project.html

You should install per site => https://docs.drupalconsole.com/en/getting/composer.html And you could install the launcher => https://docs.drupalconsole.com/en/getting/launcher.html

You have a limited number of commands because DrupalConsole is not finding your drupal installation possible issues => https://docs.drupalconsole.com/en/drupal_console_faq/installation-problems.html

Finally, this issue about DrupalConsosle not properly finding your site could be related to:

drupal site has been previsouly installed using aegir

We have a PR to provide support to aegir https://github.com/hechoendrupal/drupal-console/pull/3509