5.2 CLI Reference

“Manual initialization guarantees human error.” — Standard Technical Directives, 2026

The @stnd/cli package enforces strict project scaffolding and module generation. Bypassing the CLI to manually copy directories or configure files introduces systemic deviations and is expressly forbidden.

1. Initialization (create-stnd)

The core command to bootstrap a new application adhering to the Standard Framework.

npm create stnd@latest my-project

Execution Protocol:

2. Module Generation (stnd generate)

To ensure structural uniformity, all new feature slices must be generated via the CLI.

npx stnd generate module <module-name>

Execution Protocol:

3. Cache Invalidation (stnd clean)

During development, aggressive caching strategies (Vite, Cloudflare Miniflare) may cause state discrepancies.

npx stnd clean

Execution Protocol:

Directive: Run this command prior to opening any architectural bug reports.

Are you absolutely sure?

This action cannot be undone.