Block a user
@mintel/cli (1.9.11)
Installation
@mintel:registry=npm install @mintel/cli@1.9.11"@mintel/cli": "1.9.11"About this package
@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
Using npx (Recommended)
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
Development (Local Link)
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:
- Project Structure: Creates a modern Next.js directory layout.
- Shared Configs: Generates
package.json,tsconfig.json, andeslint.config.mjsthat extend the@mintelshared packages. - Localization: Sets up a localized routing structure (
src/app/[locale]) withnext-intlpre-configured. - Error Tracking: Injects Sentry/GlitchTip instrumentation.
- Environment Safety: Adds a validation script (
scripts/validate-env.ts) to catch missing secrets at build time. - 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.
Dependencies
Dependencies
| ID | Version |
|---|---|
| chalk | ^5.3.0 |
| commander | ^11.0.0 |
| fs-extra | ^11.1.0 |
Development Dependencies
| ID | Version |
|---|---|
| @mintel/tsconfig | 1.9.11 |
| @types/fs-extra | ^11.0.0 |
| @types/prompts | ^2.4.4 |
| tsup | ^8.0.0 |
| typescript | ^5.0.0 |
Details
Assets (1)
Versions (11)
View all
cli-1.9.11.tgz
5.5 KiB