0.0.8 • Published 2 years ago

mars-micro-cli v0.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

tma-cli

tma cli is the official tool for bytedance microapp development.

中文

Installation

It's recommended to install tma globally.

npm install -g tt-ide-cli

Usage

Create Project

Create a new blank miniprogram project with given name in current folder.

Usage: tma create <project-name>

Create a new project with given name in current folder

Options:

  -f, --force        Overwrite target directory if it exists
  -h, --help         Output usage information

Open existing project

Open existing project with given path in microapp IDE.

If the path is not available, start up the IDE only.

Usage: tma open <project-path>

Open target project by path

Login

Login to the developer Platform. Proxy is supported.

Usage: tma login [options]

Login to the developer platform

Options:
  -m, --mobile         Login by mobile
  -e, --email          Login by email
  -p, --proxy <proxy>  Login with proxy
  -h, --help           output usage information

Login by email

Usage: login-e [email] [password]

Login to the developer platform by E-mail

Options:
  -p, --proxy <proxy>  Login with proxy
  -h, --help           Output usage information

Preview project

Upload project to remote and preview the result by scanning the output QR code.

Usage: tma preview [options] [entry]

preview project by remote

Options:
  -f, --force          Preview project without local cache(deprecated)
  --disable-cache      Preview project without local cache
  -s, --small          Use small QR Code, but it does not take effect in some environments
  -c, --copy           Copy remote url to clipboard
  -p, --proxy <proxy>  Preview with proxy
  -h, --help           output usage information

Upload project

Upload project to the developer platform

Usage: tma upload [options] [entry]

upload project to the developer platform

Options:
  -v, --app-version <version>  App version (eg: [major].[minor].[patch])
  -c, --app-changelog <log>    Changelog for this version
  -p, --proxy <proxy>          Update request proxy
  -cp, --copy                  Copy remote url to clipboard
  -h, --help                   output usage information