0

I have registered the command like below and pushed this to VIP's development environment but when I try to execute this command from VIP CLI it throws an error.

Note: on local this command is being registered and working correctly.

WP_CLI::add_command( 'add-tabindex-aria-label', array( $this, 'add_tabindex_arialabel_handler' ) );

Error: 'add-tabindex-aria-label' is not a registered wp command. See 'wp help' for available commands.

4
  • And what full command are you trying on VIP?
    – vancoder
    Commented May 10 at 16:46
  • This needs more context, like where you added this code and how you are loading/including the respective file.
    – swissspidy
    Commented May 15 at 12:32
  • vip @id.env -- wp add-tabindex-aria-label post_id --url=abc.go-vip.net/abc
    – up1512001
    Commented May 17 at 10:59
  • Thanks vancoder swisspidy I figured out the solution, the issue was with the multisite on which I am trying to run the command was under maintenance and after removing it from maintenance it worked.
    – up1512001
    Commented May 17 at 11:03

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.