@@ -113,74 +113,77 @@ also accepts its singular form: for example, `sim table list`,
113113spellings.
114114
115115``` bash
116- sim workflows ls [--folder < / path> ] [--search < text> ] [--limit < n> ]
117- sim workflows list [--folder < / path> ] [--deployed-only] [--limit < n> ]
116+ sim workflows ls [path] [--search < text> ] [--limit < n> ]
117+ sim workflows list [--folder < path> ] [--deployed-only] [--limit < n> ]
118118sim workflows get < id>
119- sim workflows mv < id> --folder < / path>
119+ sim workflows mv < id> --folder < path>
120120sim workflows deploy| undeploy| rollback < id>
121121
122122sim logs list [--level error] [--workflow < id> …] [--trigger < name> …] [--start < date> ]
123123sim logs get < id>
124124sim logs execution < executionId>
125125
126- sim tables ls [--folder < / path> ] [--search < text> ] [--limit < n> ]
127- sim tables list [--folder < / path> ]
126+ sim tables ls [path] [--search < text> ] [--limit < n> ]
127+ sim tables list [--folder < path> ]
128128sim tables get < tableId>
129- sim tables mv < tableId> --folder < / path>
129+ sim tables mv < tableId> --folder < path>
130130sim tables columns < tableId>
131131sim tables rows list < tableId> [--limit < n> ]
132132sim tables rows query < tableId> [--filter < json> ] [--sort < json> ] [--limit < n> ]
133133sim tables upsert < tableId> --data < json>
134134sim tables rows batch-delete < tableId> (--row < id> … | --filter < json> ) --yes
135135
136- sim files ls [--folder < / path> ] [--search < text> ] [--limit < n> ]
137- sim files list [--folder < / path> ]
136+ sim files ls [path] [--search < text> ] [--limit < n> ]
137+ sim files list [--folder < path> ]
138138sim files get < fileId>
139- sim files create --name < name> [--folder < / path> ] [--content < value> ] [--encoding utf-8| base64]
140- sim files upload < path> [--name < name> ] [--folder < / path> ]
139+ sim files create --name < name> [--folder < path> ] [--content < value> ] [--encoding utf-8| base64]
140+ sim files upload < path> [--name < name> ] [--folder < path> ]
141141sim files download < fileId> [-o < path> ]
142- sim files mv --file-ids < id> … [--to < / path> ]
142+ sim files mv --file-ids < id> … [--to < path> ]
143143sim files batch-delete --file-ids < id> … --yes
144144sim files delete < fileId>
145145
146- sim knowledge ls [--folder < / path> ] [--search < text> ] [--limit < n> ]
147- sim knowledge list [--folder < / path> ]
146+ sim knowledge ls [path] [--search < text> ] [--limit < n> ]
147+ sim knowledge list [--folder < path> ]
148148sim knowledge get < id>
149- sim knowledge mv < id> --folder < / path>
149+ sim knowledge mv < id> --folder < path>
150150sim knowledge documents < id> [--search < text> ]
151151sim knowledge documents upload < id> < path> [--tag < value> ...]
152152sim knowledge search --query < text> --kb < id> … [--search-mode vector| hybrid]
153153```
154154
155- ` ls ` is a directory view: it combines the resources at ` --folder ` with that
156- folder's direct child folders. Its ` ref ` column is the resource ID or canonical
157- folder path to pass to the next command. Use ` list ` when you want resources only,
158- or ` folders ls ` when you want folders only.
155+ ` ls ` is a directory view: it combines the resources at its optional path with
156+ that folder's direct child folders. It never includes deeper descendants. Its
157+ ` ref ` column is the resource ID or canonical folder path to pass to the next
158+ command. Use ` list ` when you want resources only, or ` folders ls ` when you want
159+ folders only.
159160
160161Each folder-backed resource has the same path commands:
161162
162163``` bash
163- sim tables folders ls --parent /Reports
164- sim tables mkdir /Reports/Quarterly
165- sim tables folders create /Reports/Quarterly
166- sim tables folders mv /Reports/Quarterly /Archive/Quarterly
167- sim tables folders delete /Archive/Quarterly --recursive false --yes
164+ sim tables ls Reports
165+ sim tables folders ls --parent Reports
166+ sim tables mkdir Reports/Quarterly
167+ sim tables folders create Reports/Quarterly
168+ sim tables folders mv Reports/Quarterly Archive/Quarterly
169+ sim tables folders delete Archive/Quarterly --recursive false --yes
168170```
169171
170172` mkdir ` is the concise form of ` folders create ` . Replace ` tables ` with ` files ` ,
171- ` workflows ` , or ` knowledge ` . Paths are canonical, start with ` / ` , and use ` / ` for
172- root. A slash that belongs to a folder name is percent-encoded as ` %2F ` rather
173- than treated as a separator.
173+ ` workflows ` , or ` knowledge ` . The leading ` / ` is optional on CLI inputs; the CLI
174+ adds it before calling the API. Omit the ` ls ` path to list root. A slash that
175+ belongs to a folder name is percent-encoded as ` %2F ` rather than treated as a
176+ separator.
174177
175178### List inputs
176179
177180Primitive lists take space-separated values. Prefix a path with ` @ ` to read
178181one value per line, or use ` @- ` to read the list from stdin.
179182
180183``` bash
181- sim files mv --file-ids file_1 file_2 --to / Archive
182- sim files mv --file-ids @file-ids.txt --to / Archive
183- printf ' file_1\nfile_2\n' | sim files mv --file-ids @- --to / Archive
184+ sim files mv --file-ids file_1 file_2 --to Archive
185+ sim files mv --file-ids @file-ids.txt --to Archive
186+ printf ' file_1\nfile_2\n' | sim files mv --file-ids @- --to Archive
184187```
185188
186189Arrays of objects remain JSON inputs because they cannot be represented as a
0 commit comments