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, when I run drupal list.
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
 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.
 develop
  develop:contribute         Download Drupal + Drupal Console to contribute.
 generate
  generate:site:alias (gsa)  Generates a site alias.
 quick
  quick:start                Download, install and serve a new Drupal project
 settings
  settings:set               Change a specific setting value in DrupalConsole config file
 site
  site:new                   Download a new Drupal project
I have faced the same problem this works 100 %  :


open the shell and  cd to projectFolder  
run this command : 



   composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader



then run this command :



   composer update drupal/console --with-dependencies



run drupal list command again, and you'll find the list of all commands.

! this steps must be repeated with each project.