Moon v2.0: WASM Plugin Toolchains, Improved CLI, and More! (2026)

Moonrepo's Moon v2.0: Revolutionizing Monorepo Management with WASM Plugin Toolchains and Enhanced CLI

Moonrepo, a developer productivity platform for monorepo management, has recently released Moon v2.0, codenamed "Phobos", marking its first major version since v1. This release, which follows an extensive alpha, beta, and release candidate cycle, introduces a plethora of exciting features and improvements.

One of the most significant changes in Moon v2.0 is the transition from a hard-coded platform system to a WASM plugin-based toolchain architecture. This shift empowers the community to create custom toolchain plugins for any language or runtime, offering unprecedented flexibility and extensibility. The new system allows for extending the project graph, modifying task commands, hooking into Docker flows, and managing tool installation via Moonrepo's companion version manager, Proto.

In addition to the toolchain overhaul, Moon v2.0 now supports a wider range of configuration file formats, including JSON, JSONC, HCL, Pkl, and TOML, alongside the existing YAML format. The CLI has been significantly enhanced with a new low-level moon exec command, which underpins various other commands like moon ci, moon check, and moon run. This unified execution layer enables job parallelization and affected filtering, streamlining the development process.

Task inheritance, a standout feature of Moon, has been reimagined as a configuration-based system. The new inheritedBy setting empowers users to define criteria such as toolchain, stack, language, and tags to control task inheritance. Tasks can now be associated with multiple toolchains, and .env file handling has been improved with automatic loading of .env.local and environment-specific files, ensuring a more efficient and flexible development environment.

Moon v2.0 also introduces per-project overrides for Docker settings and support for custom Dockerfile templates using Tera. The VCS layer has been rewritten to better support worktrees and submodules, and a hooks system has been implemented to streamline the Git workflow.

While the release brings numerous breaking changes, the Moonrepo team has provided a dedicated moon migrate v2 command to automate the migration process. The official migration guide covers essential changes, including renamed CLI options, restructured toolchain configuration, updated environment variable substitution syntax, and the removal of the legacy local task setting in favor of a preset system. Users are advised to reinstall using the provided installation scripts.

Moonrepo's Moon v2.0 is a significant step forward in monorepo management, offering enhanced flexibility, improved configuration options, and a more robust CLI. As the tool continues to evolve, it is poised to become an indispensable asset for developers working with complex monorepos, bridging the gap between the high complexity of Bazel and the low structure of make or just.

In my opinion, Moon v2.0 is a testament to the power of community-driven innovation in the software development ecosystem. It showcases how open-source projects can thrive by embracing collaboration and providing a platform for developers to contribute their expertise. As Moonrepo continues to refine and expand its capabilities, it is likely to become a go-to solution for teams seeking structured monorepo management with built-in toolchain reproducibility across diverse development and CI environments.

Moon v2.0: WASM Plugin Toolchains, Improved CLI, and More! (2026)

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Clemencia Bogisich Ret

Last Updated:

Views: 5302

Rating: 5 / 5 (60 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Clemencia Bogisich Ret

Birthday: 2001-07-17

Address: Suite 794 53887 Geri Spring, West Cristentown, KY 54855

Phone: +5934435460663

Job: Central Hospitality Director

Hobby: Yoga, Electronics, Rafting, Lockpicking, Inline skating, Puzzles, scrapbook

Introduction: My name is Clemencia Bogisich Ret, I am a super, outstanding, graceful, friendly, vast, comfortable, agreeable person who loves writing and wants to share my knowledge and understanding with you.