repl() {
		let repl;
		try {
			repl = require("moleculer-repl");
		} catch (error) {
			// eslint-disable-next-line no-console
			console.error(
				"The 'moleculer-repl' package is missing. Please install it with 'npm install moleculer-repl' command."
			);
			this.logger.error(
				"The 'moleculer-repl' package is missing. Please install it with 'npm install moleculer-repl' command."
			);
			this.logger.debug("ERROR", error);
			return;
		}

		if (repl) {
			let opts = null;
			const delimiter = this.options.replDelimiter;
			const customCommands = this.options.replCommands;
			delimiter && (opts = { delimiter });
			customCommands && (opts = { ...opts, customCommands });
			return repl(this, opts);
		}
	}
Switch the console to REPL mode.

@example
broker.start().then(() => broker.repl());
@returns {object}