@internxt/cli 1.5.8 → 1.6.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.
Files changed (38) hide show
  1. package/README.md +124 -94
  2. package/dist/commands/login-legacy.d.ts +24 -0
  3. package/dist/commands/login-legacy.js +175 -0
  4. package/dist/commands/login.d.ts +3 -9
  5. package/dist/commands/login.js +18 -132
  6. package/dist/commands/trash-file.js +1 -1
  7. package/dist/commands/trash-folder.js +1 -1
  8. package/dist/commands/upload-file.d.ts +2 -1
  9. package/dist/commands/whoami.js +1 -1
  10. package/dist/hooks/prerun/auth_check.js +2 -1
  11. package/dist/services/auth.service.d.ts +1 -2
  12. package/dist/services/auth.service.js +11 -26
  13. package/dist/services/crypto.service.js +1 -1
  14. package/dist/services/database/drive-file/drive-file.domain.js +1 -0
  15. package/dist/services/database/drive-folder/drive-folder.domain.js +1 -0
  16. package/dist/services/drive/drive-file.service.js +1 -0
  17. package/dist/services/universal-link.service.d.ts +10 -0
  18. package/dist/services/universal-link.service.js +85 -0
  19. package/dist/types/command.types.d.ts +0 -2
  20. package/dist/types/drive.types.d.ts +2 -0
  21. package/dist/types/webdav.types.d.ts +0 -1
  22. package/dist/utils/drive.utils.js +3 -0
  23. package/dist/utils/logger.utils.js +10 -0
  24. package/dist/utils/webdav.utils.d.ts +12 -10
  25. package/dist/utils/webdav.utils.js +39 -29
  26. package/dist/webdav/handlers/DELETE.handler.js +5 -5
  27. package/dist/webdav/handlers/GET.handler.js +6 -9
  28. package/dist/webdav/handlers/HEAD.handler.js +5 -10
  29. package/dist/webdav/handlers/MKCOL.handler.js +4 -4
  30. package/dist/webdav/handlers/MOVE.handler.js +19 -17
  31. package/dist/webdav/handlers/OPTIONS.handler.js +3 -3
  32. package/dist/webdav/handlers/PROPFIND.handler.js +7 -31
  33. package/dist/webdav/handlers/PUT.handler.d.ts +2 -0
  34. package/dist/webdav/handlers/PUT.handler.js +10 -8
  35. package/dist/webdav/services/webdav-folder.service.js +5 -4
  36. package/dist/webdav/webdav-server.js +1 -0
  37. package/oclif.manifest.json +60 -3
  38. package/package.json +23 -22
package/README.md CHANGED
@@ -52,7 +52,7 @@ $ npm install -g @internxt/cli
52
52
  $ internxt COMMAND
53
53
  running command...
54
54
  $ internxt (--version)
55
- @internxt/cli/1.5.8 linux-x64 node-v22.21.1
55
+ @internxt/cli/1.6.0 linux-x64 node-v22.21.1
56
56
  $ internxt --help [COMMAND]
57
57
  USAGE
58
58
  $ internxt COMMAND
