Skip to content

WP-CLI incorrectly probes for supported subcommands #523

@aqueenan

Description

@aqueenan

docker-entrypoint uses wp --path=/dev/null help "$1" to check if $1 is a valid sub-command.

That works for the default wp-cli commands, but fails for extensions because they weren't installed in /dev/null.

The test should be wp help "$1".

As a workaround, use:
sudo docker run -it --rm --volumes-from wordpress --network container:wordpress wordpress:cli wp ...
instead of
sudo docker run -it --rm --volumes-from wordpress --network container:wordpress wordpress:cli ...
to invoke the sub-command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions