@@ -909,6 +909,175 @@ sim files delete <fileId> [options]
909909
910910</CommandTable >
911911
912+ ### sim files versions delete
913+
914+ Permanently delete a previous version of a file
915+
916+ ``` bash
917+ sim files versions delete < fileId> < version> [options]
918+ ```
919+
920+ ** Arguments**
921+
922+ <CommandTable >
923+
924+ | Argument | Required | Description |
925+ | --- | --- | --- |
926+ | ` fileId ` | Yes | File identifier. |
927+ | ` version ` | Yes | Version number. |
928+
929+ </CommandTable >
930+
931+ ** Options**
932+
933+ <CommandTable >
934+
935+ | Option | Required | Description |
936+ | --- | --- | --- |
937+ | ` -y, --yes ` | Yes | Confirm this operation. |
938+
939+ </CommandTable >
940+
941+ ### sim files versions describe
942+
943+ Show the metadata of one version of a file
944+
945+ ``` bash
946+ sim files versions describe < fileId> < version>
947+ ```
948+
949+ ** Arguments**
950+
951+ <CommandTable >
952+
953+ | Argument | Required | Description |
954+ | --- | --- | --- |
955+ | ` fileId ` | Yes | File identifier. |
956+ | ` version ` | Yes | Version number. |
957+
958+ </CommandTable >
959+
960+ ### sim files versions list
961+
962+ List the recorded versions of a file
963+
964+ ``` bash
965+ sim files versions list < fileId> [options]
966+ ```
967+
968+ ** Arguments**
969+
970+ <CommandTable >
971+
972+ | Argument | Required | Description |
973+ | --- | --- | --- |
974+ | ` fileId ` | Yes | File identifier. |
975+
976+ </CommandTable >
977+
978+ ** Options**
979+
980+ <CommandTable >
981+
982+ | Option | Required | Description |
983+ | --- | --- | --- |
984+ | ` --sort-by <value> ` | No | Field used to sort the result. Accepted values: ` version ` . |
985+ | ` --sort-order <value> ` | No | Sort direction. Accepted values: ` asc ` , ` desc ` . |
986+ | ` --limit <n> ` | No | Maximum items to return (0 for everything). Defaults to ` 100 ` . |
987+ | ` --cursor <value> ` | No | Continue from nextCursor returned by a previous result. |
988+
989+ </CommandTable >
990+
991+ ### sim files versions read
992+
993+ Read the text content of one version of a file
994+
995+ ``` bash
996+ sim files versions read < fileId> < version> [options]
997+ ```
998+
999+ ** Arguments**
1000+
1001+ <CommandTable >
1002+
1003+ | Argument | Required | Description |
1004+ | --- | --- | --- |
1005+ | ` fileId ` | Yes | File identifier. |
1006+ | ` version ` | Yes | Version number. |
1007+
1008+ </CommandTable >
1009+
1010+ ** Options**
1011+
1012+ <CommandTable >
1013+
1014+ | Option | Required | Description |
1015+ | --- | --- | --- |
1016+ | ` --max-bytes <value> ` | No | Optional ceiling on the source bytes fed to the parser, lowering but never raising the server limit. |
1017+ | ` --offset <value> ` | No | First line to return, 1-based. Absent starts at the first line. |
1018+ | ` --limit <value> ` | No | How many lines to return from ` offset ` . Absent reads to the end. |
1019+
1020+ </CommandTable >
1021+
1022+ ### sim files versions revert
1023+
1024+ Make a previous version of a file current again
1025+
1026+ ``` bash
1027+ sim files versions revert < fileId> < version> [options]
1028+ ```
1029+
1030+ ** Arguments**
1031+
1032+ <CommandTable >
1033+
1034+ | Argument | Required | Description |
1035+ | --- | --- | --- |
1036+ | ` fileId ` | Yes | File identifier. |
1037+ | ` version ` | Yes | Version number. |
1038+
1039+ </CommandTable >
1040+
1041+ ** Options**
1042+
1043+ <CommandTable >
1044+
1045+ | Option | Required | Description |
1046+ | --- | --- | --- |
1047+ | ` --expected-current-version <value> ` | No | Revert only while this is still the current version; otherwise the request fails with ` 409 ` . Omit to revert whatever is current. Collaborative edits and repeated workflow writes that fold into the current version keep its number. |
1048+
1049+ </CommandTable >
1050+
1051+ ### sim files versions download
1052+
1053+ Download the content of one version of a file
1054+
1055+ ``` bash
1056+ sim files versions download < fileId> < version> [options]
1057+ ```
1058+
1059+ ** Arguments**
1060+
1061+ <CommandTable >
1062+
1063+ | Argument | Required | Description |
1064+ | --- | --- | --- |
1065+ | ` fileId ` | Yes | File identifier. |
1066+ | ` version ` | Yes | Version number. |
1067+
1068+ </CommandTable >
1069+
1070+ ** Options**
1071+
1072+ <CommandTable >
1073+
1074+ | Option | Required | Description |
1075+ | --- | --- | --- |
1076+ | ` -o, --output-file <path> ` | No | Write content to a file instead of stdout. |
1077+ | ` --force ` | No | Overwrite --output-file if it already exists. |
1078+
1079+ </CommandTable >
1080+
9121081### sim files edit
9131082
9141083Apply one exact or anchor-based edit to a text file
0 commit comments