CLI Commands
Complete reference for all AG-Kit CLI commands.Global Commands
ag-kit init
Initialize a new AG-Kit project.--template- Choose project template (react, miniprogram, node)--framework- Select agent framework (langgraph, langchain, dify)--typescript- Use TypeScript--git- Initialize git repository
ag-kit dev
Start development server.--port- Specify port number--host- Specify host address--open- Open browser automatically
ag-kit build
Build project for production.--output- Output directory--minify- Minify output--sourcemap- Generate source maps
ag-kit deploy
Deploy project to cloud platform.vercel- Deploy to Vercelnetlify- Deploy to Netlifyaws- Deploy to AWSdocker- Build Docker image
Project Commands
ag-kit generate
Generate code templates.component- React componentpage- Mini Program pageagent- Agent configurationadapter- Framework adapter
ag-kit test
Run tests.--watch- Watch mode--coverage- Generate coverage report--verbose- Verbose output
ag-kit lint
Lint code.--fix- Auto-fix issues--format- Output format (stylish, json, table)