Create a minimal MoonBit module
Dependencies
| Directory | Package | Target | Purpose |
|---|---|---|---|
| . | kokic/momoka | native, wasm | shared CLI |
| core | kokic/momoka/core | any | shared pure logic, no I/O |
moon run --target native . -- --help
moon run --target wasm . -- --help# native: preferences are read from and saved to ~/.momoka/preferred.json
momoka new your-great-project
# or, cd <your-existing-project>
momoka init
# override project defaults for this invocation
momoka new your-great-project --username alice --license MIT --host gitlab.com --target js
momoka init --username alice
# configure or print the saved defaults
momoka cfg
momoka cfg --show
# upgrade all dependencies to their latest versions
momoka upgrade
# install the stable MoonBit toolchain
momoka stable
moon run --target wasm . -- new your-great-project --username alice --license MITUsage: momoka <command>
Create a minimal MoonBit module.
Commands:
new Create a new MoonBit module in a new directory.
init Initialize a MoonBit module in an existing directory.
upgrade Upgrade all dependencies of the project to their latest versions.
stable Install the stable MoonBit toolchain.
nightly Install the nightly MoonBit toolchain.
cfg Configure default username / license / host / target, or print them.
help Print help for the subcommand(s).
Options:
-h, --help Show help information.
-V, --version Show version information.Install
Download zipCreate a minimal MoonBit module
Dependencies