kimu-cli 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/README.md +291 -0
- package/bin/kimu.js +48 -0
- package/dist/commands/create.d.ts +3 -0
- package/dist/commands/create.d.ts.map +1 -0
- package/dist/commands/create.js +115 -0
- package/dist/commands/create.js.map +1 -0
- package/dist/commands/help.d.ts +3 -0
- package/dist/commands/help.d.ts.map +1 -0
- package/dist/commands/help.js +20 -0
- package/dist/commands/help.js.map +1 -0
- package/dist/commands/info.d.ts +9 -0
- package/dist/commands/info.d.ts.map +1 -0
- package/dist/commands/info.js +149 -0
- package/dist/commands/info.js.map +1 -0
- package/dist/commands/version.d.ts +9 -0
- package/dist/commands/version.d.ts.map +1 -0
- package/dist/commands/version.js +45 -0
- package/dist/commands/version.js.map +1 -0
- package/dist/config/constants.d.ts +50 -0
- package/dist/config/constants.d.ts.map +1 -0
- package/dist/config/constants.js +61 -0
- package/dist/config/constants.js.map +1 -0
- package/dist/config/defaults.d.ts +59 -0
- package/dist/config/defaults.d.ts.map +1 -0
- package/dist/config/defaults.js +127 -0
- package/dist/config/defaults.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/dist/types/cli-types.d.ts +55 -0
- package/dist/types/cli-types.d.ts.map +1 -0
- package/dist/types/cli-types.js +6 -0
- package/dist/types/cli-types.js.map +1 -0
- package/dist/types/project-types.d.ts +79 -0
- package/dist/types/project-types.d.ts.map +1 -0
- package/dist/types/project-types.js +6 -0
- package/dist/types/project-types.js.map +1 -0
- package/dist/types/registry-types.d.ts +87 -0
- package/dist/types/registry-types.d.ts.map +1 -0
- package/dist/types/registry-types.js +6 -0
- package/dist/types/registry-types.js.map +1 -0
- package/dist/utils/logger.d.ts +39 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +115 -0
- package/dist/utils/logger.js.map +1 -0
- package/docs/command-kimu-new.md +207 -0
- package/docs/command-kimu-old.md +51 -0
- package/docs/command-kimu.md +207 -0
- package/docs/commands/build.md +82 -0
- package/docs/commands/create.md +58 -0
- package/docs/commands/dev.md +87 -0
- package/docs/commands/doctor.md +129 -0
- package/docs/commands/help.md +37 -0
- package/docs/commands/info.md +46 -0
- package/docs/commands/install.md +67 -0
- package/docs/commands/list.md +85 -0
- package/docs/commands/remove.md +67 -0
- package/docs/commands/serve.md +91 -0
- package/docs/commands/version.md +31 -0
- package/docs/distribution.md +93 -0
- package/docs/index.md +127 -0
- package/docs/intro.md +86 -0
- package/package.json +101 -0
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
# The `kimu` Command Reference
|
|
2
|
+
|
|
3
|
+
The `kimu` command is the main entry point for KIMU-CLI and provides access to all framework tools and utilities.
|
|
4
|
+
|
|
5
|
+
## Basic Usage
|
|
6
|
+
```bash
|
|
7
|
+
kimu <command> [options]
|
|
8
|
+
kimu <command> --help
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Global Options
|
|
12
|
+
These options are available for all commands:
|
|
13
|
+
- `--help, -h`: Show help for any command
|
|
14
|
+
- `--verbose`: Enable verbose output for detailed information
|
|
15
|
+
- `--version, -v`: Show KIMU-CLI version
|
|
16
|
+
|
|
17
|
+
## Command Categories
|
|
18
|
+
|
|
19
|
+
### đ Project Management
|
|
20
|
+
| Command | Description | Status |
|
|
21
|
+
|---------|-------------|---------|
|
|
22
|
+
| `create <name>` | Create a new KIMU project | â
**Available** |
|
|
23
|
+
| `info` | Show project information and status | â
**Available** |
|
|
24
|
+
| `doctor` | Run project health diagnostics | âŗ **Planned** |
|
|
25
|
+
|
|
26
|
+
### đĻ Package Management
|
|
27
|
+
| Command | Description | Status |
|
|
28
|
+
|---------|-------------|---------|
|
|
29
|
+
| `install <name>` | Install modules and extensions | âŗ **Planned** |
|
|
30
|
+
| `remove <name>` | Remove modules and extensions | âŗ **Planned** |
|
|
31
|
+
| `list [type]` | List available/installed packages | âŗ **Planned** |
|
|
32
|
+
|
|
33
|
+
### đ§ Development Workflow
|
|
34
|
+
| Command | Description | Status |
|
|
35
|
+
|---------|-------------|---------|
|
|
36
|
+
| `dev` | Start development server | âŗ **Planned** |
|
|
37
|
+
| `build` | Build project for production | âŗ **Planned** |
|
|
38
|
+
| `serve` | Serve built project | âŗ **Planned** |
|
|
39
|
+
|
|
40
|
+
### âšī¸ Utilities
|
|
41
|
+
| Command | Description | Status |
|
|
42
|
+
|---------|-------------|---------|
|
|
43
|
+
| `version` | Show version information | â
**Available** |
|
|
44
|
+
| `help [command]` | Show help information | â
**Available** |
|
|
45
|
+
|
|
46
|
+
## Available Commands (Current)
|
|
47
|
+
|
|
48
|
+
### Project Creation
|
|
49
|
+
```bash
|
|
50
|
+
# Create a new project
|
|
51
|
+
kimu create my-app
|
|
52
|
+
|
|
53
|
+
# Create with git initialization
|
|
54
|
+
kimu create my-app --git
|
|
55
|
+
|
|
56
|
+
# Force overwrite existing directory
|
|
57
|
+
kimu create my-app --force
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Project Information
|
|
61
|
+
```bash
|
|
62
|
+
# Show basic project info
|
|
63
|
+
kimu info
|
|
64
|
+
|
|
65
|
+
# Show detailed information
|
|
66
|
+
kimu info --verbose
|
|
67
|
+
|
|
68
|
+
# Output in JSON format
|
|
69
|
+
kimu info --json
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Version and Help
|
|
73
|
+
```bash
|
|
74
|
+
# Show CLI version
|
|
75
|
+
kimu version
|
|
76
|
+
|
|
77
|
+
# Show detailed version info
|
|
78
|
+
kimu version --verbose
|
|
79
|
+
|
|
80
|
+
# Show general help
|
|
81
|
+
kimu help
|
|
82
|
+
|
|
83
|
+
# Show help for specific command
|
|
84
|
+
kimu help create
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Planned Commands (Coming Soon)
|
|
88
|
+
|
|
89
|
+
### Module Management
|
|
90
|
+
```bash
|
|
91
|
+
# Install a module
|
|
92
|
+
kimu install module router
|
|
93
|
+
|
|
94
|
+
# Install an extension
|
|
95
|
+
kimu install extension dashboard
|
|
96
|
+
|
|
97
|
+
# Remove a module/extension
|
|
98
|
+
kimu remove router
|
|
99
|
+
|
|
100
|
+
# List available modules
|
|
101
|
+
kimu list modules
|
|
102
|
+
|
|
103
|
+
# List installed packages
|
|
104
|
+
kimu list installed
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### Development Tools
|
|
108
|
+
```bash
|
|
109
|
+
# Start development server
|
|
110
|
+
kimu dev --port 3000
|
|
111
|
+
|
|
112
|
+
# Build for production
|
|
113
|
+
kimu build --minify
|
|
114
|
+
|
|
115
|
+
# Serve built project
|
|
116
|
+
kimu serve --port 4000
|
|
117
|
+
|
|
118
|
+
# Run diagnostics
|
|
119
|
+
kimu doctor --fix
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Command Options Patterns
|
|
123
|
+
|
|
124
|
+
### Common Patterns
|
|
125
|
+
- `--verbose`: Detailed output (available for most commands)
|
|
126
|
+
- `--json`: JSON output format (for automation)
|
|
127
|
+
- `--force`: Skip confirmations and overwrite
|
|
128
|
+
- `--help`: Command-specific help
|
|
129
|
+
|
|
130
|
+
### Development Options
|
|
131
|
+
- `--port <number>`: Server port configuration
|
|
132
|
+
- `--host <string>`: Server host configuration
|
|
133
|
+
- `--open`: Automatically open browser
|
|
134
|
+
- `--watch`: Watch for file changes
|
|
135
|
+
|
|
136
|
+
### Build Options
|
|
137
|
+
- `--mode <mode>`: Build mode (development/production)
|
|
138
|
+
- `--target <target>`: JavaScript target (es2020/es2022/esnext)
|
|
139
|
+
- `--minify`: Enable minification
|
|
140
|
+
- `--sourcemap`: Generate source maps
|
|
141
|
+
|
|
142
|
+
## Examples by Use Case
|
|
143
|
+
|
|
144
|
+
### Starting a New Project
|
|
145
|
+
```bash
|
|
146
|
+
# Basic project setup
|
|
147
|
+
kimu create my-app
|
|
148
|
+
cd my-app
|
|
149
|
+
kimu info # Verify project setup
|
|
150
|
+
|
|
151
|
+
# Development workflow (when implemented)
|
|
152
|
+
kimu dev # Start development server
|
|
153
|
+
kimu build # Build for production
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Working with Modules
|
|
157
|
+
```bash
|
|
158
|
+
# Module management (when implemented)
|
|
159
|
+
kimu list modules # Browse available modules
|
|
160
|
+
kimu install module router # Install a module
|
|
161
|
+
kimu install extension dashboard # Install an extension
|
|
162
|
+
kimu list installed # See what's installed
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### Debugging and Maintenance
|
|
166
|
+
```bash
|
|
167
|
+
# Project health (when implemented)
|
|
168
|
+
kimu doctor # Check project health
|
|
169
|
+
kimu doctor --fix # Auto-fix common issues
|
|
170
|
+
kimu info --verbose # Detailed project info
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
## Getting Help
|
|
174
|
+
|
|
175
|
+
### Command-Specific Help
|
|
176
|
+
Every command supports `--help`:
|
|
177
|
+
```bash
|
|
178
|
+
kimu create --help
|
|
179
|
+
kimu info --help
|
|
180
|
+
kimu version --help
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### General Help
|
|
184
|
+
```bash
|
|
185
|
+
kimu help # Show all commands
|
|
186
|
+
kimu help create # Show help for create command
|
|
187
|
+
kimu --help # Alternative syntax
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
### Verbose Information
|
|
191
|
+
Add `--verbose` to most commands for detailed output:
|
|
192
|
+
```bash
|
|
193
|
+
kimu info --verbose
|
|
194
|
+
kimu version --verbose
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
## Notes
|
|
198
|
+
|
|
199
|
+
- **Current Status**: Basic commands are implemented, advanced features coming soon
|
|
200
|
+
- **Project Context**: Some commands require being run from within a KIMU project directory
|
|
201
|
+
- **Internet Required**: Package management commands require internet connectivity
|
|
202
|
+
- **Node.js**: Requires Node.js >= 18.0.0 and npm >= 8.0.0
|
|
203
|
+
- **Documentation**: Each command has detailed documentation in `docs/commands/`
|
|
204
|
+
|
|
205
|
+
For detailed documentation on each command, see the individual files in the `docs/commands/` directory.
|
|
206
|
+
|
|
207
|
+
---
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# kimu build
|
|
2
|
+
|
|
3
|
+
Build your KIMU project for production.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
```bash
|
|
7
|
+
kimu build [options]
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Options
|
|
11
|
+
- `--mode <mode>`: build mode (development|production) [default: production]
|
|
12
|
+
- `--target <target>`: build target (es2020|es2022|esnext) [default: es2020]
|
|
13
|
+
- `--format <format>`: output format (esm|iife|umd) [default: esm]
|
|
14
|
+
- `--outdir <dir>`: output directory [default: dist]
|
|
15
|
+
- `--sourcemap`: generate source maps
|
|
16
|
+
- `--minify`: minify output
|
|
17
|
+
- `--watch`: watch for changes and rebuild
|
|
18
|
+
- `--clean`: clean output directory before build
|
|
19
|
+
- `--verbose`: show detailed build progress
|
|
20
|
+
|
|
21
|
+
## Examples
|
|
22
|
+
```bash
|
|
23
|
+
# Basic production build
|
|
24
|
+
kimu build
|
|
25
|
+
|
|
26
|
+
# Development build with source maps
|
|
27
|
+
kimu build --mode development --sourcemap
|
|
28
|
+
|
|
29
|
+
# Build with specific target and format
|
|
30
|
+
kimu build --target es2022 --format esm
|
|
31
|
+
|
|
32
|
+
# Build with custom output directory
|
|
33
|
+
kimu build --outdir ./dist/prod
|
|
34
|
+
|
|
35
|
+
# Watch mode for development
|
|
36
|
+
kimu build --watch --mode development
|
|
37
|
+
|
|
38
|
+
# Clean build with minification
|
|
39
|
+
kimu build --clean --minify
|
|
40
|
+
|
|
41
|
+
# Verbose build output
|
|
42
|
+
kimu build --verbose
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Build Process
|
|
46
|
+
The build command performs:
|
|
47
|
+
1. **Validation**: Checks project configuration and dependencies
|
|
48
|
+
2. **Compilation**: Compiles TypeScript to JavaScript
|
|
49
|
+
3. **Bundling**: Bundles modules and extensions
|
|
50
|
+
4. **Optimization**: Minifies and optimizes output (in production mode)
|
|
51
|
+
5. **Asset Processing**: Copies and processes static assets
|
|
52
|
+
6. **Output Generation**: Creates final build artifacts
|
|
53
|
+
|
|
54
|
+
## Build Outputs
|
|
55
|
+
- **JavaScript bundles**: Compiled and bundled application code
|
|
56
|
+
- **CSS files**: Processed and optimized stylesheets
|
|
57
|
+
- **Static assets**: Images, fonts, and other resources
|
|
58
|
+
- **HTML files**: Generated HTML with proper asset references
|
|
59
|
+
- **Source maps**: For debugging (when enabled)
|
|
60
|
+
- **Manifest files**: Build metadata and asset mapping
|
|
61
|
+
|
|
62
|
+
## Configuration
|
|
63
|
+
Build settings can be configured in:
|
|
64
|
+
- `kimu.config.json`: Project-specific build settings
|
|
65
|
+
- `vite.config.ts` or `webpack.config.js`: Build tool configuration
|
|
66
|
+
- Command-line options (override config file settings)
|
|
67
|
+
|
|
68
|
+
## Notes
|
|
69
|
+
- Must be run from within a KIMU project directory
|
|
70
|
+
- Requires all dependencies to be installed (`npm install`)
|
|
71
|
+
- Output is optimized for production by default
|
|
72
|
+
- Supports modern build tools (Vite, Webpack)
|
|
73
|
+
- Automatically handles KIMU-Core integration
|
|
74
|
+
|
|
75
|
+
## Build Modes
|
|
76
|
+
- **Production**: Optimized for deployment (minified, tree-shaken)
|
|
77
|
+
- **Development**: Optimized for debugging (source maps, unminified)
|
|
78
|
+
|
|
79
|
+
## Status
|
|
80
|
+
â ī¸ **This command is planned but not yet implemented**
|
|
81
|
+
- Current status: Command structure defined, implementation pending
|
|
82
|
+
- Target: Full build pipeline with optimization and bundling
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# kimu create
|
|
2
|
+
|
|
3
|
+
Create a new KIMU project in a new folder.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
```bash
|
|
7
|
+
kimu create <project-name> [--no-install] [--git] [--force]
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Arguments
|
|
11
|
+
- `<project-name>`: name of the folder to create (required)
|
|
12
|
+
|
|
13
|
+
## Options
|
|
14
|
+
- `--no-install`: skip npm install after project creation
|
|
15
|
+
- `--git`: initialize a git repository in the project folder
|
|
16
|
+
- `--force`: overwrite the folder if it already exists
|
|
17
|
+
|
|
18
|
+
## Examples
|
|
19
|
+
```bash
|
|
20
|
+
# Create a basic project
|
|
21
|
+
kimu create my-app
|
|
22
|
+
|
|
23
|
+
# Create with git initialization
|
|
24
|
+
kimu create my-app --git
|
|
25
|
+
|
|
26
|
+
# Create without npm install
|
|
27
|
+
kimu create my-app --no-install
|
|
28
|
+
|
|
29
|
+
# Force overwrite existing folder
|
|
30
|
+
kimu create my-app --force
|
|
31
|
+
|
|
32
|
+
# Combine multiple options
|
|
33
|
+
kimu create my-app --git --no-install
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## What it creates
|
|
37
|
+
The command performs the following steps:
|
|
38
|
+
1. **Clones kimu-core repository** from GitHub (https://github.com/UnicoVerso/kimu-core.git)
|
|
39
|
+
2. **Removes .git directory** to clean the project from the original repository history
|
|
40
|
+
3. **Updates package.json** with the new project name
|
|
41
|
+
4. **Installs npm dependencies** (unless `--no-install` is used)
|
|
42
|
+
5. **Initializes new git repository** (if `--git` flag is used) with an initial commit
|
|
43
|
+
6. **Provides next steps** for the user to continue development
|
|
44
|
+
|
|
45
|
+
## Notes
|
|
46
|
+
- The project name must contain only lowercase letters, numbers, and hyphens
|
|
47
|
+
- The command will fail if the target folder already exists (unless `--force` is used)
|
|
48
|
+
- Requires git to be installed on the system for repository cloning
|
|
49
|
+
- Internet connection is required to clone the kimu-core repository
|
|
50
|
+
- If cloning fails, the command will clean up any partial files created
|
|
51
|
+
- The original kimu-core git history is completely removed from the new project
|
|
52
|
+
|
|
53
|
+
## Future features (planned)
|
|
54
|
+
- Template support (`--template basic|dashboard|chat`)
|
|
55
|
+
- Custom repository URLs for cloning different project templates
|
|
56
|
+
- Offline mode with cached project templates
|
|
57
|
+
- Configuration file customization options
|
|
58
|
+
- Integration with KIMU module and extension marketplace
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# kimu dev
|
|
2
|
+
|
|
3
|
+
Start the development server for your KIMU project.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
```bash
|
|
7
|
+
kimu dev [options]
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Options
|
|
11
|
+
- `--port <port>`: development server port [default: 3000]
|
|
12
|
+
- `--host <host>`: development server host [default: localhost]
|
|
13
|
+
- `--open`: automatically open browser
|
|
14
|
+
- `--no-open`: don't open browser automatically
|
|
15
|
+
- `--https`: use HTTPS (requires SSL setup)
|
|
16
|
+
- `--cors`: enable CORS for cross-origin requests
|
|
17
|
+
- `--verbose`: show detailed server logs
|
|
18
|
+
|
|
19
|
+
## Examples
|
|
20
|
+
```bash
|
|
21
|
+
# Start development server with defaults
|
|
22
|
+
kimu dev
|
|
23
|
+
|
|
24
|
+
# Start on specific port
|
|
25
|
+
kimu dev --port 8080
|
|
26
|
+
|
|
27
|
+
# Start and open browser automatically
|
|
28
|
+
kimu dev --open
|
|
29
|
+
|
|
30
|
+
# Start with HTTPS
|
|
31
|
+
kimu dev --https --port 443
|
|
32
|
+
|
|
33
|
+
# Start with custom host (for network access)
|
|
34
|
+
kimu dev --host 0.0.0.0 --port 3000
|
|
35
|
+
|
|
36
|
+
# Verbose logging
|
|
37
|
+
kimu dev --verbose
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Development Features
|
|
41
|
+
The development server provides:
|
|
42
|
+
- **Hot Module Replacement (HMR)**: Instant updates without page reload
|
|
43
|
+
- **Live Reload**: Automatic page refresh on file changes
|
|
44
|
+
- **Source Maps**: Full debugging support
|
|
45
|
+
- **Error Overlay**: In-browser error display
|
|
46
|
+
- **Module Resolution**: Automatic KIMU module and extension loading
|
|
47
|
+
- **Asset Serving**: Static file serving with proper MIME types
|
|
48
|
+
- **Proxy Support**: API proxying for backend integration
|
|
49
|
+
|
|
50
|
+
## File Watching
|
|
51
|
+
Automatically watches and reloads on changes to:
|
|
52
|
+
- Source files (`.ts`, `.js`, `.html`, `.css`)
|
|
53
|
+
- KIMU configuration (`kimu.config.json`)
|
|
54
|
+
- Package dependencies (`package.json`)
|
|
55
|
+
- Extension manifests (`extension-manifest.json`)
|
|
56
|
+
|
|
57
|
+
## Development Workflow
|
|
58
|
+
1. **Start server**: `kimu dev`
|
|
59
|
+
2. **Edit files**: Make changes to your project
|
|
60
|
+
3. **See updates**: Browser automatically reflects changes
|
|
61
|
+
4. **Debug**: Use browser dev tools with source maps
|
|
62
|
+
5. **Test**: Interactive development and testing
|
|
63
|
+
|
|
64
|
+
## Configuration
|
|
65
|
+
Development settings can be configured in:
|
|
66
|
+
- `kimu.config.json`: Project development preferences
|
|
67
|
+
- Command-line options (override config settings)
|
|
68
|
+
- Environment variables (for CI/CD)
|
|
69
|
+
|
|
70
|
+
## Network Access
|
|
71
|
+
To allow access from other devices on your network:
|
|
72
|
+
```bash
|
|
73
|
+
kimu dev --host 0.0.0.0 --port 3000
|
|
74
|
+
```
|
|
75
|
+
Then access via `http://[your-ip]:3000`
|
|
76
|
+
|
|
77
|
+
## Notes
|
|
78
|
+
- Must be run from within a KIMU project directory
|
|
79
|
+
- Requires all dependencies to be installed
|
|
80
|
+
- Automatically detects available ports if default is busy
|
|
81
|
+
- Supports both HTTP and HTTPS development
|
|
82
|
+
- Optimized for fast rebuild times
|
|
83
|
+
|
|
84
|
+
## Status
|
|
85
|
+
â ī¸ **This command is planned but not yet implemented**
|
|
86
|
+
- Current status: Command structure defined, implementation pending
|
|
87
|
+
- Target: Full development server with HMR and debugging support
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# kimu doctor
|
|
2
|
+
|
|
3
|
+
Run diagnostics and health checks for your KIMU project.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
```bash
|
|
7
|
+
kimu doctor [options]
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Options
|
|
11
|
+
- `--verbose`: show detailed diagnostic information
|
|
12
|
+
- `--json`: output results in JSON format
|
|
13
|
+
- `--fix`: automatically fix common issues where possible
|
|
14
|
+
- `--skip <checks>`: skip specific diagnostic checks
|
|
15
|
+
- `--only <checks>`: run only specific diagnostic checks
|
|
16
|
+
|
|
17
|
+
## Examples
|
|
18
|
+
```bash
|
|
19
|
+
# Run all diagnostics
|
|
20
|
+
kimu doctor
|
|
21
|
+
|
|
22
|
+
# Verbose output with details
|
|
23
|
+
kimu doctor --verbose
|
|
24
|
+
|
|
25
|
+
# Output in JSON format
|
|
26
|
+
kimu doctor --json
|
|
27
|
+
|
|
28
|
+
# Auto-fix issues where possible
|
|
29
|
+
kimu doctor --fix
|
|
30
|
+
|
|
31
|
+
# Skip specific checks
|
|
32
|
+
kimu doctor --skip "dependencies,permissions"
|
|
33
|
+
|
|
34
|
+
# Run only specific checks
|
|
35
|
+
kimu doctor --only "config,modules"
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Diagnostic Checks
|
|
39
|
+
|
|
40
|
+
### System Requirements
|
|
41
|
+
- â
Node.js version compatibility (>= 18.0.0)
|
|
42
|
+
- â
NPM version compatibility (>= 8.0.0)
|
|
43
|
+
- â
Operating system compatibility
|
|
44
|
+
- â
Available disk space
|
|
45
|
+
- â
Network connectivity
|
|
46
|
+
|
|
47
|
+
### Project Structure
|
|
48
|
+
- â
KIMU project detection (`kimu.config.json` exists)
|
|
49
|
+
- â
Required directories exist (`src/`, `dist/`, etc.)
|
|
50
|
+
- â
Package.json validity and KIMU dependencies
|
|
51
|
+
- â
TypeScript configuration (`tsconfig.json`)
|
|
52
|
+
- â
Build configuration files
|
|
53
|
+
|
|
54
|
+
### Dependencies
|
|
55
|
+
- â
KIMU-Core version compatibility
|
|
56
|
+
- â
Module dependency resolution
|
|
57
|
+
- â
Extension compatibility
|
|
58
|
+
- â
Node modules integrity
|
|
59
|
+
- â
Security vulnerabilities scan
|
|
60
|
+
|
|
61
|
+
### Configuration
|
|
62
|
+
- â
KIMU configuration syntax and validity
|
|
63
|
+
- â
Build configuration consistency
|
|
64
|
+
- â
Development server settings
|
|
65
|
+
- â
Registry connectivity
|
|
66
|
+
- â
Environment variables
|
|
67
|
+
|
|
68
|
+
### Performance
|
|
69
|
+
- â
Bundle size analysis
|
|
70
|
+
- â
Build time optimization opportunities
|
|
71
|
+
- â
Module resolution efficiency
|
|
72
|
+
- â
Asset optimization status
|
|
73
|
+
|
|
74
|
+
## Auto-Fix Capabilities
|
|
75
|
+
When using `--fix`, doctor can automatically:
|
|
76
|
+
- Update outdated dependencies
|
|
77
|
+
- Fix common configuration issues
|
|
78
|
+
- Create missing directories
|
|
79
|
+
- Repair corrupted node_modules
|
|
80
|
+
- Update deprecated configuration syntax
|
|
81
|
+
|
|
82
|
+
## Output Format
|
|
83
|
+
### Standard Output
|
|
84
|
+
```
|
|
85
|
+
â
System Requirements: All checks passed
|
|
86
|
+
â ī¸ Dependencies: 2 updates available
|
|
87
|
+
â Configuration: Invalid kimu.config.json syntax
|
|
88
|
+
âšī¸ Performance: Bundle size could be optimized
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### JSON Output
|
|
92
|
+
```json
|
|
93
|
+
{
|
|
94
|
+
"status": "warning",
|
|
95
|
+
"checks": {
|
|
96
|
+
"system": { "status": "pass", "issues": [] },
|
|
97
|
+
"dependencies": { "status": "warning", "issues": ["outdated-packages"] },
|
|
98
|
+
"configuration": { "status": "error", "issues": ["invalid-syntax"] }
|
|
99
|
+
},
|
|
100
|
+
"summary": {
|
|
101
|
+
"total": 15,
|
|
102
|
+
"passed": 12,
|
|
103
|
+
"warnings": 2,
|
|
104
|
+
"errors": 1
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Check Categories
|
|
110
|
+
Available check categories for `--skip` and `--only`:
|
|
111
|
+
- `system`: System requirements and environment
|
|
112
|
+
- `dependencies`: Package and module dependencies
|
|
113
|
+
- `config`: Configuration files and settings
|
|
114
|
+
- `modules`: KIMU modules and extensions
|
|
115
|
+
- `performance`: Performance and optimization
|
|
116
|
+
- `security`: Security vulnerabilities
|
|
117
|
+
- `build`: Build system and tools
|
|
118
|
+
|
|
119
|
+
## Notes
|
|
120
|
+
- Can be run from any directory (will detect KIMU projects)
|
|
121
|
+
- Provides actionable recommendations
|
|
122
|
+
- Safe to run multiple times
|
|
123
|
+
- Helps identify common development issues
|
|
124
|
+
- Useful for CI/CD pipeline health checks
|
|
125
|
+
|
|
126
|
+
## Status
|
|
127
|
+
â ī¸ **This command is planned but not yet implemented**
|
|
128
|
+
- Current status: Command structure defined, implementation pending
|
|
129
|
+
- Target: Comprehensive project health analysis with auto-fix capabilities
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# kimu help
|
|
2
|
+
|
|
3
|
+
Show general help or help for a specific command.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
```bash
|
|
7
|
+
kimu help [command]
|
|
8
|
+
kimu <command> --help
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Arguments
|
|
12
|
+
- `[command]`: optional command name to get specific help for
|
|
13
|
+
|
|
14
|
+
## Examples
|
|
15
|
+
```bash
|
|
16
|
+
# Show general help
|
|
17
|
+
kimu help
|
|
18
|
+
|
|
19
|
+
# Show help for specific command
|
|
20
|
+
kimu help create
|
|
21
|
+
|
|
22
|
+
# Alternative syntax for command help
|
|
23
|
+
kimu create --help
|
|
24
|
+
kimu version --help
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Available Commands
|
|
28
|
+
When running `kimu help`, you'll see all available commands:
|
|
29
|
+
- `create` - Create a new KIMU project
|
|
30
|
+
- `version` - Show version information
|
|
31
|
+
- `info` - Show project information
|
|
32
|
+
- `help` - Show this help message
|
|
33
|
+
|
|
34
|
+
## Notes
|
|
35
|
+
- Running `kimu` without any arguments also shows the help
|
|
36
|
+
- Each command supports the `--help` flag for specific help
|
|
37
|
+
- Use `--verbose` with many commands for more detailed output
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# kimu info
|
|
2
|
+
|
|
3
|
+
Show information about the current KIMU project.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
```bash
|
|
7
|
+
kimu info [--verbose] [--json]
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Options
|
|
11
|
+
- `--verbose`: show detailed project information
|
|
12
|
+
- `--json`: output in JSON format for machine processing
|
|
13
|
+
|
|
14
|
+
## Examples
|
|
15
|
+
```bash
|
|
16
|
+
# Show basic project info
|
|
17
|
+
kimu info
|
|
18
|
+
|
|
19
|
+
# Show detailed project information
|
|
20
|
+
kimu info --verbose
|
|
21
|
+
|
|
22
|
+
# Output in JSON format
|
|
23
|
+
kimu info --json
|
|
24
|
+
|
|
25
|
+
# Combine options
|
|
26
|
+
kimu info --verbose --json
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Output Information
|
|
30
|
+
The basic info command shows:
|
|
31
|
+
- Project name and version
|
|
32
|
+
- KIMU-Core version (if detected)
|
|
33
|
+
- Project type and template
|
|
34
|
+
|
|
35
|
+
The verbose info command additionally shows:
|
|
36
|
+
- Installed modules and extensions
|
|
37
|
+
- Build configuration
|
|
38
|
+
- Development settings
|
|
39
|
+
- Project dependencies
|
|
40
|
+
- System requirements status
|
|
41
|
+
|
|
42
|
+
## Notes
|
|
43
|
+
- Must be run from within a KIMU project directory
|
|
44
|
+
- JSON output is useful for automation and scripting
|
|
45
|
+
- If no kimu.config.json is found, shows detection results
|
|
46
|
+
- Use this command to verify project setup and configuration
|