Drupal-console: Command "self-update", is not a valid command name

Created on 9 Dec 2016  路  6Comments  路  Source: hechoendrupal/drupal-console

This is Drupal 8.2.4, the standard version (41 modules enabled) installed via Acquia Dev Desktop on MacOS 10.11.6 running PHP 7.0.4. Drupal Console is version 1.0.0-rc10.

Most other console commands seem fine, except drupal self-update

Thanks,
William

Most helpful comment

Instead of throwing an error, could the launcher not print a message (or in addition to the error) specifying an answer such as yours?
Things that are often so obvious for some are not documented, causing thousands of developers to waste valuable time because "error" will make you google-search for a solution, right?

All 6 comments

@wturrell Since RC releases the DC must be installer per project and therefore managed via composer (require and update)

The self-update command is now part of another project the https://github.com/hechoendrupal/drupal-console-launcher this is a global executable command plus some extra features.

@jmolivas Thanks. I'd installed the launcher etc, but I'll just ignore the self-update command from now on and update DC the same way drupal-project does.

(Btw, thanks for your advice elsewhere on composer commands as it helped me fix a problem with symfony components.)

Instead of throwing an error, could the launcher not print a message (or in addition to the error) specifying an answer such as yours?
Things that are often so obvious for some are not documented, causing thousands of developers to waste valuable time because "error" will make you google-search for a solution, right?

@ahoebeke Exactly!

drupal self-update still in the docs. https://drupalconsole.com/docs/en/getting/launcher

Ah got it! It needs to be run outside a project. https://github.com/hechoendrupal/drupal-console/issues/3198

Was this page helpful?
0 / 5 - 0 ratings