Development Shell
The shell command starts a development shell server that simulates the production shell environment.
Usage
# Basic usage
pnpm shell
# With options
pnpm shell --config shell.config.js --port 4000Options
Option
Alias
Description
Default
Configuration
export default {
apps: [
{
url: 'http://localhost:5173',
path: '/orders',
name: 'Order Management',
type: 'full_page',
navTitle: 'Orders'
},
{
url: 'http://localhost:5174',
path: '/products',
name: 'Product Catalog',
type: 'full_page',
navTitle: 'Products'
},
{
url: 'http://localhost:5175',
path: '/widgets/stats',
name: 'Stats Widget',
type: 'plugin'
}
],
shell: {
port: 4000,
theme: 'omnitron',
title: 'My Development Shell'
},
sidebar: {
items: [
{ key: 'orders', label: 'Orders', icon: 'shopping-cart' },
{ key: 'products', label: 'Products', icon: 'box' },
{
key: 'settings',
label: 'Settings',
icon: 'settings',
children: [
{ key: 'general', label: 'General' },
{ key: 'users', label: 'Users' }
]
}
]
},
data: {
user: {
id: 1,
name: 'Dev User',
email: '[email protected]',
role: 'admin'
},
tenant: {
id: 'demo-tenant',
name: 'Demo Tenant'
}
}
};Configuration Reference
ShellConfig
AppConfig
SidebarItem
Themes
omnitron
seller-center
minimal
Shared Data
Development Workflow
Running Multiple Applications
Testing Plugin Applications
Hot Module Replacement
Common Issues
Port Already in Use
Configuration Not Found
CORS Issues
Example Configuration
Fullpage Application
Multiple Applications
Next Steps
Last updated
Was this helpful?

