foundry_cli 0.0.1-dev.1 copy "foundry_cli: ^0.0.1-dev.1" to clipboard
foundry_cli: ^0.0.1-dev.1 copied to clipboard

CLI for Foundry — mold authoring, inspection, import, and cast workflows.

example/README.md

foundry_cli example #

Minimal mold that exercises the foundry CLI (mold inspect and cast).

Layout #

example/
├── mold/
│   ├── pubspec.yaml
│   ├── variables.dart
│   └── template/
│       └── README.md
└── output/                 # created by `foundry cast` (gitignored)

Prerequisites #

Install the CLI globally:

dart install foundry_cli

Ensure ~/.pub-cache/bin is on your PATH, then verify:

foundry --version

When developing this repository locally, run the CLI with dart run from packages/foundry_cli instead of a global install.

Inspect the mold #

From this directory:

foundry mold inspect mold

Local development:

dart run ../bin/foundry.dart mold inspect mold

Exits with code 0 when the mold loads and passes inspection.

Cast the mold #

Interactive cast (prompts for project_name):

foundry cast mold --output=output --force --no-hooks

Local development:

dart run ../bin/foundry.dart cast mold --output=output --force --no-hooks

After a successful cast, output/README.md contains the rendered project name and .foundry/last_cast.json is written in the process working directory.

0
likes
150
points
54
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

CLI for Foundry — mold authoring, inspection, import, and cast workflows.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#mason #template #codegen #cli #liquid

License

MIT (license)

Dependencies

args, foundry_core, nocterm, path

More

Packages that depend on foundry_cli