Skip to content

Commit 64f9aec

Browse files
committed
fixed move and trash commands
1 parent 58f0f9d commit 64f9aec

7 files changed

Lines changed: 538 additions & 228 deletions

File tree

README.md

Lines changed: 170 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,20 @@ USAGE
5050
* [`internxt login`](#internxt-login)
5151
* [`internxt logout`](#internxt-logout)
5252
* [`internxt logs`](#internxt-logs)
53-
* [`internxt move`](#internxt-move)
53+
* [`internxt move-file`](#internxt-move-file)
54+
* [`internxt move-folder`](#internxt-move-folder)
55+
* [`internxt move file`](#internxt-move-file-1)
56+
* [`internxt move folder`](#internxt-move-folder-1)
5457
* [`internxt rename`](#internxt-rename)
5558
* [`internxt trash`](#internxt-trash)
5659
* [`internxt trash-clear`](#internxt-trash-clear)
5760
* [`internxt trash-list`](#internxt-trash-list)
58-
* [`internxt trash-restore`](#internxt-trash-restore)
61+
* [`internxt trash-restore-file`](#internxt-trash-restore-file)
62+
* [`internxt trash-restore-folder`](#internxt-trash-restore-folder)
5963
* [`internxt trash clear`](#internxt-trash-clear-1)
6064
* [`internxt trash list`](#internxt-trash-list-1)
61-
* [`internxt trash restore`](#internxt-trash-restore-1)
65+
* [`internxt trash restore file`](#internxt-trash-restore-file-1)
66+
* [`internxt trash restore folder`](#internxt-trash-restore-folder-1)
6267
* [`internxt upload`](#internxt-upload)
6368
* [`internxt webdav ACTION`](#internxt-webdav-action)
6469
* [`internxt webdav-config ACTION`](#internxt-webdav-config-action)
@@ -248,30 +253,113 @@ EXAMPLES
248253

249254
_See code: [src/commands/logs.ts](https://github.com/internxt/cli/blob/v1.3.0/src/commands/logs.ts)_
250255

251-
## `internxt move`
256+
## `internxt move-file`
252257

253-
Move a folder/file into a destination folder.
258+
Move a file into a destination folder.
254259

255260
```
256261
USAGE
257-
$ internxt move [-n] [-i <value>] [-d <value>]
262+
$ internxt move-file [-n] [-i <value>] [-d <value>]
258263
259264
FLAGS
260-
-d, --destination=<value> The destination folder id where the item is going to be moved.
261-
-i, --id=<value> The item id to be moved (it can be a file id or a folder id).
265+
-d, --destination=<value> The destination folder id where the file is going to be moved.
266+
-i, --id=<value> The file id to be moved.
262267
263268
HELPER FLAGS
264269
-n, --non-interactive Blocks the cli from being interactive. If passed, the cli will not request data through the
265270
console and will throw errors directly
266271
267272
DESCRIPTION
268-
Move a folder/file into a destination folder.
273+
Move a file into a destination folder.
274+
275+
ALIASES
276+
$ internxt move file
277+
278+
EXAMPLES
279+
$ internxt move-file
280+
```
281+
282+
_See code: [src/commands/move-file.ts](https://github.com/internxt/cli/blob/v1.3.0/src/commands/move-file.ts)_
283+
284+
## `internxt move-folder`
285+
286+
Move a folder into a destination folder.
287+
288+
```
289+
USAGE
290+
$ internxt move-folder [-n] [-i <value>] [-d <value>]
291+
292+
FLAGS
293+
-d, --destination=<value> The destination folder id where the folder is going to be moved.
294+
-i, --id=<value> The folder id to be moved.
295+
296+
HELPER FLAGS
297+
-n, --non-interactive Blocks the cli from being interactive. If passed, the cli will not request data through the
298+
console and will throw errors directly
299+
300+
DESCRIPTION
301+
Move a folder into a destination folder.
302+
303+
ALIASES
304+
$ internxt move folder
269305
270306
EXAMPLES
271-
$ internxt move
307+
$ internxt move-folder
272308
```
273309

274-
_See code: [src/commands/move.ts](https://github.com/internxt/cli/blob/v1.3.0/src/commands/move.ts)_
310+
_See code: [src/commands/move-folder.ts](https://github.com/internxt/cli/blob/v1.3.0/src/commands/move-folder.ts)_
311+
312+
## `internxt move file`
313+
314+
Move a file into a destination folder.
315+
316+
```
317+
USAGE
318+
$ internxt move file [-n] [-i <value>] [-d <value>]
319+
320+
FLAGS
321+
-d, --destination=<value> The destination folder id where the file is going to be moved.
322+
-i, --id=<value> The file id to be moved.
323+
324+
HELPER FLAGS
325+
-n, --non-interactive Blocks the cli from being interactive. If passed, the cli will not request data through the
326+
console and will throw errors directly
327+
328+
DESCRIPTION
329+
Move a file into a destination folder.
330+
331+
ALIASES
332+
$ internxt move file
333+
334+
EXAMPLES
335+
$ internxt move file
336+
```
337+
338+
## `internxt move folder`
339+
340+
Move a folder into a destination folder.
341+
342+
```
343+
USAGE
344+
$ internxt move folder [-n] [-i <value>] [-d <value>]
345+
346+
FLAGS
347+
-d, --destination=<value> The destination folder id where the folder is going to be moved.
348+
-i, --id=<value> The folder id to be moved.
349+
350+
HELPER FLAGS
351+
-n, --non-interactive Blocks the cli from being interactive. If passed, the cli will not request data through the
352+
console and will throw errors directly
353+
354+
DESCRIPTION
355+
Move a folder into a destination folder.
356+
357+
ALIASES
358+
$ internxt move folder
359+
360+
EXAMPLES
361+
$ internxt move folder
362+
```
275363

276364
## `internxt rename`
277365

@@ -385,33 +473,61 @@ EXAMPLES
385473

386474
_See code: [src/commands/trash-list.ts](https://github.com/internxt/cli/blob/v1.3.0/src/commands/trash-list.ts)_
387475

388-
## `internxt trash-restore`
476+
## `internxt trash-restore-file`
389477

390-
Restore a trashed folder/file into a destination folder.
478+
Restore a trashed file into a destination folder.
391479

392480
```
393481
USAGE
394-
$ internxt trash-restore [-n] [-i <value>] [-d <value>]
482+
$ internxt trash-restore-file [-n] [-i <value>] [-d <value>]
395483
396484
FLAGS
397-
-d, --destination=<value> The destination folder id where the item is going to be restored.
398-
-i, --id=<value> The item id to be restored from the trash (it can be a file id or a folder id).
485+
-d, --destination=<value> The folder id where the file is going to be restored. Leave empty for the root folder.
486+
-i, --id=<value> The file id to be restored from the trash.
399487
400488
HELPER FLAGS
401489
-n, --non-interactive Blocks the cli from being interactive. If passed, the cli will not request data through the
402490
console and will throw errors directly
403491
404492
DESCRIPTION
405-
Restore a trashed folder/file into a destination folder.
493+
Restore a trashed file into a destination folder.
406494
407495
ALIASES
408-
$ internxt trash restore
496+
$ internxt trash restore file
409497
410498
EXAMPLES
411-
$ internxt trash-restore
499+
$ internxt trash-restore-file
500+
```
501+
502+
_See code: [src/commands/trash-restore-file.ts](https://github.com/internxt/cli/blob/v1.3.0/src/commands/trash-restore-file.ts)_
503+
504+
## `internxt trash-restore-folder`
505+
506+
Restore a trashed folder into a destination folder.
507+
412508
```
509+
USAGE
510+
$ internxt trash-restore-folder [-n] [-i <value>] [-d <value>]
511+
512+
FLAGS
513+
-d, --destination=<value> The folder id where the folder is going to be restored. Leave empty for the root folder.
514+
-i, --id=<value> The folder id to be restored from the trash.
413515
414-
_See code: [src/commands/trash-restore.ts](https://github.com/internxt/cli/blob/v1.3.0/src/commands/trash-restore.ts)_
516+
HELPER FLAGS
517+
-n, --non-interactive Blocks the cli from being interactive. If passed, the cli will not request data through the
518+
console and will throw errors directly
519+
520+
DESCRIPTION
521+
Restore a trashed folder into a destination folder.
522+
523+
ALIASES
524+
$ internxt trash restore folder
525+
526+
EXAMPLES
527+
$ internxt trash-restore-folder
528+
```
529+
530+
_See code: [src/commands/trash-restore-folder.ts](https://github.com/internxt/cli/blob/v1.3.0/src/commands/trash-restore-folder.ts)_
415531

416532
## `internxt trash clear`
417533

@@ -472,30 +588,56 @@ EXAMPLES
472588
$ internxt trash list
473589
```
474590

475-
## `internxt trash restore`
591+
## `internxt trash restore file`
592+
593+
Restore a trashed file into a destination folder.
594+
595+
```
596+
USAGE
597+
$ internxt trash restore file [-n] [-i <value>] [-d <value>]
598+
599+
FLAGS
600+
-d, --destination=<value> The folder id where the file is going to be restored. Leave empty for the root folder.
601+
-i, --id=<value> The file id to be restored from the trash.
602+
603+
HELPER FLAGS
604+
-n, --non-interactive Blocks the cli from being interactive. If passed, the cli will not request data through the
605+
console and will throw errors directly
606+
607+
DESCRIPTION
608+
Restore a trashed file into a destination folder.
609+
610+
ALIASES
611+
$ internxt trash restore file
612+
613+
EXAMPLES
614+
$ internxt trash restore file
615+
```
616+
617+
## `internxt trash restore folder`
476618

477-
Restore a trashed folder/file into a destination folder.
619+
Restore a trashed folder into a destination folder.
478620

479621
```
480622
USAGE
481-
$ internxt trash restore [-n] [-i <value>] [-d <value>]
623+
$ internxt trash restore folder [-n] [-i <value>] [-d <value>]
482624
483625
FLAGS
484-
-d, --destination=<value> The destination folder id where the item is going to be restored.
485-
-i, --id=<value> The item id to be restored from the trash (it can be a file id or a folder id).
626+
-d, --destination=<value> The folder id where the folder is going to be restored. Leave empty for the root folder.
627+
-i, --id=<value> The folder id to be restored from the trash.
486628
487629
HELPER FLAGS
488630
-n, --non-interactive Blocks the cli from being interactive. If passed, the cli will not request data through the
489631
console and will throw errors directly
490632
491633
DESCRIPTION
492-
Restore a trashed folder/file into a destination folder.
634+
Restore a trashed folder into a destination folder.
493635
494636
ALIASES
495-
$ internxt trash restore
637+
$ internxt trash restore folder
496638
497639
EXAMPLES
498-
$ internxt trash restore
640+
$ internxt trash restore folder
499641
```
500642

501643
## `internxt upload`

0 commit comments

Comments
 (0)