mwalajs 1.1.21 → 1.1.23

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.
Files changed (2) hide show
  1. package/bin/mwala.mjs +72 -1
  2. package/package.json +1 -1
package/bin/mwala.mjs CHANGED
@@ -262,9 +262,14 @@ ${boxBot}
262
262
  ${cyan}Import:${reset}
263
263
  ${cyan}mwala db:import${reset} users.csv users
264
264
  ${cyan}mwala db:import${reset} backup.sql users
265
+ ${cyan}mwala db:import${reset} backup.json users
266
+
267
+ ${line}
265
268
 
266
269
  ${cyan}Export:${reset}
267
270
  ${cyan}mwala db:export${reset} users users.json
271
+ ${cyan}mwala db:export${reset} users users.csv
272
+ ${cyan}mwala db:export${reset} users users.sql
268
273
 
269
274
  ${gray}Tip:${reset} CSV/JSON = data only • SQL = structure + data
270
275
 
@@ -300,7 +305,7 @@ ${line}
300
305
  ${line}
301
306
 
302
307
  ${boxTop}
303
- ${bright}║ 🧠 DB FORMATTER ENGINE (NEW CORE) ║${reset}
308
+ ${bright}║ DB FORMATTER ENGINE (NEW CORE) ║${reset}
304
309
  ${boxBot}
305
310
 
306
311
  ${green}mwala db:merge-separate <file.sql>${reset}
@@ -320,10 +325,76 @@ ${boxBot}
320
325
 
321
326
  ${line}
322
327
 
328
+ ${line}
329
+
330
+ ${boxTop}
331
+ ${bright}║ AUTO SYSTEM (⚡ PM2 + CRON) ║${reset}
332
+ ${boxBot}
333
+
334
+ ${red}mwala autodb-backup init${reset}
335
+ → Setup backup config (email, interval, encryption)
336
+
337
+ ${red}mwala autodb-backup start${reset}
338
+ → Run backup in foreground (dev mode)
339
+
340
+ ${red}mwala autodb-backup stop${reset}
341
+ → Stop running backup process
342
+
343
+ ${red}mwala autodb-backup status${reset}
344
+ → Show backup system status
345
+
346
+ ${red}mwala autodb-backup logs${reset}
347
+ → View backup logs
348
+
349
+ ${red}mwala autodb-backup decrypt <file.enc>${reset}
350
+ → Decrypt single backup file
351
+
352
+ ${red}mwala autodb-backup decrypt:folder <dir>${reset}
353
+ → Decrypt all backups in folder
354
+
355
+ ${line}
356
+
357
+ ${boxTop}
358
+ ${bright}║ PM2 PRODUCTION COMMANDS ║${reset}
359
+ ${boxBot}
360
+
361
+ ${green}pm2 start mwala --name mwala-db-autobackup -- autodb-backup start${reset}
362
+ → Start in production (GLOBAL CLI)
363
+
364
+ ${green}pm2 start bin/mwala.mjs --name mwala-db-autobackup -- autodb-backup start${reset}
365
+ → Start in production (LOCAL PROJECT)
366
+
367
+ ${green}pm2 save${reset}
368
+ → Save processes for reboot auto-start
369
+
370
+ ${green}pm2 startup${reset}
371
+ → Enable system service (boot auto-start)
372
+
373
+ ${green}pm2 logs mwala-db-autobackup${reset}
374
+ → Live monitoring logs
375
+
376
+ ${green}pm2 restart mwala-db-autobackup${reset}
377
+ → Restart backup service
378
+
379
+ ${green}pm2 stop mwala-db-autobackup${reset}
380
+ → Stop service
381
+
382
+ ${line}
383
+
384
+
323
385
  ${boxTop}
324
386
  ${bright}║ DEVELOPER NOTES ║${reset}
325
387
  ${boxBot}
326
388
 
389
+
390
+ Here are 5 clean help-page descriptions with link included:
391
+
392
+ Configure your Gmail App Password for secure email automation and backups: https://myaccount.google.com/apppasswords
393
+ Enable 2-Step Verification to unlock secure app access for your Google account: https://myaccount.google.com/security
394
+ Use MwalaJS Auto Backup system to schedule and manage database backups easily via CLI commands.
395
+ Learn how to run MwalaJS in production using PM2 for stable background processes and auto-restart support.
396
+ Access full MwalaJS documentation and updates for advanced CLI, database tools, and automation features: https://github.com/mwala400/mwalajs
397
+
327
398
  • Use meaningful backup names (date + description)
328
399
  • Avoid rollback all in production
329
400
  • Prefer SQL for full migrations
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mwalajs",
3
- "version": "1.1.21",
3
+ "version": "1.1.23",
4
4
  "description": "MwalaJS Framework CLI Tool and Web Framework for Backend and Frontend Development.",
5
5
  "type": "module",
6
6
  "main": "app.mjs",