# cocos-cli **Repository Path**: zxwu/cocos-cli ## Basic Information - **Project Name**: cocos-cli - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-07 - **Last Updated**: 2026-04-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ๐ŸŽฎ COCOS CLI [![Node.js](https://img.shields.io/badge/Node.js-22.17.0-green.svg)](https://nodejs.org/) [![Cocos Engine](https://img.shields.io/badge/Cocos-Engine-orange.svg)](https://github.com/cocos/cocos4) [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) ![cli logo](./static/image.png) > ๐Ÿš€ A powerful command-line interface tool for Cocos Engine development ## โœจ Features - ๐Ÿ—๏ธ **Project Management**: Create, import, and build Cocos projects - ๐Ÿ“ฆ **Resource Management**: Import/export resources, batch processing - โšก **Build System**: Multi-platform build support - ๐ŸŽจ **Interactive Interface**: Wizard-guided operations ## ๐Ÿ“‹ Prerequisites - Node.js 22.17.0 - Git - Visual Studio with C++ build tools (for Windows) - Xcode (for macOS) For native development, please refer to the [Native Development Setup Guide](https://docs.cocos.com/creator/3.8/manual/en/editor/publish/setup-native-development.html) for detailed setup instructions. ## ๐Ÿ› ๏ธ Installation 1. **Clone the repository** ```bash git clone cd cocos-cli ``` 2. **Install dependencies** ```bash npm install -g node-gyp npm run init npm install ``` 3. **Build and link globally** ```bash npm run build npm link ``` ## ๐Ÿš€ Quick Start See [Quick Start Guide](docs/en/quick-start.md) for detailed usage steps. ## ๐Ÿ“š Commands ```bash # Create project cocos create --project ./my-project # Build project cocos build --project ./my-project --platform web-mobile # Import project cocos import --project ./my-project # Show project information cocos info --project ./my-project # Start MCP server cocos start-mcp-server --project ./my-project --port 9527 # Interactive wizard cocos wizard # Display help cocos --help ``` For detailed command documentation, see [Commands Documentation](docs/en/commands.md). ## ๐Ÿงช Testing ### Unit Tests ```bash # Run all unit tests (core) npm test # Run only core tests npm run test:core # Run tests in watch mode npm run test:watch # Run tests with coverage report npm run test:coverage ``` ### E2E Tests ```bash # Run E2E tests npm run test:e2e # Run E2E tests in debug mode (preserves test projects) npm run test:e2e:debug # Check E2E test coverage npm run check:e2e-coverage # Generate E2E coverage HTML report npm run check:e2e-coverage:report ``` ### Run All Tests ```bash # Run all tests (unit + E2E) npm run test:all ``` For more testing details, see: - [Unit Tests Documentation](tests/README.md) - [E2E Tests Documentation](e2e/README.md) ## ๐Ÿ“– Documentation - [Quick Start Guide](docs/en/quick-start.md) - [Tool Download Guide](docs/en/download-tools.md) - [Commands Documentation](docs/en/commands.md) ## ๐Ÿค Contributing We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) to get started. The guide covers: - Development workflow and building the project - Running and writing tests - Code style and formatting - Debugging techniques - Submitting pull requests ## ๐Ÿ“„ License MIT License - see the [LICENSE](LICENSE) file for details.