New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

create-cocos-plugin

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-cocos-plugin

> **Compatibility Note:** > create-cocos-plugin dependens on Vite. Vite requires [Node.js](https://nodejs.org/en/) version 18+, 20+. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it.

latest
Source
npmnpm
Version
1.0.23
Version published
Maintainers
1
Created
Source

create-cocos-plugin npm package

Scaffolding Your First COCOS-plugin Project

Compatibility Note: create-cocos-plugin dependens on Vite. Vite requires Node.js version 18+, 20+. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it.

With NPM:

$ npm create cocos-plugin@latest

With Yarn:

$ yarn create cocos-plugin

With PNPM:

$ pnpm create cocos-plugin

With Bun:

$ bun create cocos-plugin

Then follow the prompts!

You can also directly specify the project name and the template you want to use via additional command line options. For example, to scaffold a cocos-plugin + Vue project, run:

# npm 7+, extra double-dash is needed:
npm create cocos-plugin@latest my-cocos-plugin -- --template vue

# yarn
yarn create cocos-plugin my-cocos-plugin --template vue

# pnpm
pnpm create cocos-plugin my-cocos-plugin --template vue

# Bun
bun create cocos-plugin my-cocos-plugin --template vue

Currently supported template presets include:

  • vanilla
  • vue
  • vue-element-plus

You can use . for the project name to scaffold in the current directory.

Keywords

cocos

FAQs

Package last updated on 24 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts