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
{{ message }}
Repository navigation
Commit 29b8b4a
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/docs/content/docs/cli/projects.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ sim projects files list <projectId> [options]
68
68
|`--no-recursive`| No | Send --recursive as false. |
69
69
|`--scope <value>`| No | Which lifecycle set to list: `active` (default) for live files, `archived` for files a delete soft-deleted. `folderPath` resolves against active folders only, so pairing it with `scope=archived` returns an empty page when the containing folder was archived too. Accepted values: `active`, `archived`. |
70
70
|`--search <value>`| No | Case-insensitive substring match against the file name. |
71
-
|`--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. Defaults to "uploadedAt". Accepted values: `name`, `size`, `uploadedAt`, `updatedAt`. |
71
+
|`--sort-by <value>`| No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "uploadedAt". Accepted values: `name`, `size`, `uploadedAt`, `updatedAt`. |
72
72
|`--sort-order <value>`| No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |
73
73
|`--limit <n>`| No | Maximum items to return (0 for everything). Defaults to `100`. |
74
74
|`--cursor <value>`| No | Continue from nextCursor returned by a previous result. |
|`--name <value>`| Yes | File name, including its extension. Path separators and dot segments are rejected. |
182
182
|`--content-type <value>`| No | MIME type. When omitted, it is inferred from the file extension. |
183
-
|`--content <value>`| No | Initial file content. Omit or send an empty string for a zero-byte file. The 70,000,000-character bound guards the JSON envelope; the decoded bytes must be at most 50 MiB, and a longer base64 payload is rejected with `413`. Use an upload session for anything larger. Defaults to "". |
183
+
|`--content <value>`| No | Initial file content. Omit or send an empty string for a zero-byte file. The complete JSON request is capped at 10 MiB, including UTF-8 encoding, escaping, base64, and the envelope. The separate decoded-file limit is 50 MiB. Use an upload session for larger payloads. Defaults to "". |
184
184
|`--encoding <value>`| No | Encoding of the content field. Defaults to "utf-8". Accepted values: `utf-8`, `base64`. |
185
185
|`--folder <value>`| No | Folder path as shown in the app; the leading / is optional. |
|`--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, so prefer `expectedRevision` to guard content. |
312
-
|`--expected-revision <value>`| No | Revert only while the file still holds the content this revision names, as returned by Get File Metadata or an earlier write; otherwise the request fails with `409`. Unlike a version number, it also catches edits that folded into the current version. |
312
+
|`--expected-revision <value>`| No | Revert only while the file still holds the content this revision names, as returned by Get file metadata or an earlier write; otherwise the request fails with `409`. Unlike a version number, it also catches edits that folded into the current version. |
|`--content <value>`| Yes | Complete replacement content for the file. The 70,000,000-character bound guards the JSON envelope; the decoded bytes must be at most 50 MiB, and a longer base64 payload is rejected with `413`. |
516
+
|`--content <value>`| Yes | Complete replacement content for the file. The complete JSON request is capped at 10 MiB, including UTF-8 encoding, escaping, base64, and the envelope. The separate decoded-file limit is 50 MiB. Small patches can edit a larger stored text file without sending its full content. |
517
517
|`--encoding <value>`| No | Content encoding. Defaults to "utf-8". Accepted values: `utf-8`, `base64`. |
518
-
|`--expected-revision <value>`| No | Revision from Get File Metadata or an earlier write; the request is refused with `409` when the content moved on. |
518
+
|`--expected-revision <value>`| No | Revision from Get file metadata or an earlier write; the request is refused with `409` when the content moved on. |
|`--name <value>`| Yes | File name, including its extension. Path separators and dot segments are rejected. |
4806
4806
|`--content-type <value>`| No | MIME type. When omitted, it is inferred from the file extension. |
4807
-
|`--content <value>`| No | Initial file content. Omit or send an empty string for a zero-byte file. The 70,000,000-character bound guards the JSON envelope; the decoded bytes must be at most 50 MiB, and a longer base64 payload is rejected with `413`. Use an upload session for anything larger. Defaults to "". |
4807
+
|`--content <value>`| No | Initial file content. Omit or send an empty string for a zero-byte file. The complete JSON request is capped at 10 MiB, including UTF-8 encoding, escaping, base64, and the envelope. The separate decoded-file limit is 50 MiB. Use an upload session for larger payloads. Defaults to "". |
4808
4808
|`--encoding <value>`| No | Encoding of the content field. Defaults to "utf-8". Accepted values: `utf-8`, `base64`. |
4809
4809
|`--folder <value>`| No | Folder path as shown in the app; the leading / is optional. |
|`--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, so prefer `expectedRevision` to guard content. |
5047
-
|`--expected-revision <value>`| No | Revert only while the file still holds the content this revision names, as returned by Get File Metadata or an earlier write; otherwise the request fails with `409`. Unlike a version number, it also catches edits that folded into the current version. |
5047
+
|`--expected-revision <value>`| No | Revert only while the file still holds the content this revision names, as returned by Get file metadata or an earlier write; otherwise the request fails with `409`. Unlike a version number, it also catches edits that folded into the current version. |
5048
5048
5049
5049
</CommandTable>
5050
5050
@@ -5133,7 +5133,7 @@ sim projects files list <projectId> [options]
5133
5133
|`--no-recursive`| No | Send --recursive as false. |
5134
5134
|`--scope <value>`| No | Which lifecycle set to list: `active` (default) for live files, `archived` for files a delete soft-deleted. `folderPath` resolves against active folders only, so pairing it with `scope=archived` returns an empty page when the containing folder was archived too. Accepted values: `active`, `archived`. |
5135
5135
|`--search <value>`| No | Case-insensitive substring match against the file name. |
5136
-
|`--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. Defaults to "uploadedAt". Accepted values: `name`, `size`, `uploadedAt`, `updatedAt`. |
5136
+
|`--sort-by <value>`| No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "uploadedAt". Accepted values: `name`, `size`, `uploadedAt`, `updatedAt`. |
5137
5137
|`--sort-order <value>`| No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |
5138
5138
|`--limit <n>`| No | Maximum items to return (0 for everything). Defaults to `100`. |
5139
5139
|`--cursor <value>`| No | Continue from nextCursor returned by a previous result. |
|`--content <value>`| Yes | Complete replacement content for the file. The 70,000,000-character bound guards the JSON envelope; the decoded bytes must be at most 50 MiB, and a longer base64 payload is rejected with `413`. |
5254
+
|`--content <value>`| Yes | Complete replacement content for the file. The complete JSON request is capped at 10 MiB, including UTF-8 encoding, escaping, base64, and the envelope. The separate decoded-file limit is 50 MiB. Small patches can edit a larger stored text file without sending its full content. |
5255
5255
|`--encoding <value>`| No | Content encoding. Defaults to "utf-8". Accepted values: `utf-8`, `base64`. |
5256
-
|`--expected-revision <value>`| No | Revision from Get File Metadata or an earlier write; the request is refused with `409` when the content moved on. |
5256
+
|`--expected-revision <value>`| No | Revision from Get file metadata or an earlier write; the request is refused with `409` when the content moved on. |
0 commit comments