mwalajs 1.1.22 → 1.1.24

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 +35 -0
  2. package/package.json +1 -1
package/bin/mwala.mjs CHANGED
@@ -267,6 +267,8 @@ ${boxBot}
267
267
  ${line}
268
268
 
269
269
  ${cyan}Export:${reset}
270
+ Exports table to specified format (CSV, JSON, SQL)
271
+ code structure: mwala db:export <table> <file.(csv|json|sql)>
270
272
  ${cyan}mwala db:export${reset} users users.json
271
273
  ${cyan}mwala db:export${reset} users users.csv
272
274
  ${cyan}mwala db:export${reset} users users.sql
@@ -275,6 +277,30 @@ ${line}
275
277
 
276
278
  ${line}
277
279
 
280
+ ${blue}mwala db:export-all csv${reset}
281
+ → Export all tables to CSV format
282
+
283
+ ${blue}mwala db:export-all json${reset}
284
+ → Export all tables to JSON format
285
+
286
+ ${blue}mwala db:export-all sql${reset}
287
+ → Export all tables to SQL dump
288
+
289
+ ${blue}mwala db:export-all all${reset}
290
+ → Export everything (CSV + JSON + SQL)
291
+
292
+ ${gray}Output:${reset}
293
+ exports/YYYY-MM-DD/
294
+ → Each table saved as separate file
295
+
296
+ ${gray}Auto feature:${reset}
297
+ ✔ Creates export folder by date
298
+ ✔ Exports all database tables
299
+ ✔ Auto-generates ZIP archive
300
+ ✔ Ready for backup / migration / sharing
301
+
302
+ ${line}
303
+
278
304
  ${boxTop}
279
305
  ${bright}║ BACKUP & SEEDING ║${reset}
280
306
  ${boxBot}
@@ -386,6 +412,15 @@ ${boxTop}
386
412
  ${bright}║ DEVELOPER NOTES ║${reset}
387
413
  ${boxBot}
388
414
 
415
+
416
+ Here are 5 clean help-page descriptions with link included:
417
+
418
+ Configure your Gmail App Password for secure email automation and backups: https://myaccount.google.com/apppasswords
419
+ Enable 2-Step Verification to unlock secure app access for your Google account: https://myaccount.google.com/security
420
+ Use MwalaJS Auto Backup system to schedule and manage database backups easily via CLI commands.
421
+ Learn how to run MwalaJS in production using PM2 for stable background processes and auto-restart support.
422
+ Access full MwalaJS documentation and updates for advanced CLI, database tools, and automation features: https://github.com/mwala400/mwalajs
423
+
389
424
  • Use meaningful backup names (date + description)
390
425
  • Avoid rollback all in production
391
426
  • Prefer SQL for full migrations
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mwalajs",
3
- "version": "1.1.22",
3
+ "version": "1.1.24",
4
4
  "description": "MwalaJS Framework CLI Tool and Web Framework for Backend and Frontend Development.",
5
5
  "type": "module",
6
6
  "main": "app.mjs",