You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/docs/content/docs/cli/files.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,6 +108,8 @@ Also available as `sim files folders ls`.
108
108
|`--sort-by <value>`| No | Field used to sort the result. Sorting by `name` is case-sensitive and follows the storage collation, so do not rely on a case-insensitive order. Accepted values: `name`, `createdAt`, `updatedAt`. |
|`--scope <value>`| No | Which lifecycle set to list: `active` (default) returns live folders only; `archived` returns folders a recursive delete soft-deleted, which is how a caller finds a path to hand to the folder restore. Authorization is identical for both. Accepted values: `active`, `archived`. |
111
+
|`--recursive <value>`| No | Whether parentPath includes every descendant instead of direct children only. Accepted values: `true`, `1`, `yes`, `on`, `y`, `enabled`, `false`, `0`, `no`, `off`, `n`, `disabled`. |
112
+
|`--depth <value>`| No | Deepest level below parentPath to include when recursive is true. |
Copy file name to clipboardExpand all lines: apps/docs/content/docs/cli/reference.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -788,6 +788,8 @@ Also available as `sim files folders ls`.
788
788
|`--sort-by <value>`| No | Field used to sort the result. Sorting by `name` is case-sensitive and follows the storage collation, so do not rely on a case-insensitive order. Accepted values: `name`, `createdAt`, `updatedAt`. |
|`--scope <value>`| No | Which lifecycle set to list: `active` (default) returns live folders only; `archived` returns folders a recursive delete soft-deleted, which is how a caller finds a path to hand to the folder restore. Authorization is identical for both. Accepted values: `active`, `archived`. |
791
+
|`--recursive <value>`| No | Whether parentPath includes every descendant instead of direct children only. Accepted values: `true`, `1`, `yes`, `on`, `y`, `enabled`, `false`, `0`, `no`, `off`, `n`, `disabled`. |
792
+
|`--depth <value>`| No | Deepest level below parentPath to include when recursive is true. |
Copy file name to clipboardExpand all lines: apps/docs/content/docs/integrations/file.mdx
+8-54Lines changed: 8 additions & 54 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -191,33 +191,10 @@ Replace one exact piece of text in an existing workspace file, leaving the rest
191
191
192
192
| Parameter | Type | Description |
193
193
| --------- | ---- | ----------- |
194
-
|`files`| file[]| Workspace file objects with share status \(read\), fetched file objects \(fetch\), the compressed archive \(compress\), or extracted files \(decompress\)|
195
-
|`contents`| array | Array of file text contents, one entry per file \(get content\)|
196
-
|`lineRanges`| array | Line window returned per file when a range was requested, as objects with offset, lineCount, and totalLines \(get content\)|
197
-
|`lineCount`| number | Lines in the file after the change \(edit, insert\)|
198
-
|`results`| array | Matching lines as objects with fileId, lineNumber, and text fields \(search\)|
199
-
|`count`| number | Returned matching line count \(search\)|
200
-
|`truncated`| boolean | Whether results were cut short by a cap: more matches exist \(search\), or more entries exist \(list\)|
201
-
|`complete`| boolean | Whether the searched scope has no file still pending or failed indexing. It does not cover skipped or partial files, so check indexStatus too before treating a missing match as authoritative \(search\)|
|`combinedContent`| string | All fetched file contents merged into a single text string \(fetch\)|
204
-
|`id`| string | File ID \(write and append\)|
205
-
|`name`| string | File name \(write and append\)|
206
-
|`size`| number | File size in bytes \(write and append\)|
207
-
|`url`| string | URL to access the file \(write and append\), or the public share link when shared; empty when set to private \(manage sharing\)|
208
-
|`isActive`| boolean | Whether the public link is enabled \(manage sharing\)|
209
-
|`entries`| array | What the folder holds, each with kind "folder" or "file", a name, and its depth below the listed folder \(list\)|
210
-
|`folder`| json | The affected folder \(create, move, delete, and restore folder\)|
211
-
|`path`| string | The folder that was listed or deleted \(list and delete folder\)|
212
-
|`previousPath`| string | The path the folder had before it moved \(move folder\)|
213
-
|`deleted`| boolean | Whether the folder was deleted \(delete folder\)|
214
-
|`deletedItems`| json | Counts of folders and files deleted alongside the folder \(delete folder\)|
215
-
|`fileId`| string | The file that was moved \(move file\)|
216
-
|`folderPath`| string | The folder the file now lives in \(move file\)|
217
-
|`restoredItems`| json | Counts of folders and files restored alongside the folder \(restore folder\)|
218
-
|`authType`| string | Public link access mode: public, password, email, or sso \(manage sharing\)|
219
-
|`hasPassword`| boolean | Whether the public link is password-protected \(manage sharing\)|
220
-
|`allowedEmails`| array | Allowed emails/domains for email or SSO access \(manage sharing\)|
194
+
|`id`| string | File ID |
195
+
|`name`| string | File name |
196
+
|`size`| number | File size in bytes |
197
+
|`lineCount`| number | Lines in the file after the edit |
221
198
222
199
### File Insert
223
200
@@ -238,33 +215,10 @@ Insert new lines into an existing workspace file at a given line, leaving the re
238
215
239
216
| Parameter | Type | Description |
240
217
| --------- | ---- | ----------- |
241
-
|`files`| file[]| Workspace file objects with share status \(read\), fetched file objects \(fetch\), the compressed archive \(compress\), or extracted files \(decompress\)|
242
-
|`contents`| array | Array of file text contents, one entry per file \(get content\)|
243
-
|`lineRanges`| array | Line window returned per file when a range was requested, as objects with offset, lineCount, and totalLines \(get content\)|
244
-
|`lineCount`| number | Lines in the file after the change \(edit, insert\)|
245
-
|`results`| array | Matching lines as objects with fileId, lineNumber, and text fields \(search\)|
246
-
|`count`| number | Returned matching line count \(search\)|
247
-
|`truncated`| boolean | Whether results were cut short by a cap: more matches exist \(search\), or more entries exist \(list\)|
248
-
|`complete`| boolean | Whether the searched scope has no file still pending or failed indexing. It does not cover skipped or partial files, so check indexStatus too before treating a missing match as authoritative \(search\)|
0 commit comments