Publish twenty-cli npm package (#14871)

as title
This commit is contained in:
martmull
2025-10-03 15:08:06 +02:00
committed by GitHub
parent 0648dc5c65
commit f973a1bcdb
14 changed files with 235 additions and 45 deletions
@@ -2,6 +2,7 @@ import { Command } from 'commander';
import { AppSyncCommand } from './app-sync.command';
import { AppDevCommand } from './app-dev.command';
import { AppInitCommand } from './app-init.command';
import { AppDeleteCommand } from './app-delete.command';
import {
AppAddCommand,
isSyncableEntity,
@@ -12,6 +13,7 @@ import chalk from 'chalk';
export class AppCommand {
private devCommand = new AppDevCommand();
private syncCommand = new AppSyncCommand();
private deleteCommand = new AppDeleteCommand();
private initCommand = new AppInitCommand();
private addCommand = new AppAddCommand();
@@ -34,6 +36,13 @@ export class AppCommand {
await this.syncCommand.execute();
});
appCommand
.command('delete')
.description('Delete application from Twenty')
.action(async () => {
await this.deleteCommand.execute();
});
appCommand
.command('init [directory]')
.description('Initialize a new Twenty application')