bunkit-cli 0.3.1 → 0.4.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/README.md +60 -0
- package/dist/index.js +1765 -179
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -68,6 +68,66 @@ You'll be guided through:
|
|
|
68
68
|
- Package manager preference
|
|
69
69
|
- Git initialization
|
|
70
70
|
|
|
71
|
+
#### Non-Interactive Mode (AI-Friendly)
|
|
72
|
+
|
|
73
|
+
Create projects without prompts using environment variables or CLI flags. Perfect for automation, CI/CD pipelines, and AI agents.
|
|
74
|
+
|
|
75
|
+
**Using Environment Variables (Highest Priority):**
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
# Full control via env vars
|
|
79
|
+
BUNKIT_PROJECT_NAME=my-app \
|
|
80
|
+
BUNKIT_PRESET=web \
|
|
81
|
+
BUNKIT_GIT=false \
|
|
82
|
+
BUNKIT_INSTALL=false \
|
|
83
|
+
BUNKIT_NON_INTERACTIVE=true \
|
|
84
|
+
bunkit init
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**Using CLI Flags (Medium Priority):**
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
# Same result with flags
|
|
91
|
+
bunkit init --name my-app --preset web --no-git --no-install --non-interactive
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
**Available Environment Variables:**
|
|
95
|
+
- `BUNKIT_PROJECT_NAME` - Project name
|
|
96
|
+
- `BUNKIT_PRESET` - Preset type (minimal, web, api, full)
|
|
97
|
+
- `BUNKIT_GIT` - Initialize git (true/false, default: true)
|
|
98
|
+
- `BUNKIT_INSTALL` - Install dependencies (true/false, default: true)
|
|
99
|
+
- `BUNKIT_NON_INTERACTIVE` - Skip all prompts (true/false, default: false)
|
|
100
|
+
|
|
101
|
+
**Available CLI Flags:**
|
|
102
|
+
- `--name <name>` - Project name
|
|
103
|
+
- `--preset <preset>` - Preset type (minimal, web, api, full)
|
|
104
|
+
- `--no-git` - Skip git initialization
|
|
105
|
+
- `--no-install` - Skip dependency installation
|
|
106
|
+
- `--non-interactive` - Run without prompts (requires all options)
|
|
107
|
+
|
|
108
|
+
**Priority Order:**
|
|
109
|
+
1. Environment variables (highest)
|
|
110
|
+
2. CLI flags (medium)
|
|
111
|
+
3. Interactive prompts (lowest)
|
|
112
|
+
|
|
113
|
+
**Examples for AI Agents:**
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
# Claude Code can use this to create projects autonomously
|
|
117
|
+
env BUNKIT_PROJECT_NAME=saas-app \
|
|
118
|
+
BUNKIT_PRESET=full \
|
|
119
|
+
BUNKIT_GIT=true \
|
|
120
|
+
BUNKIT_INSTALL=true \
|
|
121
|
+
BUNKIT_NON_INTERACTIVE=true \
|
|
122
|
+
bunkit init
|
|
123
|
+
|
|
124
|
+
# Or with flags for simplicity
|
|
125
|
+
bunkit init \
|
|
126
|
+
--name saas-app \
|
|
127
|
+
--preset full \
|
|
128
|
+
--non-interactive
|
|
129
|
+
```
|
|
130
|
+
|
|
71
131
|
### `bunkit create`
|
|
72
132
|
|
|
73
133
|
Quickly create a project without prompts.
|