CoreGen (VS Code / Cursor)
Extension that wraps the CoreGen CLI: command palette, Quick Input wizards, and Explorer context menu to scaffold Flutter projects with a DDD-style layout.
Useful links
Install the CLI from PyPI, for example:
pip install coregen
Versions: extension ↔ CLI
The extension semver (package.json → version) reuses the CoreGen CLI major.minor it is designed and tested against. The extension patch only tracks UI releases (fixes, editor compatibility), not the CLI patch on PyPI: the CLI can be 3.1.4 while the extension is 3.1.0, 3.1.1, … as long as it stays on the 3.1.x line.
| What |
Where to read it |
| Extension (this package) |
version in package.json |
| CLI in the monorepo |
project.version in pyproject.toml (repo root) |
| CLI on your machine |
coregen --version / pip show coregen |
Release notes for the Marketplace / GitHub are in CHANGELOG.md (CLI compatibility is noted there on every bump).
Requirement: the CoreGen CLI
This extension does not ship the executable. The coregen command must be available on your machine. The official package is on PyPI — coregen.
Typical install (PATH)
pip install coregen
(see also the PyPI page for versions and metadata.)
Make sure the coregen script is on the PATH of your terminal and of the process that starts VS Code / Cursor (on macOS/Linux often ~/.local/bin).
Custom path
If you do not use PATH, set coregen.executablePath in Settings to the full path of the executable (e.g. /opt/coregen/bin/coregen or C:\\Tools\\coregen.exe).
Without a correctly configured CLI, extension commands will fail with an error in the Output panel → CoreGen channel.
What the extension provides
| Area |
Behavior |
| Command Palette |
CoreGen: … commands (Create, Add Page, Add Domain, …). |
| Explorer |
Right-click a folder → CoreGen submenu to run the same flows with folder context. |
| Output |
CoreGen: Show Output shows CLI logs. Default shortcut: Cmd+Shift+Alt+F (macOS) / Ctrl+Shift+Alt+F (Windows/Linux), editable in Keyboard Shortcuts. |
Commands
| Command |
Description |
| CoreGen: Create |
New project (create with name, optional login). |
| CoreGen: Add Page |
add-page. |
| CoreGen: Add Domain |
add-domain (optional fields; non-interactive mode when empty). |
| CoreGen: Add Component |
add-component with domain model / field options. |
| CoreGen: Add Enum |
add-enum. |
| CoreGen: Show Output |
Opens the CoreGen log. |
Explorer
Right-click a folder → CoreGen → Add Page / Add Domain / Add Component / Add Enum. The extension walks up to pubspec.yaml to find the Flutter root and suggests --folder for components under lib/.
License
The VSIX package and this folder include LICENSE.md (MIT). The license field in package.json is MIT.
Development and VSIX packaging
cd vscode-extension
npm install
npm run compile
- F5 with this folder open: Extension Development Host.
- Packaging:
npm run package (uses vsce from devDependencies) or npx @vscode/vsce package.
Git repository and npm metadata: see repository and bugs in package.json. The product website is coregen.dev; in package.json, homepage points at the CLI PyPI project (install).
Extension version history: CHANGELOG.md.