<?php use WpLandingKitPlugin\MakeReleaseCommand; if ( defined( 'WP_CLI' ) && WP_CLI ) { try { require 'lib/MakeReleaseCommand.php'; WP_CLI::add_command( MakeReleaseCommand::COMMAND, MakeReleaseCommand::class ); } catch ( \Exception $e ) { // Your command appears to have shit the bed… ¯\_(ツ)_/¯ } }