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
|`--form-url-encoded`| Send as application/x-www-form-urlencoded |
248
248
|`--dry-run`| Show the request without executing it |
249
+
|`--mock`| Return example response without making an API call |
250
+
|`--skip-validation`| Skip input validation against the action schema |
251
+
252
+
The CLI validates required parameters (path variables, query params, body fields) against the action schema before executing. Missing params return a clear error with the flag name and description. Pass `--skip-validation` to bypass.
253
+
254
+
#### Parallel execution
255
+
256
+
Execute multiple actions concurrently with `--parallel`, separating each action with `--`:
Each segment follows the same format: `<platform> <actionId> <connectionKey> [-d ...] [--path-vars ...] [--query-params ...]`. All segments are validated upfront before any execution starts. Results are collected via `Promise.allSettled` — if one fails, the rest still complete.
266
+
267
+
| Option | What it does |
268
+
|--------|-------------|
269
+
|`--parallel`| Enable parallel mode |
270
+
|`--max-concurrency <n>`| Max concurrent actions per batch (default: 5) |
271
+
272
+
Agent-mode output includes `parallel: true`, per-action `status`/`durationMs`/`response`, plus `totalDurationMs`, `succeeded`, and `failed` counts.
249
273
250
274
### `one cache`
251
275
@@ -271,6 +295,48 @@ Default TTL is 1 hour. Configure via `ONE_CACHE_TTL` environment variable or `ca
271
295
272
296
Note: `actions execute` is never cached — it always hits the API fresh.
273
297
298
+
### `one sync`
299
+
300
+
Sync platform data into local SQLite for instant queries, full-text search, scheduled refresh, and change-driven automation. The sync engine (`better-sqlite3`) is an optional dependency — install it once per machine:
|`test <platform>/<model>`| Validate + auto-fix profile from real API response (also runs inside init) |
331
+
|`run <platform>`| Sync data (`--full-refresh`, `--since`, `--dry-run`) |
332
+
|`query <platform>/<model>`| Query with `--where`, `--after/before`, `--refresh`|
333
+
|`search <query>`| FTS5 across all synced data |
334
+
|`sql <platform> <sql>`| Raw SELECT queries |
335
+
|`schedule add/list/status/remove/repair`| Cron-backed scheduled syncs with drift detection |
336
+
|`remove <platform>`| Delete local data (`--dry-run` to preview) |
337
+
338
+
Change hooks (`onInsert`, `onUpdate`, `onChange`) fire per-page during sync — pipe to a shell command, a flow, or an event log. Run `one guide sync` for the full reference.
339
+
274
340
### `one guide [topic]`
275
341
276
342
Get the full CLI usage guide, designed for AI agents that only have the binary (no MCP, no IDE skills).
@@ -285,7 +351,7 @@ one --agent guide # full guide as structured JSON
0 commit comments