StartXKit docs
CLI

doctor

Run diagnostic checks on a generated StartXKit project.

The doctor command checks whether the current folder looks like a valid StartXKit project.

Use it when:

  • You moved files manually
  • add module fails
  • You are not sure which project configuration is active
  • You want a quick sanity check before committing generated code

Usage

npx @startxkit/cli doctor

Run it from the generated project root.

What It Checks

CheckMeaning
startxkit.config.jsonThe project has a StartXKit config file
package.jsonThe folder is a Node.js project
Module directoryThe configured module root exists
FrameworkThe framework is express, fastify, or hono
ArchitectureThe architecture is minimal, modular, or layered
Package managerThe package manager is pnpm, npm, yarn, or bun

Example Output

✓ startxkit.config.json
✓ package.json
✓ module directory
✓ framework supported
✓ architecture supported
✓ package manager supported

Module Directory Meaning

The module directory depends on architecture:

ArchitectureModule directory
Minimalsrc
Modularsrc/modules
Layeredsrc

This is intentional. Modular projects store each feature under src/modules, while layered projects write route/controller/service files into top-level layer folders under src.

If A Check Fails

Fix the reported file or config value, then run:

npx @startxkit/cli doctor

again.