n8n
Version:
n8n Workflow Automation Tool
22 lines • 897 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.LicenseInfoCommand = void 0;
const di_1 = require("@n8n/di");
const license_1 = require("../../license");
const base_command_1 = require("../base-command");
class LicenseInfoCommand extends base_command_1.BaseCommand {
async run() {
const license = di_1.Container.get(license_1.License);
await license.init({ isCli: true });
this.logger.info('Printing license information:\n' + license.getInfo());
}
async catch(error) {
this.logger.error('\nGOT ERROR');
this.logger.info('====================================');
this.logger.error(error.message);
}
}
exports.LicenseInfoCommand = LicenseInfoCommand;
LicenseInfoCommand.description = 'Print license information';
LicenseInfoCommand.examples = ['$ n8n license:info'];
//# sourceMappingURL=info.js.map
;