Scaffolding tool for VC Shell applications and modules.
npx @vc-shell/create-vc-app [project-name]Interactive prompts guide you through project setup. Two project types are available:
| Type | Description |
|---|---|
| Standalone App | Full application with bundled modules |
| Dynamic Module | Remote module loaded by host via Module Federation |
Pass flags to skip prompts:
# Standalone app with dashboard and sample data
npx @vc-shell/create-vc-app my-app --type standalone --module-name "Products" --dashboard --mocks
# Dynamic module
npx @vc-shell/create-vc-app my-module --type dynamic-module --module-name "Reviews"| Option | Description | Default |
|---|---|---|
--type <type> |
Project type: standalone | dynamic-module ` |
(prompted) |
--name, --app-name |
Application name | Directory name |
--package-name |
npm package name | App name (validated) |
--module-name |
Initial module name | App name in title case |
--base-path |
Base path for the application | /apps/<name>/ |
--tenant-routes |
Include tenant routing (/:tenantId prefix) |
false |
--ai-agent |
Include AI Agent configuration | false |
--dashboard |
Include Dashboard with widgets | false |
--module-federation |
Include Module Federation host runtime | false |
--mocks |
Include sample module with mock data | false |
--overwrite |
Overwrite existing files without confirmation | false |
--help, -h |
Show help | — |
--version, -v |
Show version | — |
From your project root:
npx @vc-shell/create-vc-app add-module <module-name>This will:
- Create
src/modules/<module-name>/with list + details pages - Update
src/main.ts— add import andapp.use() - Update
src/bootstrap.ts— add menu item
If main.ts or bootstrap.ts can't be parsed automatically, manual instructions are printed.
cd <project-name>
yarn install
yarn serve