@bobschlowinskii/clicraft 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.
@@ -0,0 +1,128 @@
1
+ ---
2
+ layout: default
3
+ title: uninstall
4
+ parent: Commands
5
+ nav_order: 4
6
+ description: "Uninstall mods from your Minecraft instance"
7
+ permalink: /commands/uninstall
8
+ ---
9
+
10
+ # uninstall Command
11
+
12
+ Remove mods from your Minecraft instance.
13
+
14
+ ## 📝 Synopsis
15
+
16
+ ```bash
17
+ clicraft uninstall [mod] [options]
18
+ ```
19
+
20
+ ## 📖 Description
21
+
22
+ The `uninstall` command removes mods from your Minecraft instance. It:
23
+
24
+ 1. Deletes the mod JAR file from the `mods/` folder
25
+ 2. Removes the mod entry from `mcconfig.json`
26
+
27
+ If no mod is specified, an interactive multi-select prompt appears allowing you to choose multiple mods to uninstall.
28
+
29
+ ## 🎯 Options
30
+
31
+ | Option | Description |
32
+ |--------|-------------|
33
+ | `-i, --instance <path>` | Path to the instance directory |
34
+ | `-f, --force` | Skip confirmation prompt |
35
+ | `--verbose` | Enable verbose output |
36
+
37
+ ## 📋 Examples
38
+
39
+ ### Uninstall a specific mod
40
+ ```bash
41
+ clicraft uninstall sodium
42
+ ```
43
+
44
+ ### Uninstall with force (no confirmation)
45
+ ```bash
46
+ clicraft uninstall sodium --force
47
+ ```
48
+
49
+ ### Interactive selection
50
+ ```bash
51
+ clicraft uninstall
52
+ ```
53
+
54
+ This opens a checkbox prompt to select multiple mods:
55
+ ```
56
+ ? Select mods to uninstall:
57
+ ◯ Sodium (mc1.21.11-0.8.2-fabric)
58
+ ◯ Lithium (mc1.21.11-0.12.1-fabric)
59
+ ◯ Iris Shaders (1.8.0+1.21.1)
60
+ ◯ Fabric API (0.100.0+1.21.1)
61
+ ```
62
+
63
+ ### Uninstall from specific instance
64
+ ```bash
65
+ clicraft uninstall sodium --instance ~/my-instance
66
+ ```
67
+
68
+ ## 🎮 Example Session
69
+
70
+ ```bash
71
+ $ clicraft uninstall sodium
72
+
73
+ 🗑️ Uninstalling "Sodium"...
74
+
75
+ ? Are you sure you want to uninstall Sodium? Yes
76
+ Deleted: mods/sodium-fabric-0.8.2+mc1.21.11.jar
77
+
78
+ ✅ Successfully uninstalled Sodium
79
+ ```
80
+
81
+ ### Force uninstall (no prompt)
82
+ ```bash
83
+ $ clicraft uninstall sodium --force
84
+
85
+ 🗑️ Uninstalling "Sodium"...
86
+
87
+ Deleted: mods/sodium-fabric-0.8.2+mc1.21.11.jar
88
+
89
+ ✅ Successfully uninstalled Sodium
90
+ ```
91
+
92
+ ## 🔍 Finding Mod Names
93
+
94
+ You can use the mod's slug, name, or project ID:
95
+
96
+ ```bash
97
+ # All of these work
98
+ clicraft uninstall sodium
99
+ clicraft uninstall Sodium
100
+ clicraft uninstall AANobbMI
101
+ ```
102
+
103
+ To see installed mods:
104
+ ```bash
105
+ clicraft info --mods
106
+ ```
107
+
108
+ ## ⚠️ Notes
109
+
110
+ - Uninstalling a mod does not automatically uninstall its dependencies
111
+ - If a mod file was manually deleted, the command will still remove the config entry
112
+ - Use `--force` in scripts to skip the confirmation prompt
113
+
114
+ ## 📚 Related Commands
115
+
116
+ - [`clicraft install`](install.md) - Install mods
117
+ - [`clicraft info --mods`](info.md) - List installed mods
118
+ - [`clicraft upgrade`](upgrade.md) - Upgrade mods to newer versions
119
+ - [`clicraft search`](search.md) - Find mods on Modrinth
120
+
121
+ ## 🔗 See Also
122
+
123
+ - [Commands Overview](../commands.md)
124
+ - [Installation Guide](../installation.md)
125
+
126
+ ---
127
+
128
+ [← Back to Commands](../commands.md)
@@ -0,0 +1,515 @@
1
+ ---
2
+ layout: default
3
+ title: upgrade
4
+ parent: Commands
5
+ nav_order: 7
6
+ description: "Update mods and versions"
7
+ permalink: /commands/upgrade
8
+ ---
9
+
10
+ # upgrade Command
11
+
12
+ Update your mods, Minecraft version, or mod loader to the latest versions.
13
+
14
+ ## 📝 Synopsis
15
+
16
+ ```bash
17
+ clicraft upgrade [mod] [options]
18
+ ```
19
+
20
+ ## 📖 Description
21
+
22
+ The `upgrade` command helps you keep your Minecraft instance up-to-date by upgrading:
23
+
24
+ - **Individual mods** - Update a specific mod to its latest compatible version
25
+ - **All mods** - Update all installed mods at once
26
+ - **Minecraft version** - Upgrade to a newer Minecraft version
27
+ - **Mod loader** - Update Fabric or Forge to a newer version
28
+
29
+ The command shows an interactive menu where you can choose what to upgrade.
30
+
31
+ ## 🎯 Arguments
32
+
33
+ | Argument | Description | Required |
34
+ |----------|-------------|----------|
35
+ | `[mod]` | Specific mod name to upgrade | No |
36
+
37
+ If no mod is specified, shows an interactive upgrade menu.
38
+
39
+ ## 🎯 Options
40
+
41
+ | Option | Description | Default |
42
+ |--------|-------------|---------|
43
+ | `-i, --instance <path>` | Path to instance directory | Current directory |
44
+ | `-f, --force` | Force upgrade even if already up-to-date | false |
45
+ | `--verbose` | Enable verbose output | false |
46
+
47
+ ## 📋 Examples
48
+
49
+ ### Interactive upgrade menu
50
+ ```bash
51
+ cd my-instance
52
+ clicraft upgrade
53
+ ```
54
+
55
+ ### Upgrade specific mod
56
+ ```bash
57
+ clicraft upgrade sodium
58
+ ```
59
+
60
+ ### Upgrade with instance path
61
+ ```bash
62
+ clicraft upgrade --instance ./my-instance
63
+ ```
64
+
65
+ ### Force upgrade
66
+ ```bash
67
+ clicraft upgrade sodium --force
68
+ ```
69
+ Forces upgrade even if the mod is already at the latest version.
70
+
71
+ ### Verbose upgrade
72
+ ```bash
73
+ clicraft upgrade --verbose
74
+ ```
75
+ See detailed information about version checks and downloads.
76
+
77
+ ## 🎮 Interactive Upgrade Menu
78
+
79
+ When you run `clicraft upgrade` without arguments, you'll see:
80
+
81
+ ```bash
82
+ $ clicraft upgrade
83
+
84
+ What would you like to upgrade?
85
+
86
+ ❯ All mods
87
+ Specific mod
88
+ Minecraft version
89
+ Mod loader (Fabric)
90
+ Cancel
91
+ ```
92
+
93
+ ### Options
94
+
95
+ #### 1. All Mods
96
+ Updates all installed mods to their latest compatible versions:
97
+ ```bash
98
+ Checking for mod updates...
99
+
100
+ Updates available:
101
+ - Sodium: 0.5.0 → 0.6.0
102
+ - Lithium: 0.11.0 → 0.12.0
103
+ - Iris: 1.7.0 → 1.8.0
104
+
105
+ Proceed with updates? (y/n)
106
+ ```
107
+
108
+ #### 2. Specific Mod
109
+ Select a mod from your installed mods:
110
+ ```bash
111
+ Select mod to upgrade:
112
+
113
+ ❯ Sodium (0.5.0)
114
+ Lithium (0.11.0)
115
+ Iris (1.7.0)
116
+ Fabric API (0.95.0)
117
+ Mod Menu (8.0.0)
118
+ ```
119
+
120
+ #### 3. Minecraft Version
121
+ Upgrade to a different Minecraft version:
122
+ ```bash
123
+ Current version: 1.20.1
124
+ Available versions:
125
+
126
+ ❯ 1.21.1 (Latest Release)
127
+ 1.21
128
+ 1.20.6
129
+ 1.20.4
130
+ Keep current version
131
+ ```
132
+
133
+ **Warning**: Upgrading Minecraft may break mod compatibility.
134
+
135
+ #### 4. Mod Loader
136
+ Update the mod loader version:
137
+ ```bash
138
+ Current: Fabric 0.15.0
139
+ Available:
140
+
141
+ ❯ 0.16.5 (Latest)
142
+ 0.16.0
143
+ 0.15.11
144
+ Keep current version
145
+ ```
146
+
147
+ ## 🎮 Example Sessions
148
+
149
+ ### Upgrade All Mods
150
+ ```bash
151
+ $ cd my-instance
152
+ $ clicraft upgrade
153
+
154
+ What would you like to upgrade? All mods
155
+
156
+ Checking for mod updates...
157
+
158
+ Updates available (3):
159
+ - Sodium: 0.5.0 → 0.6.0
160
+ - Lithium: 0.11.0 → 0.12.0
161
+ - Iris: 1.7.0 → 1.8.0
162
+
163
+ No updates available (2):
164
+ - Fabric API: 0.100.0 (latest)
165
+ - Mod Menu: 9.0.0 (latest)
166
+
167
+ Proceed with updates? (y/n) y
168
+
169
+ ✓ Downloading Sodium 0.6.0...
170
+ ✓ Downloading Lithium 0.12.0...
171
+ ✓ Downloading Iris 1.8.0...
172
+ ✓ Removing old versions...
173
+ ✓ Installing new versions...
174
+
175
+ Successfully upgraded 3 mods!
176
+ ```
177
+
178
+ ### Upgrade Specific Mod
179
+ ```bash
180
+ $ clicraft upgrade sodium
181
+
182
+ Checking for Sodium updates...
183
+
184
+ Current version: 0.5.0
185
+ Latest version: 0.6.0
186
+
187
+ Changelog:
188
+ - Improved rendering performance
189
+ - Fixed memory leak
190
+ - Updated for Minecraft 1.21.1
191
+
192
+ Upgrade to 0.6.0? (y/n) y
193
+
194
+ ✓ Downloading Sodium 0.6.0...
195
+ ✓ Installing...
196
+ ✓ Cleaning up...
197
+
198
+ Sodium upgraded successfully!
199
+ Old version removed: sodium-fabric-0.5.0.jar
200
+ New version installed: sodium-fabric-0.6.0.jar
201
+ ```
202
+
203
+ ### No Updates Available
204
+ ```bash
205
+ $ clicraft upgrade
206
+
207
+ Checking for mod updates...
208
+
209
+ All mods are up-to-date!
210
+ - Sodium: 0.6.0 (latest)
211
+ - Lithium: 0.12.0 (latest)
212
+ - Iris: 1.8.0 (latest)
213
+
214
+ No updates available.
215
+ ```
216
+
217
+ ## 🔍 How It Works
218
+
219
+ ### Version Detection
220
+ 1. Reads your current Minecraft version and loader from `mcconfig.json`
221
+ 2. Scans installed mods in `mods/` directory
222
+ 3. Queries Modrinth API for latest compatible versions
223
+ 4. Compares versions and shows available updates
224
+
225
+ ### Compatibility Checking
226
+ Ensures updates are compatible with:
227
+ - Your Minecraft version
228
+ - Your mod loader (Fabric/Forge)
229
+ - Other installed mods (dependency checking)
230
+
231
+ ### Safe Upgrade Process
232
+ 1. Downloads new version first
233
+ 2. Verifies download integrity
234
+ 3. Backs up old version (temporarily)
235
+ 4. Installs new version
236
+ 5. Removes old version
237
+ 6. Updates instance configuration
238
+
239
+ ## 🎯 Use Cases
240
+
241
+ ### Monthly Maintenance
242
+ ```bash
243
+ # Check for updates regularly
244
+ cd my-instance
245
+ clicraft upgrade
246
+ # Select "All mods"
247
+ ```
248
+
249
+ ### After Minecraft Update
250
+ ```bash
251
+ # Upgrade Minecraft first
252
+ clicraft upgrade
253
+ # Select "Minecraft version"
254
+
255
+ # Then update mods for new version
256
+ clicraft upgrade
257
+ # Select "All mods"
258
+ ```
259
+
260
+ ### Fix Mod Issues
261
+ ```bash
262
+ # Force reinstall problematic mod
263
+ clicraft upgrade sodium --force
264
+ ```
265
+
266
+ ### Keep Loader Updated
267
+ ```bash
268
+ # Update Fabric/Forge
269
+ clicraft upgrade
270
+ # Select "Mod loader"
271
+ ```
272
+
273
+ ### Selective Updates
274
+ ```bash
275
+ # Update only specific mods
276
+ clicraft upgrade sodium
277
+ clicraft upgrade lithium
278
+ # Leave other mods as-is
279
+ ```
280
+
281
+ ## ⚙️ Version Management
282
+
283
+ ### Semantic Versioning
284
+ Mods typically use semantic versioning: `MAJOR.MINOR.PATCH`
285
+
286
+ - **Patch** (0.5.0 → 0.5.1): Bug fixes, safe to upgrade
287
+ - **Minor** (0.5.0 → 0.6.0): New features, usually safe
288
+ - **Major** (0.5.0 → 1.0.0): Breaking changes, test carefully
289
+
290
+ ### Version Compatibility
291
+
292
+ ```bash
293
+ # Check compatibility before upgrading
294
+ clicraft info --verbose
295
+ # Note Minecraft and loader versions
296
+
297
+ clicraft upgrade
298
+ # Upgrades respect compatibility
299
+ ```
300
+
301
+ ## 📋 Backup Recommendations
302
+
303
+ Before upgrading, backup your instance:
304
+
305
+ ```bash
306
+ # Create backup
307
+ cd ..
308
+ tar -czf my-instance-backup.tar.gz my-instance/
309
+
310
+ # Then upgrade
311
+ cd my-instance
312
+ clicraft upgrade
313
+ ```
314
+
315
+ Or backup just your worlds:
316
+ ```bash
317
+ cd my-instance
318
+ tar -czf saves-backup.tar.gz saves/
319
+ ```
320
+
321
+ ## ⚠️ Common Issues
322
+
323
+ ### "No updates available"
324
+ All mods are already at latest versions:
325
+ - This is good! Nothing to do.
326
+ - Use `--force` to reinstall anyway
327
+
328
+ ### "Incompatible version"
329
+ The latest mod version doesn't support your Minecraft version:
330
+ - Upgrade Minecraft first
331
+ - Or wait for mod to be updated
332
+ - Or use an older Minecraft version
333
+
334
+ ### "Download failed"
335
+ Network or Modrinth issues:
336
+ - Check internet connection
337
+ - Try again later
338
+ - Check Modrinth status
339
+
340
+ ### "Mod not found"
341
+ The mod isn't in your instance:
342
+ ```bash
343
+ # Check installed mods
344
+ clicraft info
345
+
346
+ # Install it first
347
+ clicraft install sodium
348
+ ```
349
+
350
+ ### Broken After Upgrade
351
+ If the game doesn't work after upgrading:
352
+ ```bash
353
+ # Restore from backup
354
+ cd ..
355
+ rm -rf my-instance
356
+ tar -xzf my-instance-backup.tar.gz
357
+
358
+ # Or reinstall problematic mod
359
+ cd my-instance
360
+ rm mods/problematic-mod*.jar
361
+ clicraft install problematic-mod
362
+ ```
363
+
364
+ ## 💡 Best Practices
365
+
366
+ ### 1. Check Before Upgrading
367
+ ```bash
368
+ clicraft info
369
+ clicraft upgrade # Just to see what's available
370
+ # Exit without upgrading to review
371
+ ```
372
+
373
+ ### 2. Read Changelogs
374
+ Review what changed before upgrading:
375
+ - Look at mod pages on Modrinth
376
+ - Check for breaking changes
377
+ - Read about new features
378
+
379
+ ### 3. Upgrade Gradually
380
+ Don't upgrade everything at once:
381
+ ```bash
382
+ # Upgrade one mod
383
+ clicraft upgrade sodium
384
+
385
+ # Test the game
386
+ clicraft launch
387
+
388
+ # If OK, upgrade another
389
+ clicraft upgrade lithium
390
+ ```
391
+
392
+ ### 4. Test After Upgrades
393
+ ```bash
394
+ # After upgrading
395
+ clicraft upgrade
396
+
397
+ # Test launch
398
+ clicraft launch --offline
399
+
400
+ # Check everything works
401
+ # Then play normally
402
+ ```
403
+
404
+ ### 5. Keep Loader Updated
405
+ Update your mod loader regularly:
406
+ ```bash
407
+ # Every few weeks
408
+ clicraft upgrade
409
+ # Select "Mod loader"
410
+ ```
411
+
412
+ ## 🔄 Downgrading
413
+
414
+ To downgrade a mod, manually remove and reinstall:
415
+
416
+ ```bash
417
+ # Remove current version
418
+ rm mods/sodium-*.jar
419
+
420
+ # Install older version
421
+ # (manually download from Modrinth)
422
+ # or wait for clicraft downgrade support
423
+ ```
424
+
425
+ ## 📊 Update Frequency
426
+
427
+ How often to run upgrades:
428
+
429
+ - **Performance mods**: Check weekly (often updated)
430
+ - **Stable mods**: Check monthly
431
+ - **Mod loader**: Check bi-weekly
432
+ - **Minecraft**: Upgrade when stable versions release
433
+
434
+ ## 🎮 Minecraft Version Upgrades
435
+
436
+ ### Careful Upgrading
437
+ Upgrading Minecraft version can break mods:
438
+
439
+ ```bash
440
+ # Before upgrading Minecraft
441
+ clicraft info --verbose > pre-upgrade-info.txt
442
+
443
+ # Upgrade Minecraft
444
+ clicraft upgrade
445
+ # Select "Minecraft version"
446
+
447
+ # Test each mod
448
+ clicraft launch --offline
449
+
450
+ # Some mods may not work - reinstall
451
+ clicraft upgrade # To get compatible versions
452
+ ```
453
+
454
+ ### Rolling Back
455
+ If Minecraft upgrade breaks things:
456
+ - Restore from backup
457
+ - Or manually edit `mcconfig.json`:
458
+
459
+ ```json
460
+ {
461
+ "minecraftVersion": "1.20.1" // Change back
462
+ }
463
+ ```
464
+
465
+ Then reinstall mods for old version.
466
+
467
+ ## 📚 Related Commands
468
+
469
+ - [`clicraft install`](install.md) - Install mods before upgrading
470
+ - [`clicraft info`](info.md) - Check current versions
471
+ - [`clicraft search`](search.md) - Find mods to upgrade to
472
+ - [`clicraft create`](create.md) - Instance with specific versions
473
+
474
+ ## 🔍 Version Checking
475
+
476
+ Check versions without upgrading:
477
+
478
+ ```bash
479
+ # Current versions
480
+ clicraft info
481
+
482
+ # Available versions (via search)
483
+ clicraft search sodium --version 1.21.1
484
+ ```
485
+
486
+ ## 🆘 Troubleshooting
487
+
488
+ ### Upgrade Stuck
489
+ If upgrade hangs:
490
+ - Press Ctrl+C to cancel
491
+ - Check network connection
492
+ - Try again with `--verbose`
493
+
494
+ ### Partial Upgrade
495
+ If some mods upgrade but others fail:
496
+ - Check `clicraft info` to see what upgraded
497
+ - Try upgrading failed mods individually
498
+ - Use `--verbose` to see errors
499
+
500
+ ### Game Won't Launch After Upgrade
501
+ - Check logs: `cat logs/latest.log`
502
+ - Check mod compatibility
503
+ - Restore from backup
504
+ - Downgrade problematic mods
505
+
506
+ ## 🔗 See Also
507
+
508
+ - [Commands Overview](../commands.md)
509
+ - [Configuration Guide](../configuration.md)
510
+ - [Install Command](install.md)
511
+ - [Info Command](info.md)
512
+
513
+ ---
514
+
515
+ [← Back to Commands](../commands.md)