public static function createConfigJson( Event $event ) {
		if ( ! defined( 'WPEMERGE_CLI_DIR' ) ) {
			define( 'WPEMERGE_CLI_DIR', dirname( __DIR__ ) );
		}

		$input = new ArrayInput( [ 'config:create' ] );
		$output = new BufferedOutput();

		try {
			$application = static::create();
			$command = $application->find('config:create');
			$command->run( $input, $output );
			$event->getIO()->write( $output->fetch() );
		} catch ( RuntimeException $e ) {
			$event->getIO()->write( '<error>' . $e->getMessage() . '</error>' );
		}
	}