Files
at-mintel/packages/cli
Marc Mintel 7d9604a65a
Some checks failed
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 3s
Monorepo Pipeline / 🧹 Lint (push) Failing after 4m37s
Monorepo Pipeline / 🧪 Test (push) Successful in 4m37s
Monorepo Pipeline / 🏗️ Build (push) Failing after 2m16s
Monorepo Pipeline / 🚀 Release (push) Has been skipped
Monorepo Pipeline / 🐳 Build Directus (Base) (push) Has been skipped
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been skipped
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been skipped
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been skipped
chore: sync versions to v1.8.6
2026-02-22 18:53:51 +01:00
..
2026-02-22 18:53:51 +01:00
2026-01-31 19:26:46 +01:00

@mintel/cli

The Mintel CLI is the primary automation tool for managing the monorepo and ensuring all client websites follow the same high-quality standards and infrastructure patterns.

🚀 Installation

Run the CLI without installing it globally. This always uses the latest version from the registry:

npx @mintel/cli init apps/my-new-website.com

Global Installation

Install the CLI globally from the Mintel registry:

npm install -g @mintel/cli

If you are contributing to the CLI, you can link it locally:

cd packages/cli
pnpm build
npm link

🛠 Commands

init <path>

Scaffolds a new, production-ready client website in the specified path.

mintel init apps/my-new-website.com

What it does:

  1. Project Structure: Creates a modern Next.js directory layout.
  2. Shared Configs: Generates package.json, tsconfig.json, and eslint.config.mjs that extend the @mintel shared packages.
  3. Localization: Sets up a localized routing structure (src/app/[locale]) with next-intl pre-configured.
  4. Error Tracking: Injects Sentry/GlitchTip instrumentation.
  5. Environment Safety: Adds a validation script (scripts/validate-env.ts) to catch missing secrets at build time.
  6. Infrastructure: Injects the universal Dockerfile, docker-compose.yml, and the tag-based Gitea Actions deployment workflow.

🛠 Development

To add new features to the scaffold (e.g., new shared files or config templates), modify packages/cli/src/index.ts.