These are chat archives for dru-io/Drupal

7th
Feb 2017
Eugene
@evgeniypiter
Feb 07 2017 14:50
поставил Drupal Console via Composer глобально. в листинге доступных команд site:import:local не вижу. вопрос -- что необходимо сделать для импорта существующего проекта?
bumble
@awd-studio
Feb 07 2017 14:54
Usage:
  site:import:local [options] [--] <name> <directory>

Arguments:
  name                             Name that will be used to generate the site config
  directory                        Existing Drupal root directory

Options:
      --environment[=ENVIRONMENT]  Name of the environment that is going to be imported
  -h, --help                       
      --learning                   Generate a verbose code output
  -q, --quiet                      
  -V, --version                    
      --ansi                       
      --no-ansi                    
  -n, --no-interaction             
  -e, --env[=ENV]                  The Environment name [default: "prod"]
      --root[=ROOT]                Define the Drupal root to be used in command execution
      --no-debug                   Switches off debug mode
  -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             

Help:
  The site:import:local does create the yaml configuration file for a local existing site.
 settings:check

всё ясно. с какого-то ### поставилась версия 0.5.1

composer update drupal/console --with-dependencies
или
composer global update drupal/console --with-dependencies - для глобального обновления

вызов справки по команде:
drupal site:import:local -h
Eugene
@evgeniypiter
Feb 07 2017 14:56
с версией разобрался, site:import:local недоступна

site
site:debug List all known local and remote sites.
site:new Create a new Drupal project

это всё, что есть в пространстве имен site

bumble
@awd-studio
Feb 07 2017 14:57
я проверял на версии 0.11.3
Eugene
@evgeniypiter
Feb 07 2017 14:58
у меня именно 0.11.3
bumble
@awd-studio
Feb 07 2017 14:58
$ drupal site -h


  [Symfony\Component\Console\Exception\CommandNotFoundException]  
  Command "site" is not defined.                                  
  Did you mean one of these?                                      
      site:import:local                                           
      site:install                                                
      multisite:debug                                             
      site:debug                                                  
      site:new
если нет - попробуй переустанови консольку