Skip to main content

create-hile

Scaffold Hile applications and monorepos from maintained templates.

Choose This Package When

Use When

Use create-hile when starting a new Hile application or workspace.

Do Not Use When

  • Do not use generated templates as the final architecture for complex apps without introducing models, services, and context boundaries.
  • Do not trust stale template README files if they mention unrelated application domains; regenerate or rewrite them from current template files.

Install

Usually no install is needed:

Imports

The CLI entrypoint exports a create command. Application code does not import create-hile.

Copy-Paste Example

Create a project:
Skip dependency install:

More Examples

Template choices:
Generated default HTTP shape:

Runtime And Lifecycle Notes

  • Templates use _env, _env.prod, and _gitignore; creation renames them to dotfiles.
  • The CLI prompts for a template and optional dependency installation.
  • The package manager preference is pnpm, then yarn, then npm.

Anti-Patterns

  • Leaving template package versions stale after publishing new Hile packages.
  • Shipping template READMEs copied from unrelated projects.
  • Starting production without running the build command required by the selected template.

Verification Checklist

  • New project has "type": "module".
  • Dev script runs hile start --dev.
  • Production script runs hile start after build.
  • Boot files default-export defineService(...).

New Project Scaffold

Complete Example

Default HTTP controller:
Default HTTP boot:

Package-Local AI Guide

This package also ships AI.md in npm so agents can read accurate examples after installation.