Skip to content
/ cli Public

A CLI to build and manage mochi repositories and modules.

License

Notifications You must be signed in to change notification settings

Mochi-Team/cli

Repository files navigation

@mochiapp/cli

An easy-to-use CLI for compiling and bundling Mochi modules.

npm (scoped) lint ci cd

Powered by esbuild logo

Requirements

You must have Node installed on your computer and the minimum version supported is v16.x.

Installation

For pnpm:

# Local cli
pnpm add -D @mochiapp/cli

# Or Global 
pnpm add -g @mochiapp/cli

For npm:

# Local cli
npm install --save-dev @mochiapp/cli

# Or Global 
npm install -g @mochiapp/cli

For yarn:

# Local cli
yarn add -D @mochiapp/cli

# Or Global 
yarn global add @mochiapp/cli

Usage

A cli tool used to build and bundle Mochi modules.

Options:
  -V, --version     output the version number
  -h, --help        display help for command

Commands:
  init [options]    initalize a new module from template
  check [options]   checks for errors in repository
  bundle [options]  bundles modules into a repository
  serve [options]   bundle and start local server for testing modules
  help [command]    display help for command

Contribute

You must use pnpm in order to make any changes. Once you've made changes, submit a pull request. Any contributions are welcome and appreciated :D

License

Licenced under MIT.