Skip to content
pubscout

mason_cli

0.1.4, released 2 months ago by brickhub.dev

CLI tool to create and consume reusable template bricks for code generation.

WASM-ready
$ flutter pub add mason_cli
Source repository

What it does

Mason CLI lets developers define reusable templates called bricks and generate files from them via the command line. It supports variable prompts, config files, custom output directories, and conflict resolution.

AI-written summary of version 0.1.4, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to scaffold files or projects consistently
  • You want reusable, shareable templates for code generation
  • You prefer a CLI-driven workflow over IDE plugins

Skip it when

  • You need runtime code generation inside a Flutter app
  • You require a UI-based template editor

Strengths

  • Rich CLI with many options
  • Supports hooks and custom scripts
  • Cross‑platform and works with any Dart/Flutter project

Weaknesses

  • Only works at build time, not at runtime
  • Requires learning brick syntax

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
9
dart pub global activate mason_cli
mason init
mason add hello
mason make hello --name Felix

Alternatives

Packages that do the same job and could replace mason_cli.

Works with

Packages commonly used together with mason_cli: ones it builds on, ones built on it, and its own family.