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,67 @@
|
|
|
1
|
+
# kimu install
|
|
2
|
+
|
|
3
|
+
Install modules and extensions for your KIMU project.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
```bash
|
|
7
|
+
kimu install module <name> [options]
|
|
8
|
+
kimu install extension <name> [options]
|
|
9
|
+
kimu install <name> [options]
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Arguments
|
|
13
|
+
- `module <name>`: install a specific module from the KIMU modules registry
|
|
14
|
+
- `extension <name>`: install a specific extension from the KIMU extensions registry
|
|
15
|
+
- `<name>`: auto-detect type and install module or extension
|
|
16
|
+
|
|
17
|
+
## Options
|
|
18
|
+
- `--save-dev`: install as development dependency
|
|
19
|
+
- `--registry <url>`: use custom registry URL
|
|
20
|
+
- `--version <version>`: install specific version
|
|
21
|
+
- `--force`: force reinstall if already installed
|
|
22
|
+
- `--verbose`: show detailed installation progress
|
|
23
|
+
|
|
24
|
+
## Examples
|
|
25
|
+
```bash
|
|
26
|
+
# Install a module
|
|
27
|
+
kimu install module router
|
|
28
|
+
|
|
29
|
+
# Install an extension
|
|
30
|
+
kimu install extension dashboard
|
|
31
|
+
|
|
32
|
+
# Auto-detect and install
|
|
33
|
+
kimu install analytics
|
|
34
|
+
|
|
35
|
+
# Install specific version
|
|
36
|
+
kimu install module router --version 1.2.0
|
|
37
|
+
|
|
38
|
+
# Install from custom registry
|
|
39
|
+
kimu install module router --registry https://custom-registry.com
|
|
40
|
+
|
|
41
|
+
# Force reinstall
|
|
42
|
+
kimu install module router --force
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## What it does
|
|
46
|
+
- Downloads the specified module or extension from the registry
|
|
47
|
+
- Resolves and installs dependencies
|
|
48
|
+
- Updates kimu.config.json with the new installation
|
|
49
|
+
- Verifies compatibility with current KIMU-Core version
|
|
50
|
+
- Sets up module/extension in the correct project structure
|
|
51
|
+
|
|
52
|
+
## Notes
|
|
53
|
+
- Must be run from within a KIMU project directory
|
|
54
|
+
- Automatically resolves dependencies and compatibility
|
|
55
|
+
- Updates project configuration files
|
|
56
|
+
- Supports both official and community packages
|
|
57
|
+
- Requires internet connection to access registries
|
|
58
|
+
|
|
59
|
+
## Registry Sources
|
|
60
|
+
- Official KIMU modules: `https://github.com/unicoverso/kimu-modules`
|
|
61
|
+
- Community extensions: `https://github.com/unicoverso/kimu-extensions`
|
|
62
|
+
- Custom registries supported via `--registry` option
|
|
63
|
+
|
|
64
|
+
## Status
|
|
65
|
+
⚠️ **This command is planned but not yet implemented**
|
|
66
|
+
- Current status: Command structure defined, implementation pending
|
|
67
|
+
- Target: Full registry integration with dependency resolution
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# kimu list
|
|
2
|
+
|
|
3
|
+
List available and installed modules and extensions.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
```bash
|
|
7
|
+
kimu list [type] [options]
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Arguments
|
|
11
|
+
- `modules`: list available modules from registry
|
|
12
|
+
- `extensions`: list available extensions from registry
|
|
13
|
+
- `installed`: list currently installed modules and extensions
|
|
14
|
+
- `templates`: list available project templates
|
|
15
|
+
|
|
16
|
+
## Options
|
|
17
|
+
- `--json`: output in JSON format
|
|
18
|
+
- `--verbose`: show detailed information
|
|
19
|
+
- `--registry <url>`: use custom registry URL
|
|
20
|
+
- `--filter <pattern>`: filter results by name pattern
|
|
21
|
+
- `--updates`: show available updates for installed packages
|
|
22
|
+
|
|
23
|
+
## Examples
|
|
24
|
+
```bash
|
|
25
|
+
# List all available modules
|
|
26
|
+
kimu list modules
|
|
27
|
+
|
|
28
|
+
# List all available extensions
|
|
29
|
+
kimu list extensions
|
|
30
|
+
|
|
31
|
+
# List installed packages
|
|
32
|
+
kimu list installed
|
|
33
|
+
|
|
34
|
+
# List available templates
|
|
35
|
+
kimu list templates
|
|
36
|
+
|
|
37
|
+
# Output in JSON format
|
|
38
|
+
kimu list modules --json
|
|
39
|
+
|
|
40
|
+
# Show detailed information
|
|
41
|
+
kimu list installed --verbose
|
|
42
|
+
|
|
43
|
+
# Filter by pattern
|
|
44
|
+
kimu list modules --filter "router*"
|
|
45
|
+
|
|
46
|
+
# Check for updates
|
|
47
|
+
kimu list installed --updates
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Output Information
|
|
51
|
+
|
|
52
|
+
### Basic listing shows:
|
|
53
|
+
- Package name and version
|
|
54
|
+
- Short description
|
|
55
|
+
- Installation status (for installed packages)
|
|
56
|
+
|
|
57
|
+
### Verbose listing additionally shows:
|
|
58
|
+
- Full description
|
|
59
|
+
- Author information
|
|
60
|
+
- Dependencies
|
|
61
|
+
- Compatibility requirements
|
|
62
|
+
- Last update date
|
|
63
|
+
- Download statistics
|
|
64
|
+
|
|
65
|
+
### Update checking shows:
|
|
66
|
+
- Current installed version
|
|
67
|
+
- Latest available version
|
|
68
|
+
- Update priority (patch/minor/major)
|
|
69
|
+
- Changelog summary
|
|
70
|
+
|
|
71
|
+
## Notes
|
|
72
|
+
- Requires internet connection for registry listings
|
|
73
|
+
- Cached results are used when possible for performance
|
|
74
|
+
- Updates can be checked for compatibility before installation
|
|
75
|
+
- Supports filtering and search functionality
|
|
76
|
+
|
|
77
|
+
## Registry Sources
|
|
78
|
+
- Official modules and extensions from KIMU repositories
|
|
79
|
+
- Community packages from verified sources
|
|
80
|
+
- Custom registries via `--registry` option
|
|
81
|
+
|
|
82
|
+
## Status
|
|
83
|
+
⚠️ **This command is planned but not yet implemented**
|
|
84
|
+
- Current status: Command structure defined, implementation pending
|
|
85
|
+
- Target: Full registry browsing and package discovery
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# kimu remove
|
|
2
|
+
|
|
3
|
+
Remove modules and extensions from your KIMU project.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
```bash
|
|
7
|
+
kimu remove <name> [options]
|
|
8
|
+
kimu remove module <name> [options]
|
|
9
|
+
kimu remove extension <name> [options]
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Arguments
|
|
13
|
+
- `<name>`: name of the module or extension to remove (auto-detected)
|
|
14
|
+
- `module <name>`: explicitly remove a module
|
|
15
|
+
- `extension <name>`: explicitly remove an extension
|
|
16
|
+
|
|
17
|
+
## Options
|
|
18
|
+
- `--force`: force removal without confirmation
|
|
19
|
+
- `--keep-config`: remove files but keep configuration entries
|
|
20
|
+
- `--cleanup`: also remove unused dependencies
|
|
21
|
+
- `--verbose`: show detailed removal progress
|
|
22
|
+
|
|
23
|
+
## Examples
|
|
24
|
+
```bash
|
|
25
|
+
# Remove a module or extension (auto-detect)
|
|
26
|
+
kimu remove router
|
|
27
|
+
|
|
28
|
+
# Explicitly remove a module
|
|
29
|
+
kimu remove module analytics
|
|
30
|
+
|
|
31
|
+
# Explicitly remove an extension
|
|
32
|
+
kimu remove extension dashboard
|
|
33
|
+
|
|
34
|
+
# Force removal without confirmation
|
|
35
|
+
kimu remove router --force
|
|
36
|
+
|
|
37
|
+
# Remove but keep configuration
|
|
38
|
+
kimu remove router --keep-config
|
|
39
|
+
|
|
40
|
+
# Remove with dependency cleanup
|
|
41
|
+
kimu remove router --cleanup
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## What it does
|
|
45
|
+
- Removes module/extension files from the project
|
|
46
|
+
- Updates kimu.config.json to remove configuration entries
|
|
47
|
+
- Optionally removes unused dependencies
|
|
48
|
+
- Cleans up build configuration references
|
|
49
|
+
- Provides confirmation prompts for safety
|
|
50
|
+
|
|
51
|
+
## Notes
|
|
52
|
+
- Must be run from within a KIMU project directory
|
|
53
|
+
- Prompts for confirmation unless `--force` is used
|
|
54
|
+
- Can detect and remove orphaned dependencies with `--cleanup`
|
|
55
|
+
- Updates all relevant configuration files
|
|
56
|
+
- Preserves project integrity during removal
|
|
57
|
+
|
|
58
|
+
## Safety Features
|
|
59
|
+
- Confirmation prompts for destructive operations
|
|
60
|
+
- Backup suggestions for important removals
|
|
61
|
+
- Dependency impact analysis
|
|
62
|
+
- Rollback instructions provided
|
|
63
|
+
|
|
64
|
+
## Status
|
|
65
|
+
⚠️ **This command is planned but not yet implemented**
|
|
66
|
+
- Current status: Command structure defined, implementation pending
|
|
67
|
+
- Target: Safe removal with dependency management
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# kimu serve
|
|
2
|
+
|
|
3
|
+
Serve the built KIMU project for testing and preview.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
```bash
|
|
7
|
+
kimu serve [options]
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Options
|
|
11
|
+
- `--port <port>`: server port [default: 4000]
|
|
12
|
+
- `--host <host>`: server host [default: localhost]
|
|
13
|
+
- `--open`: automatically open browser
|
|
14
|
+
- `--dist <dir>`: directory to serve [default: dist]
|
|
15
|
+
- `--spa`: enable single-page application mode
|
|
16
|
+
- `--cors`: enable CORS headers
|
|
17
|
+
- `--verbose`: show detailed server logs
|
|
18
|
+
|
|
19
|
+
## Examples
|
|
20
|
+
```bash
|
|
21
|
+
# Serve built project with defaults
|
|
22
|
+
kimu serve
|
|
23
|
+
|
|
24
|
+
# Serve on specific port
|
|
25
|
+
kimu serve --port 8080
|
|
26
|
+
|
|
27
|
+
# Serve and open browser
|
|
28
|
+
kimu serve --open
|
|
29
|
+
|
|
30
|
+
# Serve custom directory
|
|
31
|
+
kimu serve --dist ./build
|
|
32
|
+
|
|
33
|
+
# Enable SPA mode for client-side routing
|
|
34
|
+
kimu serve --spa
|
|
35
|
+
|
|
36
|
+
# Enable CORS for API testing
|
|
37
|
+
kimu serve --cors
|
|
38
|
+
|
|
39
|
+
# Network access with custom host
|
|
40
|
+
kimu serve --host 0.0.0.0 --port 4000
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## When to Use
|
|
44
|
+
Use `kimu serve` to:
|
|
45
|
+
- **Preview production builds** before deployment
|
|
46
|
+
- **Test built applications** locally
|
|
47
|
+
- **Share builds** with team members on local network
|
|
48
|
+
- **Validate build output** and asset loading
|
|
49
|
+
- **Debug production issues** in development environment
|
|
50
|
+
|
|
51
|
+
## Server Features
|
|
52
|
+
- **Static file serving**: Serves all built assets correctly
|
|
53
|
+
- **SPA support**: Handles client-side routing with fallback to index.html
|
|
54
|
+
- **CORS support**: Enables cross-origin requests for API testing
|
|
55
|
+
- **Gzip compression**: Automatically compresses responses
|
|
56
|
+
- **Cache headers**: Appropriate caching for static assets
|
|
57
|
+
- **MIME type detection**: Proper content types for all file types
|
|
58
|
+
|
|
59
|
+
## Difference from `kimu dev`
|
|
60
|
+
| Feature | `kimu dev` | `kimu serve` |
|
|
61
|
+
|---------|------------|--------------|
|
|
62
|
+
| Purpose | Development | Preview built app |
|
|
63
|
+
| Source | Live TypeScript compilation | Pre-built files |
|
|
64
|
+
| Hot Reload | ✅ Yes | ❌ No |
|
|
65
|
+
| Build Speed | Fast incremental | No building |
|
|
66
|
+
| Optimization | Development mode | Production ready |
|
|
67
|
+
| Use Case | Active development | Testing/Preview |
|
|
68
|
+
|
|
69
|
+
## Prerequisites
|
|
70
|
+
Before running `kimu serve`:
|
|
71
|
+
1. Build your project: `kimu build`
|
|
72
|
+
2. Ensure the dist directory exists and contains built files
|
|
73
|
+
|
|
74
|
+
## Network Sharing
|
|
75
|
+
To share with other devices:
|
|
76
|
+
```bash
|
|
77
|
+
kimu serve --host 0.0.0.0 --port 4000
|
|
78
|
+
```
|
|
79
|
+
Then access via `http://[your-ip]:4000`
|
|
80
|
+
|
|
81
|
+
## Notes
|
|
82
|
+
- Must have built the project first (`kimu build`)
|
|
83
|
+
- Serves static files only (no compilation)
|
|
84
|
+
- Ideal for production build testing
|
|
85
|
+
- Supports all modern web features (ES modules, service workers, etc.)
|
|
86
|
+
- Automatically handles asset paths and routing
|
|
87
|
+
|
|
88
|
+
## Status
|
|
89
|
+
⚠️ **This command is planned but not yet implemented**
|
|
90
|
+
- Current status: Command structure defined, implementation pending
|
|
91
|
+
- Target: Static file server with SPA and production preview support
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# kimu version
|
|
2
|
+
|
|
3
|
+
Show the current version of KIMU-CLI.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
```bash
|
|
7
|
+
kimu version [--verbose]
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Options
|
|
11
|
+
- `--verbose`: show additional version information and system details
|
|
12
|
+
|
|
13
|
+
## Examples
|
|
14
|
+
```bash
|
|
15
|
+
# Show basic version
|
|
16
|
+
kimu version
|
|
17
|
+
|
|
18
|
+
# Show verbose version information
|
|
19
|
+
kimu version --verbose
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Output
|
|
23
|
+
The basic version command shows:
|
|
24
|
+
- KIMU-CLI version number
|
|
25
|
+
|
|
26
|
+
The verbose version command shows:
|
|
27
|
+
- KIMU-CLI version number
|
|
28
|
+
- Node.js version
|
|
29
|
+
- NPM version
|
|
30
|
+
- Operating system information
|
|
31
|
+
- Additional system details
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Distributing and Installing KIMU-CLI
|
|
2
|
+
|
|
3
|
+
KIMU-CLI can be used as a global or local command-line tool.
|
|
4
|
+
|
|
5
|
+
## Global Installation (Recommended)
|
|
6
|
+
Install globally to use `kimu` from anywhere:
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g kimu-cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Local Installation (Project Dev Dependency)
|
|
12
|
+
Install locally in your project:
|
|
13
|
+
```bash
|
|
14
|
+
npm install --save-dev kimu-cli
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage as a Command
|
|
18
|
+
After installation, you can run:
|
|
19
|
+
```bash
|
|
20
|
+
kimu --help
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Development: Using npm link
|
|
24
|
+
For local development and testing, you can link the CLI globally:
|
|
25
|
+
```bash
|
|
26
|
+
npm link
|
|
27
|
+
```
|
|
28
|
+
This makes the `kimu` command available globally on your machine for testing and development.
|
|
29
|
+
|
|
30
|
+
To remove the link:
|
|
31
|
+
```bash
|
|
32
|
+
npm unlink -g kimu-cli
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Build and Compilation
|
|
36
|
+
Before publishing or distributing, you need to compile the project:
|
|
37
|
+
```bash
|
|
38
|
+
npm run build # Compile TypeScript to JavaScript
|
|
39
|
+
npm run lint # Check code quality (optional)
|
|
40
|
+
npm run test # Run tests (optional)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Publishing and Distribution
|
|
44
|
+
|
|
45
|
+
### Test Package Creation
|
|
46
|
+
Before publishing, test the package creation:
|
|
47
|
+
```bash
|
|
48
|
+
npm pack # Creates kimu-cli-X.X.X.tgz file
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Publishing to NPM
|
|
52
|
+
1. Login to npm (if not already logged in):
|
|
53
|
+
```bash
|
|
54
|
+
npm login
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
2. Publish the package:
|
|
58
|
+
```bash
|
|
59
|
+
npm publish
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Version Management
|
|
63
|
+
To update version and publish:
|
|
64
|
+
```bash
|
|
65
|
+
npm version patch # Increment patch version (0.0.1 -> 0.0.2)
|
|
66
|
+
npm version minor # Increment minor version (0.0.1 -> 0.1.0)
|
|
67
|
+
npm version major # Increment major version (0.0.1 -> 1.0.0)
|
|
68
|
+
npm publish # Publish the new version
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Automated Release Scripts
|
|
72
|
+
The project includes automated scripts:
|
|
73
|
+
```bash
|
|
74
|
+
npm run release # Build and publish in one command
|
|
75
|
+
npm run package # Build and create package file
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Installation Verification
|
|
79
|
+
After publishing, anyone can install and verify:
|
|
80
|
+
```bash
|
|
81
|
+
npm install -g kimu-cli # Global installation
|
|
82
|
+
kimu --version # Verify installation
|
|
83
|
+
kimu --help # Test basic functionality
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Notes
|
|
87
|
+
- Node.js >= 18 required for development and usage
|
|
88
|
+
- Always run `npm run build` before publishing
|
|
89
|
+
- Use `npm link` for local development and testing
|
|
90
|
+
- The package includes all necessary files in `dist/`, `bin/`, and documentation
|
|
91
|
+
- For CI/CD automation, see the provided GitHub Actions workflow in `.github/workflows/`
|
|
92
|
+
|
|
93
|
+
---
|
package/docs/index.md
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# KIMU-CLI Documentation Index
|
|
2
|
+
|
|
3
|
+
Welcome to the complete documentation for KIMU-CLI, the official command-line interface for the KIMU framework ecosystem.
|
|
4
|
+
|
|
5
|
+
## 📖 Getting Started
|
|
6
|
+
|
|
7
|
+
### Essential Reading
|
|
8
|
+
- [Introduction to KIMU-CLI](intro.md) - Overview and core concepts
|
|
9
|
+
- [Distribution & Installation Guide](distribution.md) - Installation, building, and publishing
|
|
10
|
+
- [Command Reference](command-kimu.md) - Complete command overview and usage
|
|
11
|
+
|
|
12
|
+
## ⚡ Quick References
|
|
13
|
+
|
|
14
|
+
### Available Commands (Ready to Use)
|
|
15
|
+
| Command | Description | Documentation |
|
|
16
|
+
|---------|-------------|---------------|
|
|
17
|
+
| `create` | Create new KIMU projects | [📖 docs](commands/create.md) |
|
|
18
|
+
| `info` | Show project information | [📖 docs](commands/info.md) |
|
|
19
|
+
| `version` | Show version information | [📖 docs](commands/version.md) |
|
|
20
|
+
| `help` | Command help system | [📖 docs](commands/help.md) |
|
|
21
|
+
|
|
22
|
+
### Planned Commands (Coming Soon)
|
|
23
|
+
| Command | Description | Documentation |
|
|
24
|
+
|---------|-------------|---------------|
|
|
25
|
+
| `install` | Install modules and extensions | [📖 docs](commands/install.md) ⏳ |
|
|
26
|
+
| `remove` | Remove modules and extensions | [📖 docs](commands/remove.md) ⏳ |
|
|
27
|
+
| `list` | Browse available packages | [📖 docs](commands/list.md) ⏳ |
|
|
28
|
+
| `build` | Build for production | [📖 docs](commands/build.md) ⏳ |
|
|
29
|
+
| `dev` | Development server | [📖 docs](commands/dev.md) ⏳ |
|
|
30
|
+
| `serve` | Serve built project | [📖 docs](commands/serve.md) ⏳ |
|
|
31
|
+
| `doctor` | Project diagnostics | [📖 docs](commands/doctor.md) ⏳ |
|
|
32
|
+
|
|
33
|
+
## 🎯 Use Case Guides
|
|
34
|
+
|
|
35
|
+
### For New Users
|
|
36
|
+
1. **First Time Setup**: Start with [Introduction](intro.md) to understand KIMU-CLI
|
|
37
|
+
2. **Installation**: Follow the [Distribution Guide](distribution.md) for installation
|
|
38
|
+
3. **Create Your First Project**: Use [`kimu create`](commands/create.md)
|
|
39
|
+
4. **Learn the Commands**: Browse the [Command Reference](command-kimu.md)
|
|
40
|
+
|
|
41
|
+
### For Developers
|
|
42
|
+
1. **Project Setup**: Use [`kimu create`](commands/create.md) and [`kimu info`](commands/info.md)
|
|
43
|
+
2. **Development Workflow**: Plan ahead with [`kimu dev`](commands/dev.md) and [`kimu build`](commands/build.md) docs
|
|
44
|
+
3. **Package Management**: Understand future [`kimu install`](commands/install.md) and [`kimu list`](commands/list.md)
|
|
45
|
+
4. **Troubleshooting**: Prepare for [`kimu doctor`](commands/doctor.md) diagnostics
|
|
46
|
+
|
|
47
|
+
### For Maintainers
|
|
48
|
+
1. **Building and Distribution**: Follow [Distribution Guide](distribution.md)
|
|
49
|
+
2. **Command Implementation**: Study existing command patterns in `src/commands/`
|
|
50
|
+
3. **Documentation**: Keep docs in sync with implementation
|
|
51
|
+
|
|
52
|
+
## 📂 Documentation Structure
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
docs/
|
|
56
|
+
├── index.md # This file - documentation index
|
|
57
|
+
├── intro.md # Introduction and overview
|
|
58
|
+
├── command-kimu.md # Complete command reference
|
|
59
|
+
├── distribution.md # Installation and distribution
|
|
60
|
+
└── commands/ # Individual command documentation
|
|
61
|
+
├── create.md # ✅ Available
|
|
62
|
+
├── info.md # ✅ Available
|
|
63
|
+
├── version.md # ✅ Available
|
|
64
|
+
├── help.md # ✅ Available
|
|
65
|
+
├── install.md # ⏳ Planned
|
|
66
|
+
├── remove.md # ⏳ Planned
|
|
67
|
+
├── list.md # ⏳ Planned
|
|
68
|
+
├── build.md # ⏳ Planned
|
|
69
|
+
├── dev.md # ⏳ Planned
|
|
70
|
+
├── serve.md # ⏳ Planned
|
|
71
|
+
└── doctor.md # ⏳ Planned
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## 🚀 Quick Start Examples
|
|
75
|
+
|
|
76
|
+
### Create and Setup New Project
|
|
77
|
+
```bash
|
|
78
|
+
# Install KIMU-CLI globally
|
|
79
|
+
npm install -g kimu-cli
|
|
80
|
+
|
|
81
|
+
# Create new project
|
|
82
|
+
kimu create my-awesome-app --git
|
|
83
|
+
|
|
84
|
+
# Navigate and check project
|
|
85
|
+
cd my-awesome-app
|
|
86
|
+
kimu info --verbose
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Get Help and Information
|
|
90
|
+
```bash
|
|
91
|
+
# Show all commands
|
|
92
|
+
kimu help
|
|
93
|
+
|
|
94
|
+
# Get specific command help
|
|
95
|
+
kimu create --help
|
|
96
|
+
|
|
97
|
+
# Check versions
|
|
98
|
+
kimu version --verbose
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## 🔄 Status Legend
|
|
102
|
+
|
|
103
|
+
- ✅ **Available**: Command is implemented and ready to use
|
|
104
|
+
- ⏳ **Planned**: Command is documented but not yet implemented
|
|
105
|
+
- 🚧 **In Progress**: Command is being developed
|
|
106
|
+
- ❌ **Deprecated**: Command is no longer supported
|
|
107
|
+
|
|
108
|
+
## 🤝 Contributing to Documentation
|
|
109
|
+
|
|
110
|
+
When contributing to KIMU-CLI documentation:
|
|
111
|
+
|
|
112
|
+
1. **Keep it current**: Update docs when implementation changes
|
|
113
|
+
2. **Use examples**: Include practical, working examples
|
|
114
|
+
3. **Follow patterns**: Match the style and structure of existing docs
|
|
115
|
+
4. **Test commands**: Verify examples work before documenting
|
|
116
|
+
5. **Update index**: Add new docs to this index file
|
|
117
|
+
|
|
118
|
+
## 📞 Support and Resources
|
|
119
|
+
|
|
120
|
+
- **GitHub Repository**: [KIMU-CLI](https://github.com/UnicoVerso/kimu-cli)
|
|
121
|
+
- **KIMU Framework**: [Main Project](https://github.com/UnicoVerso/kimu)
|
|
122
|
+
- **Community**: [UnicòVerso](https://unicoverso.org)
|
|
123
|
+
- **Issues**: [Bug Reports & Feature Requests](https://github.com/UnicoVerso/kimu-cli/issues)
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
**Ready to start building with KIMU-CLI?** Begin with the [Introduction](intro.md) and then dive into creating your first project with [`kimu create`](commands/create.md)! 🚀
|
package/docs/intro.md
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# Introduction to KIMU-CLI
|
|
2
|
+
|
|
3
|
+
KIMU-CLI is the official command-line tool for the KIMU framework ecosystem. It provides a unified interface to create, manage, build, and deploy KIMU projects with simple, intuitive commands.
|
|
4
|
+
|
|
5
|
+
## What is KIMU-CLI?
|
|
6
|
+
|
|
7
|
+
KIMU-CLI is designed to streamline the entire KIMU development workflow by providing:
|
|
8
|
+
|
|
9
|
+
- 🚀 **Project Scaffolding**: Create new KIMU applications from templates
|
|
10
|
+
- 📦 **Module Management**: Install, update, and remove modules from the registry
|
|
11
|
+
- 🧩 **Extension Management**: Manage UI extensions and components
|
|
12
|
+
- 🔧 **Build Pipeline**: Build, optimize, and bundle KIMU applications
|
|
13
|
+
- 🌐 **Development Server**: Fast development with hot module replacement
|
|
14
|
+
- 🔍 **Project Diagnostics**: Health checks and troubleshooting tools
|
|
15
|
+
- 📊 **Registry Integration**: Discover and explore the KIMU ecosystem
|
|
16
|
+
|
|
17
|
+
## Core Philosophy
|
|
18
|
+
|
|
19
|
+
KIMU-CLI follows these principles:
|
|
20
|
+
- **Developer Productivity**: Minimize setup time, maximize development efficiency
|
|
21
|
+
- **Modularity**: Support for the modular KIMU architecture
|
|
22
|
+
- **Simplicity**: Intuitive commands that work out of the box
|
|
23
|
+
- **Extensibility**: Plugin system for custom workflows
|
|
24
|
+
- **Community**: Integration with the broader KIMU ecosystem
|
|
25
|
+
|
|
26
|
+
## Command Categories
|
|
27
|
+
|
|
28
|
+
### Project Management
|
|
29
|
+
- `kimu create` - Create new KIMU projects
|
|
30
|
+
- `kimu info` - Show project information and status
|
|
31
|
+
- `kimu doctor` - Run project health diagnostics
|
|
32
|
+
|
|
33
|
+
### Package Management
|
|
34
|
+
- `kimu install` - Install modules and extensions
|
|
35
|
+
- `kimu remove` - Remove modules and extensions
|
|
36
|
+
- `kimu list` - Browse available and installed packages
|
|
37
|
+
|
|
38
|
+
### Development Workflow
|
|
39
|
+
- `kimu dev` - Start development server with hot reload
|
|
40
|
+
- `kimu build` - Build project for production
|
|
41
|
+
- `kimu serve` - Serve built project for testing
|
|
42
|
+
|
|
43
|
+
### Utilities
|
|
44
|
+
- `kimu version` - Show version information
|
|
45
|
+
- `kimu help` - Get help for any command
|
|
46
|
+
|
|
47
|
+
## Getting Started
|
|
48
|
+
|
|
49
|
+
1. **Install KIMU-CLI globally**:
|
|
50
|
+
```bash
|
|
51
|
+
npm install -g kimu-cli
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
2. **Create your first project**:
|
|
55
|
+
```bash
|
|
56
|
+
kimu create my-first-app
|
|
57
|
+
cd my-first-app
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
3. **Start developing**:
|
|
61
|
+
```bash
|
|
62
|
+
kimu dev
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
4. **Build for production**:
|
|
66
|
+
```bash
|
|
67
|
+
kimu build
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## System Requirements
|
|
71
|
+
|
|
72
|
+
- **Node.js**: >= 18.0.0
|
|
73
|
+
- **NPM**: >= 8.0.0
|
|
74
|
+
- **Operating System**: macOS, Linux, Windows
|
|
75
|
+
- **Internet Connection**: Required for registry access
|
|
76
|
+
|
|
77
|
+
## Next Steps
|
|
78
|
+
|
|
79
|
+
- Read the [Command Reference](command-kimu.md) for detailed command usage
|
|
80
|
+
- Check out individual command documentation in the `commands/` directory
|
|
81
|
+
- See the [Distribution Guide](distribution.md) for installation and deployment
|
|
82
|
+
- Explore the [KIMU Framework](https://github.com/UnicoVerso/kimu) ecosystem
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
**Ready to build amazing web applications with KIMU? Let's get started!** 🚀
|