GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - soucod/cocos-cli: COCOS CLI

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

894 Commits
894 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
@types
@types
 
 
docs
docs
 
 
e2e
e2e
 
 
packages
packages
 
 
patches
patches
 
 
src
src
 
 
static
static
 
 
tests
tests
 
 
workflow
workflow
 
 
.eslintignore
.eslintignore
 
 
.gitignore
.gitignore
 
 
.npmrc
.npmrc
 
 
.nvmrc
.nvmrc
 
 
.vscodeignore
.vscodeignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README-zh.md
README-zh.md
 
 
config.local.example.json
config.local.example.json
 
 
eslint.config.js
eslint.config.js
 
 
jest.config.ts
jest.config.ts
 
 
jest.parallel.config.ts
jest.parallel.config.ts
 
 
jest.serial.config.ts
jest.serial.config.ts
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
readme.md
readme.md
 
 
repo.json
repo.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

๐ŸŽฎ COCOS CLI

Node.js Cocos Engine License

cli logo

๐Ÿš€ 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
  • ๐Ÿ–ฅ๏ธ Simulator Preview: Build and launch the Cocos simulator from the CLI
  • ๐ŸŽจ 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 for detailed setup instructions.

๐Ÿ› ๏ธ Installation

  1. Clone the repository

    git clone <repository-url>
    cd cocos-cli
  2. Install dependencies

    npm install -g node-gyp
    npm run init
    npm install
  3. Build and link globally

    npm run build
    npm link

๐Ÿš€ Quick Start

See Quick Start Guide for detailed usage steps.

๐Ÿ“š Commands

# 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.

๐Ÿ–ฅ๏ธ Simulator Preview

The simulator is not part of npm run build โ€” npm run release builds it automatically, or you can build it directly:

# Build the native simulator executable + runtime artifacts
npm run build:simulator

# Build only the native executable
npm run build:simulator:native

# Build only the runtime artifacts
npm run build:simulator:runtime

The public API lives in src/lib/simulator/simulator.ts (generated types in packages/cocos-cli-types/simulator.d.ts). See docs/en/simulator.md for an overview.

๐Ÿงช Testing

Unit Tests

# Run all unit tests (core)
npm test

# Run asset-db workspace tests
npm run test:asset-db

# Run tests in watch mode
npm run test:watch

# Run tests with coverage report
npm run test:coverage

E2E Tests

# 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

# Run all tests (unit + E2E)
npm run test:all

For more testing details, see:

  • Unit Tests Documentation
  • E2E Tests Documentation

๐Ÿ“– Documentation

  • Quick Start Guide
  • Tool Download Guide
  • Commands Documentation

๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guide 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 file for details.

About

COCOS CLI

cocos.com

Resources

Readme
License

Contributing

Contributing
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.