CLI Reference
Commands
heco generate <feature-name>
Generate a new feature with the specified name.
bash
npx heco generate user-profile
npx heco generate auth --dry-run
npx heco generate dashboard --overwriteOptions:
| Flag | Type | Description |
|---|---|---|
--dry-run | boolean | Preview files without writing |
--overwrite | boolean | Overwrite existing files |
--skip | boolean | Skip existing files |
--ask | boolean | Prompt for each file |
heco list
List all available generators and their file structures.
bash
npx heco listheco validate
Validate your hfg.config.json configuration.
bash
npx heco validateheco --help
Display help information.
bash
npx heco --helpheco --version
Display the installed version.
bash
npx heco --versionExit Codes
| Code | Meaning |
|---|---|
0 | Success |
1 | General error |
2 | Configuration error |