@@ -79,6 +79,7 @@ USAGE
79
79
  * [`internxt download file`](#internxt-download-file)
80
80
  * [`internxt list`](#internxt-list)
81
81
  * [`internxt login`](#internxt-login)
82
+ * [`internxt login-legacy`](#internxt-login-legacy)
82
83
  * [`internxt logout`](#internxt-logout)
83
84
  * [`internxt logs`](#internxt-logs)
84
85
  * [`internxt move-file`](#internxt-move-file)
@@ -125,7 +126,7 @@ EXAMPLES
125
126
  $ internxt add-cert
126
127
  ```
127
128
 
128
- _See code: [src/commands/add-cert.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/add-cert.ts)_
129
+ _See code: [src/commands/add-cert.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/add-cert.ts)_
129
130
 
130
131
  ## `internxt autocomplete [SHELL]`
131
132
 
@@ -136,7 +137,7 @@ USAGE
136
137
  $ internxt autocomplete [SHELL] [-r]
137
138
 
138
139
  ARGUMENTS
139
- SHELL (zsh|bash|powershell) Shell type
140
+ [SHELL] (zsh|bash|powershell) Shell type
140
141
 
141
142
  FLAGS
142
143
  -r, --refresh-cache Refresh cache (ignores displaying instructions)
@@ -156,7 +157,7 @@ EXAMPLES
156
157
  $ internxt autocomplete --refresh-cache
157
158
  ```
158
159
 
159
- _See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.36/src/commands/autocomplete/index.ts)_
160
+ _See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.39/src/commands/autocomplete/index.ts)_
160
161
 
161
162
  ## `internxt config`
162
163
 
@@ -176,7 +177,7 @@ EXAMPLES
176
177
  $ internxt config
177
178
  ```
178
179
 
179
- _See code: [src/commands/config.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/config.ts)_
180
+ _See code: [src/commands/config.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/config.ts)_
180
181
 
181
182
  ## `internxt create-folder`
182
183
 
@@ -192,8 +193,8 @@ FLAGS
192
193
  -n, --name=<value> The new name for the folder
193
194
 
194
195
  HELPER FLAGS
195
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
196
- the console and will throw errors directly.
196
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
197
+ not request input through the console and will throw errors directly.
197
198
 
198
199
  GLOBAL FLAGS
199
200
  --json Format output as json.
@@ -205,7 +206,7 @@ EXAMPLES
205
206
  $ internxt create-folder
206
207
  ```
207
208
 
208
- _See code: [src/commands/create-folder.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/create-folder.ts)_
209
+ _See code: [src/commands/create-folder.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/create-folder.ts)_
209
210
 
210
211
  ## `internxt delete-permanently-file`
211
212
 
@@ -219,8 +220,8 @@ FLAGS
219
220
  -i, --id=<value> The file id to be permanently deleted.
220
221
 
221
222
  HELPER FLAGS
222
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
223
- the console and will throw errors directly.
223
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
224
+ not request input through the console and will throw errors directly.
224
225
 
225
226
  GLOBAL FLAGS
226
227
  --json Format output as json.
@@ -235,7 +236,7 @@ EXAMPLES
235
236
  $ internxt delete-permanently-file
236
237
  ```
237
238
 
238
- _See code: [src/commands/delete-permanently-file.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/delete-permanently-file.ts)_
239
+ _See code: [src/commands/delete-permanently-file.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/delete-permanently-file.ts)_
239
240
 
240
241
  ## `internxt delete-permanently-folder`
241
242
 
@@ -249,8 +250,8 @@ FLAGS
249
250
  -i, --id=<value> The folder id to be permanently deleted.
250
251
 
251
252
  HELPER FLAGS
252
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
253
- the console and will throw errors directly.
253
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
254
+ not request input through the console and will throw errors directly.
254
255
 
255
256
  GLOBAL FLAGS
256
257
  --json Format output as json.
@@ -265,7 +266,7 @@ EXAMPLES
265
266
  $ internxt delete-permanently-folder
266
267
  ```
267
268
 
268
- _See code: [src/commands/delete-permanently-folder.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/delete-permanently-folder.ts)_
269
+ _See code: [src/commands/delete-permanently-folder.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/delete-permanently-folder.ts)_
269
270
 
270
271
  ## `internxt delete permanently file`
271
272
 
@@ -279,8 +280,8 @@ FLAGS
279
280
  -i, --id=<value> The file id to be permanently deleted.
280
281
 
281
282
  HELPER FLAGS
282
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
283
- the console and will throw errors directly.
283
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
284
+ not request input through the console and will throw errors directly.
284
285
 
285
286
  GLOBAL FLAGS
286
287
  --json Format output as json.
@@ -307,8 +308,8 @@ FLAGS
307
308
  -i, --id=<value> The folder id to be permanently deleted.
308
309
 
309
310
  HELPER FLAGS
310
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
311
- the console and will throw errors directly.
311
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
312
+ not request input through the console and will throw errors directly.
312
313
 
313
314
  GLOBAL FLAGS
314
315
  --json Format output as json.
@@ -337,8 +338,8 @@ FLAGS
337
338
  -o, --overwrite Overwrite the file if it already exists
338
339
 
339
340
  HELPER FLAGS
340
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
341
- the console and will throw errors directly.
341
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
342
+ not request input through the console and will throw errors directly.
342
343
 
343
344
  GLOBAL FLAGS
344
345
  --json Format output as json.
@@ -354,7 +355,7 @@ EXAMPLES
354
355
  $ internxt download-file
355
356
  ```
356
357
 
357
- _See code: [src/commands/download-file.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/download-file.ts)_
358
+ _See code: [src/commands/download-file.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/download-file.ts)_
358
359
 
359
360
  ## `internxt download file`
360
361
 
@@ -370,8 +371,8 @@ FLAGS
370
371
  -o, --overwrite Overwrite the file if it already exists
371
372
 
372
373
  HELPER FLAGS
373
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
374
- the console and will throw errors directly.
374
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
375
+ not request input through the console and will throw errors directly.
375
376
 
376
377
  GLOBAL FLAGS
377
378
  --json Format output as json.
@@ -400,8 +401,8 @@ FLAGS
400
401
  -i, --id=<value> The folder id to list. Leave empty for the root folder.
401
402
 
402
403
  HELPER FLAGS
403
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
404
- the console and will throw errors directly.
404
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
405
+ not request input through the console and will throw errors directly.
405
406
 
406
407
  GLOBAL FLAGS
407
408
  --json Format output as json.
@@ -413,38 +414,67 @@ EXAMPLES
413
414
  $ internxt list
414
415
  ```
415
416
 
416
- _See code: [src/commands/list.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/list.ts)_
417
+ _See code: [src/commands/list.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/list.ts)_
417
418
 
418
419
  ## `internxt login`
419
420
 
420
- Logs into an Internxt account. If the account is two-factor protected, then an extra code will be required.
421
+ Logs into your Internxt account using the web-based login flow. A temporary local server is started to securely receive the authentication response.
421
422
 
422
423
  ```
423
424
  USAGE
424
- $ internxt login [--json] [-x] [-e <value>] [-p <value>] [-w 123456] [-t token]
425
+ $ internxt login [--json] [-h <value>] [-p <value>]
425
426
 
426
427
  FLAGS
427
- -e, --email=<value> The email to log in
428
- -p, --password=<value> The plain password to log in
429
- -t, --twofactortoken=token The TOTP secret token. It is used to generate a TOTP code if needed. It has prority over
430
- the two factor code flag.
431
- -w, --twofactor=123456 The two factor auth code (TOTP).
428
+ -h, --host=<value> [env: INXT_LOGIN_SERVER_HOST] IP address of the machine where the CLI is running. If you are
429
+ opening the login page in a browser on another device, set this to the IP address of the machine
430
+ running the CLI. Defaults to 127.0.0.1.
431
+ -p, --port=<value> [env: INXT_LOGIN_SERVER_PORT] Port used by the temporary local server to handle the login
432
+ callback. If not specified, a random available port will be used automatically.
433
+
434
+ GLOBAL FLAGS
435
+ --json Format output as json.
436
+
437
+ DESCRIPTION
438
+ Logs into your Internxt account using the web-based login flow. A temporary local server is started to securely
439
+ receive the authentication response.
440
+
441
+ EXAMPLES
442
+ $ internxt login
443
+ ```
444
+
445
+ _See code: [src/commands/login.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/login.ts)_
446
+
447
+ ## `internxt login-legacy`
448
+
449
+ [Legacy] Logs into an Internxt account using user and password. If the account is two-factor protected, then an extra code will be required.
450
+
451
+ ```
452
+ USAGE
453
+ $ internxt login-legacy [--json] [-x] [-e <value>] [-p <value>] [-w 123456] [-t token]
454
+
455
+ FLAGS
456
+ -e, --email=<value> [env: INXT_USER] The email to log in
457
+ -p, --password=<value> [env: INXT_PASSWORD] The plain password to log in
458
+ -t, --twofactortoken=token [env: INXT_OTPTOKEN] The TOTP secret token. It is used to generate a TOTP code if needed.
459
+ It has prority over the two factor code flag.
460
+ -w, --twofactor=123456 [env: INXT_TWOFACTORCODE] The two factor auth code (TOTP).
432
461
 
433
462
  HELPER FLAGS
434
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
435
- the console and will throw errors directly.
463
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
464
+ not request input through the console and will throw errors directly.
436
465
 
437
466
  GLOBAL FLAGS
438
467
  --json Format output as json.
439
468
 
440
469
  DESCRIPTION
441
- Logs into an Internxt account. If the account is two-factor protected, then an extra code will be required.
470
+ [Legacy] Logs into an Internxt account using user and password. If the account is two-factor protected, then an extra
471
+ code will be required.
442
472
 
443
473
  EXAMPLES
444
- $ internxt login
474
+ $ internxt login-legacy
445
475
  ```
446
476
 
447
- _See code: [src/commands/login.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/login.ts)_
477
+ _See code: [src/commands/login-legacy.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/login-legacy.ts)_
448
478
 
449
479
  ## `internxt logout`
450
480
 
@@ -464,7 +494,7 @@ EXAMPLES
464
494
  $ internxt logout
465
495
  ```
466
496
 
467
- _See code: [src/commands/logout.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/logout.ts)_
497
+ _See code: [src/commands/logout.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/logout.ts)_
468
498
 
469
499
  ## `internxt logs`
470
500
 
@@ -484,7 +514,7 @@ EXAMPLES
484
514
  $ internxt logs
485
515
  ```
486
516
 
487
- _See code: [src/commands/logs.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/logs.ts)_
517
+ _See code: [src/commands/logs.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/logs.ts)_
488
518
 
489
519
  ## `internxt move-file`
490
520
 
@@ -500,8 +530,8 @@ FLAGS
500
530
  -i, --id=<value> The ID of the file to be moved.
501
531
 
502
532
  HELPER FLAGS
503
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
504
- the console and will throw errors directly.
533
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
534
+ not request input through the console and will throw errors directly.
505
535
 
506
536
  GLOBAL FLAGS
507
537
  --json Format output as json.
@@ -516,7 +546,7 @@ EXAMPLES
516
546
  $ internxt move-file
517
547
  ```
518
548
 
519
- _See code: [src/commands/move-file.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/move-file.ts)_
549
+ _See code: [src/commands/move-file.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/move-file.ts)_
520
550
 
521
551
  ## `internxt move-folder`
522
552
 
@@ -532,8 +562,8 @@ FLAGS
532
562
  -i, --id=<value> The ID of the folder to be moved.
533
563
 
534
564
  HELPER FLAGS
535
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
536
- the console and will throw errors directly.
565
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
566
+ not request input through the console and will throw errors directly.
537
567
 
538
568
  GLOBAL FLAGS
539
569
  --json Format output as json.
@@ -548,7 +578,7 @@ EXAMPLES
548
578
  $ internxt move-folder
549
579
  ```
550
580
 
551
- _See code: [src/commands/move-folder.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/move-folder.ts)_
581
+ _See code: [src/commands/move-folder.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/move-folder.ts)_
552
582
 
553
583
  ## `internxt move file`
554
584
 
@@ -564,8 +594,8 @@ FLAGS
564
594
  -i, --id=<value> The ID of the file to be moved.
565
595
 
566
596
  HELPER FLAGS
567
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
568
- the console and will throw errors directly.
597
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
598
+ not request input through the console and will throw errors directly.
569
599
 
570
600
  GLOBAL FLAGS
571
601
  --json Format output as json.
@@ -594,8 +624,8 @@ FLAGS
594
624
  -i, --id=<value> The ID of the folder to be moved.
595
625
 
596
626
  HELPER FLAGS
597
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
598
- the console and will throw errors directly.
627
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
628
+ not request input through the console and will throw errors directly.
599
629
 
600
630
  GLOBAL FLAGS
601
631
  --json Format output as json.
@@ -623,8 +653,8 @@ FLAGS
623
653
  -n, --name=<value> The new name for the file.
624
654
 
625
655
  HELPER FLAGS
626
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
627
- the console and will throw errors directly.
656
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
657
+ not request input through the console and will throw errors directly.
628
658
 
629
659
  GLOBAL FLAGS
630
660
  --json Format output as json.
@@ -639,7 +669,7 @@ EXAMPLES
639
669
  $ internxt rename-file
640
670
  ```
641
671
 
642
- _See code: [src/commands/rename-file.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/rename-file.ts)_
672
+ _See code: [src/commands/rename-file.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/rename-file.ts)_
643
673
 
644
674
  ## `internxt rename-folder`
645
675
 
@@ -654,8 +684,8 @@ FLAGS
654
684
  -n, --name=<value> The new name for the folder.
655
685
 
656
686
  HELPER FLAGS
657
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
658
- the console and will throw errors directly.
687
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
688
+ not request input through the console and will throw errors directly.
659
689
 
660
690
  GLOBAL FLAGS
661
691
  --json Format output as json.
@@ -670,7 +700,7 @@ EXAMPLES
670
700
  $ internxt rename-folder
671
701
  ```
672
702
 
673
- _See code: [src/commands/rename-folder.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/rename-folder.ts)_
703
+ _See code: [src/commands/rename-folder.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/rename-folder.ts)_
674
704
 
675
705
  ## `internxt rename file`
676
706
 
@@ -685,8 +715,8 @@ FLAGS
685
715
  -n, --name=<value> The new name for the file.
686
716
 
687
717
  HELPER FLAGS
688
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
689
- the console and will throw errors directly.
718
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
719
+ not request input through the console and will throw errors directly.
690
720
 
691
721
  GLOBAL FLAGS
692
722
  --json Format output as json.
@@ -714,8 +744,8 @@ FLAGS
714
744
  -n, --name=<value> The new name for the folder.
715
745
 
716
746
  HELPER FLAGS
717
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
718
- the console and will throw errors directly.
747
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
748
+ not request input through the console and will throw errors directly.
719
749
 
720
750
  GLOBAL FLAGS
721
751
  --json Format output as json.
@@ -742,8 +772,8 @@ FLAGS
742
772
  -f, --force It forces the trash to be emptied without confirmation.
743
773
 
744
774
  HELPER FLAGS
745
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
746
- the console and will throw errors directly.
775
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
776
+ not request input through the console and will throw errors directly.
747
777
 
748
778
  GLOBAL FLAGS
749
779
  --json Format output as json.
@@ -758,7 +788,7 @@ EXAMPLES
758
788
  $ internxt trash-clear
759
789
  ```
760
790
 
761
- _See code: [src/commands/trash-clear.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/trash-clear.ts)_
791
+ _See code: [src/commands/trash-clear.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/trash-clear.ts)_
762
792
 
763
793
  ## `internxt trash-file`
764
794
 
@@ -772,8 +802,8 @@ FLAGS
772
802
  -i, --id=<value> The file id to be trashed.
773
803
 
774
804
  HELPER FLAGS
775
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
776
- the console and will throw errors directly.
805
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
806
+ not request input through the console and will throw errors directly.
777
807
 
778
808
  GLOBAL FLAGS
779
809
  --json Format output as json.
@@ -788,7 +818,7 @@ EXAMPLES
788
818
  $ internxt trash-file
789
819
  ```
790
820
 
791
- _See code: [src/commands/trash-file.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/trash-file.ts)_
821
+ _See code: [src/commands/trash-file.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/trash-file.ts)_
792
822
 
793
823
  ## `internxt trash-folder`
794
824
 
@@ -802,8 +832,8 @@ FLAGS
802
832
  -i, --id=<value> The folder id to be trashed.
803
833
 
804
834
  HELPER FLAGS
805
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
806
- the console and will throw errors directly.
835
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
836
+ not request input through the console and will throw errors directly.
807
837
 
808
838
  GLOBAL FLAGS
809
839
  --json Format output as json.
@@ -818,7 +848,7 @@ EXAMPLES
818
848
  $ internxt trash-folder
819
849
  ```
820
850
 
821
- _See code: [src/commands/trash-folder.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/trash-folder.ts)_
851
+ _See code: [src/commands/trash-folder.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/trash-folder.ts)_
822
852
 
823
853
  ## `internxt trash-list`
824
854
 
@@ -844,7 +874,7 @@ EXAMPLES
844
874
  $ internxt trash-list
845
875
  ```
846
876
 
847
- _See code: [src/commands/trash-list.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/trash-list.ts)_
877
+ _See code: [src/commands/trash-list.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/trash-list.ts)_
848
878
 
849
879
  ## `internxt trash-restore-file`
850
880
 
@@ -859,8 +889,8 @@ FLAGS
859
889
  -i, --id=<value> The file id to be restored from the trash.
860
890
 
861
891
  HELPER FLAGS
862
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
863
- the console and will throw errors directly.
892
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
893
+ not request input through the console and will throw errors directly.
864
894
 
865
895
  GLOBAL FLAGS
866
896
  --json Format output as json.
@@ -875,7 +905,7 @@ EXAMPLES
875
905
  $ internxt trash-restore-file
876
906
  ```
877
907
 
878
- _See code: [src/commands/trash-restore-file.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/trash-restore-file.ts)_
908
+ _See code: [src/commands/trash-restore-file.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/trash-restore-file.ts)_
879
909
 
880
910
  ## `internxt trash-restore-folder`
881
911
 
@@ -890,8 +920,8 @@ FLAGS
890
920
  -i, --id=<value> The folder id to be restored from the trash.
891
921
 
892
922
  HELPER FLAGS
893
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
894
- the console and will throw errors directly.
923
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
924
+ not request input through the console and will throw errors directly.
895
925
 
896
926
  GLOBAL FLAGS
897
927
  --json Format output as json.
@@ -906,7 +936,7 @@ EXAMPLES
906
936
  $ internxt trash-restore-folder
907
937
  ```
908
938
 
909
- _See code: [src/commands/trash-restore-folder.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/trash-restore-folder.ts)_
939
+ _See code: [src/commands/trash-restore-folder.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/trash-restore-folder.ts)_
910
940
 
911
941
  ## `internxt trash clear`
912
942
 
@@ -920,8 +950,8 @@ FLAGS
920
950
  -f, --force It forces the trash to be emptied without confirmation.
921
951
 
922
952
  HELPER FLAGS
923
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
924
- the console and will throw errors directly.
953
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
954
+ not request input through the console and will throw errors directly.
925
955
 
926
956
  GLOBAL FLAGS
927
957
  --json Format output as json.
@@ -948,8 +978,8 @@ FLAGS
948
978
  -i, --id=<value> The file id to be trashed.
949
979
 
950
980
  HELPER FLAGS
951
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
952
- the console and will throw errors directly.
981
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
982
+ not request input through the console and will throw errors directly.
953
983
 
954
984
  GLOBAL FLAGS
955
985
  --json Format output as json.
@@ -976,8 +1006,8 @@ FLAGS
976
1006
  -i, --id=<value> The folder id to be trashed.
977
1007
 
978
1008
  HELPER FLAGS
979
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
980
- the console and will throw errors directly.
1009
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
1010
+ not request input through the console and will throw errors directly.
981
1011
 
982
1012
  GLOBAL FLAGS
983
1013
  --json Format output as json.
@@ -1029,8 +1059,8 @@ FLAGS
1029
1059
  -i, --id=<value> The file id to be restored from the trash.
1030
1060
 
1031
1061
  HELPER FLAGS
1032
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
1033
- the console and will throw errors directly.
1062
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
1063
+ not request input through the console and will throw errors directly.
1034
1064
 
1035
1065
  GLOBAL FLAGS
1036
1066
  --json Format output as json.
@@ -1058,8 +1088,8 @@ FLAGS
1058
1088
  -i, --id=<value> The folder id to be restored from the trash.
1059
1089
 
1060
1090
  HELPER FLAGS
1061
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
1062
- the console and will throw errors directly.
1091
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
1092
+ not request input through the console and will throw errors directly.
1063
1093
 
1064
1094
  GLOBAL FLAGS
1065
1095
  --json Format output as json.
@@ -1087,8 +1117,8 @@ FLAGS
1087
1117
  -i, --destination=<value> The folder id where the file is going to be uploaded to. Leave empty for the root folder.
1088
1118
 
1089
1119
  HELPER FLAGS
1090
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
1091
- the console and will throw errors directly.
1120
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
1121
+ not request input through the console and will throw errors directly.
1092
1122
 
1093
1123
  GLOBAL FLAGS
1094
1124
  --json Format output as json.
@@ -1103,7 +1133,7 @@ EXAMPLES
1103
1133
  $ internxt upload-file
1104
1134
  ```
1105
1135
 
1106
- _See code: [src/commands/upload-file.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/upload-file.ts)_
1136
+ _See code: [src/commands/upload-file.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/upload-file.ts)_
1107
1137
 
1108
1138
  ## `internxt upload file`
1109
1139
 
@@ -1118,8 +1148,8 @@ FLAGS
1118
1148
  -i, --destination=<value> The folder id where the file is going to be uploaded to. Leave empty for the root folder.
1119
1149
 
1120
1150
  HELPER FLAGS
1121
- -x, --non-interactive Prevents the CLI from being interactive. When enabled, the CLI will not request input through
1122
- the console and will throw errors directly.
1151
+ -x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
1152
+ not request input through the console and will throw errors directly.
1123
1153
 
1124
1154
  GLOBAL FLAGS
1125
1155
  --json Format output as json.
@@ -1158,7 +1188,7 @@ EXAMPLES
1158
1188
  $ internxt webdav status
1159
1189
  ```
1160
1190
 
1161
- _See code: [src/commands/webdav.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/webdav.ts)_
1191
+ _See code: [src/commands/webdav.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/webdav.ts)_
1162
1192
 
1163
1193
  ## `internxt webdav-config`
1164
1194
 
@@ -1186,7 +1216,7 @@ EXAMPLES
1186
1216
  $ internxt webdav-config
1187
1217
  ```
1188
1218
 
1189
- _See code: [src/commands/webdav-config.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/webdav-config.ts)_
1219
+ _See code: [src/commands/webdav-config.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/webdav-config.ts)_
1190
1220
 
1191
1221
  ## `internxt whoami`
1192
1222
 
@@ -1206,7 +1236,7 @@ EXAMPLES
1206
1236
  $ internxt whoami
1207
1237
  ```
1208
1238
 
1209
- _See code: [src/commands/whoami.ts](https://github.com/internxt/cli/blob/v1.5.8/src/commands/whoami.ts)_
1239
+ _See code: [src/commands/whoami.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/whoami.ts)_
1210
1240
  <!-- commandsstop -->
1211
1241
 
1212
1242
  # Current Limitations
@@ -0,0 +1,24 @@
1
+ import { Command } from '@oclif/core';
2
+ export default class LoginLegacy extends Command {
3
+ static readonly args: {};
4
+ static readonly description: string;
5
+ static readonly aliases: never[];
6
+ static readonly examples: string[];
7
+ static readonly flags: {
8
+ email: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
9
+ password: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
10
+ twofactor: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
11
+ twofactortoken: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
12
+ 'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
13
+ };
14
+ static readonly enableJsonFlag = true;
15
+ run: () => Promise<{
16
+ success: boolean;
17
+ message: string;
18
+ login: import("../types/command.types").LoginCredentials;
19
+ }>;
20
+ catch: (error: Error) => Promise<never>;
21
+ private getEmail;
22
+ private getPassword;
23
+ private getTwoFactorCode;
24
+ }