@ttmg/cli
v0.4.4
Published
TikTok Mini Game Command Line Tool
Downloads
1,555
Readme
@ttmg/cli
ttmg is a command-line tool designed for managing and developing mini-game projects. It supports initialization, development, debugging, and packaging for both H5 and native mini-games.
ttmg 是一款专为小游戏项目管理与开发设计的命令行工具,支持 H5 小游戏和原生小游戏的初始化、开发调试及打包构建。
Installation 安装
You can install ttmg globally or as a project dependency via npm:
你可以通过 npm 全局或本地安装 ttmg:
npm install @ttmg/cli -gOr add it as a development dependency in your project: 或者作为项目开发依赖安装:
npm install @ttmg/cli --save-devLogin 登录
Before running any ttmg commands, please log in with your TikTok account. Once logged in, the tool will automatically use your account for project initialization, development, debugging, and packaging.
在首次使用 ttmg 命令前,请先登录你的 TikTok 账号。登录后,工具会自动使用该账号进行项目初始化、开发调试和打包构建。
ttmg loginDebugging 调试
- By default, debug native mini-games:
- 默认调试原生小游戏:
ttmg dev- 调试 H5 小游戏:
- To debug H5 mini-games: ttmg dev --h5
