AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { Command } from 'commander';
import { createActionCommand } from './lib/commands/create-action';
import { createPieceCommand } from './lib/commands/create-piece';
import { createTriggerCommand } from './lib/commands/create-trigger';
import { syncPieceCommand } from './lib/commands/sync-pieces';
import { publishPieceCommand } from './lib/commands/publish-piece';
import { buildPieceCommand } from './lib/commands/build-piece';
import { bundlePieceCommand } from './lib/commands/bundle-piece';
import { migratePieceCommand } from './lib/commands/migrate-piece';
import { generateWorkerTokenCommand } from './lib/commands/generate-worker-token';
import { generateTranslationFileForAllPiecesCommand, generateTranslationFileForPieceCommand } from './lib/commands/generate-translation-file-for-piece';
import { replaceProjectCommand } from './lib/commands/replace-project';
import { benchmarkCommand } from './lib/commands/benchmark';
const pieceCommand = new Command('pieces')
.description('Manage pieces');
pieceCommand.addCommand(createPieceCommand);
pieceCommand.addCommand(syncPieceCommand);
pieceCommand.addCommand(publishPieceCommand);
pieceCommand.addCommand(buildPieceCommand);
pieceCommand.addCommand(bundlePieceCommand);
pieceCommand.addCommand(migratePieceCommand);
pieceCommand.addCommand(generateTranslationFileForPieceCommand);
pieceCommand.addCommand(generateTranslationFileForAllPiecesCommand);
const actionCommand = new Command('actions')
.description('Manage actions');
actionCommand.addCommand(createActionCommand);
const triggerCommand = new Command('triggers')
.description('Manage triggers')
triggerCommand.addCommand(createTriggerCommand)
const workerCommand = new Command('workers')
.description('Manage workers')
workerCommand.addCommand(generateWorkerTokenCommand)
const projectCommand = new Command('project')
.description('Manage projects')
projectCommand.addCommand(replaceProjectCommand)
const program = new Command();
program.version('0.0.1').description('Activepieces CLI');
program.addCommand(pieceCommand);
program.addCommand(actionCommand);
program.addCommand(triggerCommand);
program.addCommand(workerCommand);
program.addCommand(projectCommand);
program.addCommand(benchmarkCommand);
program.parse(process.argv);