mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-24 21:30:49 +01:00
feat: add ./nodebb install <plugin_name>
will install the suggested version for current nodebb closes #11060
This commit is contained in:
@@ -173,11 +173,16 @@ program
|
||||
});
|
||||
|
||||
program
|
||||
.command('install')
|
||||
.description('Launch the NodeBB web installer for configuration setup')
|
||||
.action(() => {
|
||||
require('./setup').webInstall();
|
||||
.command('install [plugin]')
|
||||
.description('Launch the NodeBB web installer for configuration setup or install a plugin')
|
||||
.action((plugin) => {
|
||||
if (plugin) {
|
||||
require('./manage').install(plugin);
|
||||
} else {
|
||||
require('./setup').webInstall();
|
||||
}
|
||||
});
|
||||
|
||||
program
|
||||
.command('build [targets...]')
|
||||
.description(`Compile static assets ${chalk.red('(JS, CSS, templates, languages)')}`)
|
||||
|
||||
Reference in New Issue
Block a user