Skip to content

The [block] command does not actually exist #1002

@joshualip-plaudit

Description

@joshualip-plaudit

Bug Report

Describe the current, buggy behavior
Per the online documentation (https://developer.wordpress.org/cli/commands/), a set of commands starting with block should exist.
However, upon running wp block type list (the command that I was interested in running), I was met with: Error: 'block' is not a registered wp command. See 'wp help' for available commands.

Updating to nightly (2.13.0-alpha-*) resolves the issue.

Describe how other contributors can replicate this bug

  • Ensure that you have the most recent stable version (2.12.x)
    • Running wp cli update --stable will do the trick
  • Run: wp block type list
    • Or any other block command - they're all broken
  • Observe that you get an error about 'block' not being a registered wp command

Describe what you would expect as the correct outcome

I expect that the command that is listed in the documentation as existing actually exists

Let us know what environment you are running this on

OS:     Linux 6.12.76-linuxkit #1 SMP Fri Apr 17 14:56:37 UTC 2026 aarch64
Shell:  
PHP binary:     /usr/local/bin/php
PHP version:    8.5.5
php.ini used:   /usr/local/etc/php/php.ini
MySQL binary:   /usr/bin/mariadb
MySQL version:  mariadb from 11.8.6-MariaDB, client 15.2 for debian-linux-gnu (aarch64) using  EditLine wrapper
SQL modes:      
WP-CLI root dir:        phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir:      phar://wp-cli.phar/vendor
WP_CLI phar path:       phar:///usr/local/bin/wp
WP-CLI packages dir:    /var/www/.wp-cli/packages/
WP-CLI cache dir:       /var/www/.wp-cli/cache
WP-CLI global config:   /var/www/.wp-cli/config.yml
WP-CLI project config:  
WP-CLI version: 2.12.0

Provide a possible solution

Ensure that the documentation matches the stable version of what it is documenting or otherwise explicitly mark upcoming features as upcoming.

Additionally, ensure that the text of project readmes is accurate. For example, instead of saying, "This package is included with WP-CLI itself, no additional installation necessary." (emphasis added for clarity), the block command's readme should instead say, "This package will be included with WP-CLI itself, until then, additional installation is still necessary.".

Provide additional context/Screenshots

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