1 import { registerTSPaths } from '../../server/helpers/register-ts-paths'
4 import { initDatabaseModels } from '../../server/initializers/database'
5 import * as program from 'commander'
6 import { PluginManager } from '../../server/lib/plugins/plugin-manager'
9 .option('-n, --npm-name [npmName]', 'Package name to install')
12 if (!program['npmName']) {
13 console.error('You need to specify the plugin name.')
18 .then(() => process.exit(0))
24 async function run () {
26 await initDatabaseModels(true)
28 const toUninstall = program['npmName']
29 await PluginManager.Instance.uninstall(toUninstall)