jack zhang 62b2b5c68b
chore: add copyright information to the file header (#4028)
* fix: add license code

* fix: bug

* fix: bug

* fix: upgrade

* fix: improve

* chore: add copyright information to the file header

* fix: d.ts bug

* fix: bug

* fix: e2e bug

* fix: merge main

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2024-04-30 15:51:31 +08:00

51 lines
1.4 KiB
TypeScript

/**
* This file is part of the NocoBase (R) project.
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
* Authors: NocoBase Team.
*
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
* For more information, please refer to: https://www.nocobase.com/agreement.
*/
/* istanbul ignore file -- @preserve */
import Application from '../application';
import createMigration from './create-migration';
import dbAuth from './db-auth';
import dbClean from './db-clean';
import dbSync from './db-sync';
import destroy from './destroy';
import install from './install';
import pm from './pm';
import refresh from './refresh';
import restart from './restart';
import start from './start';
import stop from './stop';
import upgrade from './upgrade';
import consoleCommand from './console';
export function registerCli(app: Application) {
consoleCommand(app);
dbAuth(app);
createMigration(app);
dbClean(app);
dbSync(app);
install(app);
// migrator(app);
upgrade(app);
pm(app);
restart(app);
stop(app);
destroy(app);
start(app);
refresh(app);
// development only with @nocobase/cli
app.command('build').argument('[packages...]');
app.command('clean');
app.command('dev').usage('[options]').option('-p, --port [port]').option('--client').option('--server');
app.command('doc').argument('[cmd]', '', 'dev');
app.command('test').option('-c, --db-clean');
app.command('umi');
}