@temps-sdk/cli 0.2.0-beta.1 → 0.2.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +68378 -53718
- package/dist/skills/temps/SKILL.md +1 -0
- package/dist/skills/temps/howtos/agent-handoff.md +106 -0
- package/dist/skills/temps/references/commands/INDEX.md +6 -0
- package/dist/skills/temps/references/commands/agents.md +731 -0
- package/dist/skills/temps/references/commands/ai.md +2636 -11
- package/dist/skills/temps/references/commands/alarms.md +125 -0
- package/dist/skills/temps/references/commands/analytics.md +1001 -3
- package/dist/skills/temps/references/commands/apikeys.md +48 -1
- package/dist/skills/temps/references/commands/audit.md +1 -0
- package/dist/skills/temps/references/commands/backups.md +306 -0
- package/dist/skills/temps/references/commands/blob.md +169 -0
- package/dist/skills/temps/references/commands/cloud.md +59 -0
- package/dist/skills/temps/references/commands/cluster.md +223 -0
- package/dist/skills/temps/references/commands/containers.md +45 -0
- package/dist/skills/temps/references/commands/custom-domains.md +32 -0
- package/dist/skills/temps/references/commands/data.md +1 -0
- package/dist/skills/temps/references/commands/deploy-image.md +3 -1
- package/dist/skills/temps/references/commands/deploy-local-image.md +3 -0
- package/dist/skills/temps/references/commands/deployments.md +559 -0
- package/dist/skills/temps/references/commands/dns-provider.md +63 -0
- package/dist/skills/temps/references/commands/domains.md +104 -0
- package/dist/skills/temps/references/commands/email-domains.md +1 -0
- package/dist/skills/temps/references/commands/email-providers.md +59 -1
- package/dist/skills/temps/references/commands/emails.md +91 -0
- package/dist/skills/temps/references/commands/environments.md +447 -2
- package/dist/skills/temps/references/commands/errors.md +563 -3
- package/dist/skills/temps/references/commands/flags.md +76 -0
- package/dist/skills/temps/references/commands/funnels.md +22 -2
- package/dist/skills/temps/references/commands/incidents.md +18 -0
- package/dist/skills/temps/references/commands/ip-access.md +96 -1
- package/dist/skills/temps/references/commands/kv.md +184 -0
- package/dist/skills/temps/references/commands/load-balancer.md +2 -0
- package/dist/skills/temps/references/commands/login.md +4 -1
- package/dist/skills/temps/references/commands/logs.md +272 -0
- package/dist/skills/temps/references/commands/migrate.md +17 -0
- package/dist/skills/temps/references/commands/monitors.md +386 -0
- package/dist/skills/temps/references/commands/network-policy.md +27 -0
- package/dist/skills/temps/references/commands/nodes.md +155 -2
- package/dist/skills/temps/references/commands/notifications.md +149 -0
- package/dist/skills/temps/references/commands/otel.md +436 -0
- package/dist/skills/temps/references/commands/platform.md +53 -0
- package/dist/skills/temps/references/commands/plugin.md +76 -0
- package/dist/skills/temps/references/commands/preview-gateway.md +91 -0
- package/dist/skills/temps/references/commands/project-groups.md +31 -0
- package/dist/skills/temps/references/commands/projects.md +452 -6
- package/dist/skills/temps/references/commands/providers.md +519 -0
- package/dist/skills/temps/references/commands/proxy-logs.md +111 -0
- package/dist/skills/temps/references/commands/revenue.md +219 -0
- package/dist/skills/temps/references/commands/sandbox.md +699 -9
- package/dist/skills/temps/references/commands/secrets.md +3 -0
- package/dist/skills/temps/references/commands/server.md +107 -0
- package/dist/skills/temps/references/commands/services.md +830 -5
- package/dist/skills/temps/references/commands/settings.md +346 -0
- package/dist/skills/temps/references/commands/shield.md +354 -0
- package/dist/skills/temps/references/commands/status-pages.md +103 -3
- package/dist/skills/temps/references/commands/teams.md +14 -0
- package/dist/skills/temps/references/commands/templates.md +14 -0
- package/dist/skills/temps/references/commands/tokens.md +106 -0
- package/dist/skills/temps/references/commands/traces.md +149 -0
- package/dist/skills/temps/references/commands/tunnels.md +2 -0
- package/dist/skills/temps/references/commands/users.md +111 -0
- package/dist/skills/temps/references/commands/vault.md +662 -0
- package/dist/skills/temps/references/commands/webhooks.md +4 -0
- package/dist/skills/temps/references/commands/workflows.md +347 -0
- package/dist/skills/temps/scripts/generate_command_references.py +5 -3
- package/dist/skills/temps/scripts/test_generate_command_references.py +3 -1
- package/package.json +3 -2
|
@@ -4,44 +4,2669 @@
|
|
|
4
4
|
|
|
5
5
|
Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
|
|
6
6
|
|
|
7
|
+
## Contents
|
|
8
|
+
|
|
9
|
+
- [`ai chat`](#ai-chat)
|
|
10
|
+
- [`ai provider`](#ai-provider)
|
|
11
|
+
- [`ai readiness`](#ai-readiness)
|
|
12
|
+
- [`ai apps`](#ai-apps)
|
|
13
|
+
- [`ai coding-agents`](#ai-coding-agents)
|
|
14
|
+
- [`ai gateway`](#ai-gateway)
|
|
15
|
+
- [`ai provider-status`](#ai-provider-status)
|
|
16
|
+
- [`ai workspace`](#ai-workspace)
|
|
17
|
+
|
|
7
18
|
## `ai`
|
|
8
19
|
|
|
9
20
|
AI assistant status for a project
|
|
10
21
|
|
|
11
22
|
**Subcommands:**
|
|
12
23
|
|
|
24
|
+
- `chat` - AI chat conversations: messages, attachments, sandboxes and workspaces
|
|
13
25
|
- `provider` - Manage the AI CLIs (Claude Code, Codex) Temps runs on this server
|
|
14
26
|
- `readiness` - Show which AI prerequisites this project meets, and how to fix the rest
|
|
27
|
+
- `apps` - Apps commands
|
|
28
|
+
- `coding-agents` - Coding agents commands
|
|
29
|
+
- `gateway` - Gateway commands
|
|
30
|
+
- `provider-status` - Provider status commands
|
|
31
|
+
- `workspace` - Workspace commands
|
|
15
32
|
|
|
16
|
-
### `ai
|
|
33
|
+
### `ai chat`
|
|
17
34
|
|
|
18
|
-
|
|
35
|
+
AI chat conversations: messages, attachments, sandboxes and workspaces
|
|
19
36
|
|
|
20
37
|
**Subcommands:**
|
|
21
38
|
|
|
22
|
-
- `
|
|
39
|
+
- `upload` - Attach a file to a conversation in chunks; resumable with --resume
|
|
40
|
+
- `create-assistant-conversation` - Start a chat with the Temps assistant
|
|
41
|
+
- `list-all-conversations` - List the current user's active conversations across all projects, most-recently-active first, annotated..
|
|
42
|
+
- `create-global-conversation` - Create a private user-owned operator thread without binding its lifetime or authority to a project
|
|
43
|
+
- `get-user-conversation` - Load one bounded history page for a private conversation by its owner-facing id
|
|
44
|
+
- `rename-user-conversation` - Rename user conversation
|
|
45
|
+
- `archive-user-conversation` - Archive user conversation
|
|
46
|
+
- `start-attachment-upload` - Start uploading a file in chunks, for clients behind a small request-size limit
|
|
47
|
+
- `cancel-attachment-upload` - Abandon an upload and free what it reserved
|
|
48
|
+
- `append-attachment-chunk` - Append the next chunk of an upload
|
|
49
|
+
- `complete-attachment-upload` - Finish an upload once every byte has arrived
|
|
50
|
+
- `upload-user-conversation-attachment` - Upload user conversation attachment
|
|
51
|
+
- `get-user-conversation-attachment` - Get user conversation attachment
|
|
52
|
+
- `compact-conversation` - Summarize the chat's older messages now
|
|
53
|
+
- `get-user-conversation-diagnostics` - Export the bounded, server-redacted diagnostic state Temps currently owns
|
|
54
|
+
- `list-goals` - List the goals a chat is watching or has finished with, newest first
|
|
55
|
+
- `cancel-goal` - Stop watching a goal
|
|
56
|
+
- `retry-goal` - Give a failed or waiting goal a fresh attempt budget and check it again now
|
|
57
|
+
- `send-user-message` - Submit a turn to a user-owned conversation
|
|
58
|
+
- `list-operations` - The deployments, backups and restores this chat started, newest first, with their current state
|
|
59
|
+
- `list-user-pending-actions` - List user pending actions
|
|
60
|
+
- `update-user-permission-mode` - Update user permission mode
|
|
61
|
+
- `resolve-user-permission` - Resolve user permission
|
|
62
|
+
- `list-resources` - The projects, databases and services, repositories and sandbox this chat made, with their current state
|
|
63
|
+
- `restore-user-conversation` - Restore a user-owned archived conversation
|
|
64
|
+
- `unlink-sandbox` - Unlink the chat's sandbox
|
|
65
|
+
- `get-sandbox` - Whether the chat can use a sandbox, and which one it is linked to
|
|
66
|
+
- `link-sandbox` - Link a sandbox to the chat, or create one for it
|
|
67
|
+
- `get-sandbox-changes` - The uncommitted Git changes of every repository under the sandbox work directory
|
|
68
|
+
- `get-sandbox-diff` - Both sides of one changed file: as last committed, and as it is now
|
|
69
|
+
- `track-sandbox-changes` - Put a folder of the sandbox under Git, so its changes show from now on: a '.gitignore' for dependencies,..
|
|
70
|
+
- `read-sandbox-file` - One file of the chat's sandbox, for the viewer
|
|
71
|
+
- `list-sandbox-files` - List one directory of the chat's sandbox: folders first, then files
|
|
72
|
+
- `connect-sandbox` - Let the chat's sandbox use a project's database
|
|
73
|
+
- `disconnect-sandbox` - Stop the chat's sandbox using a project's database
|
|
74
|
+
- `connect-sandbox-service` - Let the chat's sandbox use one service, whether or not it belongs to a project
|
|
75
|
+
- `disconnect-sandbox-service` - Stop the chat's sandbox using one service
|
|
76
|
+
- `wake-sandbox` - Start the chat's sandbox if it went to sleep, so the preview and the assistant's next command find it up
|
|
77
|
+
- `list-secret-requests` - List the credentials this chat has asked for and not yet used up or lost
|
|
78
|
+
- `provide-secret` - Provide the credential the assistant asked for
|
|
79
|
+
- `discard-secret` - Discard a credential request and anything already typed into it
|
|
80
|
+
- `stop-user-turn` - Stop user turn
|
|
81
|
+
- `get-suggestion-mode` - A chat's next-step suggestion setting, with the default it falls back to
|
|
82
|
+
- `update-suggestion-mode` - Set a chat's own next-step suggestion mode, or clear it to follow the user's default
|
|
83
|
+
- `suggest-next-steps` - Suggest a few next steps after the chat's latest answer
|
|
84
|
+
- `get-user-conversation-usage` - What this conversation has cost so far
|
|
85
|
+
- `leave-workspace` - Take this chat out of its workspace
|
|
86
|
+
- `get-workspace` - The workspace this chat is in, with its other chats
|
|
87
|
+
- `set-workspace` - Put this chat in a workspace, creating it when asked
|
|
88
|
+
- `get-user-pending-action` - Get user pending action
|
|
89
|
+
- `confirm-user-pending-action` - Confirm user pending action
|
|
90
|
+
- `reject-user-pending-action` - Reject user pending action
|
|
91
|
+
- `get-suggestion-default` - The user's default for next-step suggestions
|
|
92
|
+
- `update-suggestion-default` - Set the user's default for every chat that does not set its own mode
|
|
93
|
+
- `find-conversation` - Find the current user's existing chat for a context (returns 'null' if none yet)
|
|
94
|
+
- `create-conversation` - Get-or-create the current user's private chat for a context
|
|
95
|
+
- `list-conversations` - List the current user's active conversations for a project, most-recently-active first
|
|
96
|
+
- `get-conversation` - One bounded conversation-history page (excluding internal context rows)
|
|
97
|
+
- `rename-conversation` - Rename a conversation (set its human-facing title)
|
|
98
|
+
- `archive-conversation` - Archive (soft-delete) a conversation
|
|
99
|
+
- `send-message` - Submit a user message and start a server-owned turn
|
|
100
|
+
- `list-pending-actions` - List all pending actions for a conversation (most-recently-proposed first)
|
|
101
|
+
- `update-permission-mode` - Update permission mode
|
|
102
|
+
- `resolve-permission` - Resolve permission
|
|
103
|
+
- `stop-turn` - Explicitly cancel the server-owned active turn
|
|
104
|
+
- `get-pending-action` - Get a single pending action by its public id (scoped to the project)
|
|
105
|
+
- `confirm-pending-action` - Confirm a proposed AI action: validate permission, atomically claim, execute, persist outcome
|
|
106
|
+
- `reject-pending-action` - Reject a proposed AI action (no execution)
|
|
23
107
|
|
|
24
|
-
#### `ai
|
|
108
|
+
#### `ai chat upload`
|
|
25
109
|
|
|
26
|
-
|
|
110
|
+
Attach a file to a conversation in chunks; resumable with --resume
|
|
27
111
|
|
|
28
|
-
**Usage:** `ai
|
|
112
|
+
**Usage:** `ai chat upload <conversation-id> <file> [options]`
|
|
29
113
|
|
|
30
114
|
**Options:**
|
|
31
115
|
|
|
32
116
|
| Flag | Description | Default | Required |
|
|
33
117
|
|------|-------------|---------|----------|
|
|
34
|
-
| `--
|
|
118
|
+
| `--name <name>` | File name to show (default: the file name) | - | No |
|
|
119
|
+
| `--mime-type <type>` | Content type (default: guessed from the extension) | - | No |
|
|
120
|
+
| `--resume <upload-id>` | Continue an interrupted upload instead of starting a new one | - | No |
|
|
121
|
+
| `--chunk-bytes <n>` | Bytes per chunk (default 32768, the server's limit) | - | No |
|
|
122
|
+
| `--json` | Output in JSON format | - | No |
|
|
35
123
|
|
|
36
|
-
|
|
124
|
+
#### `ai chat create-assistant-conversation`
|
|
37
125
|
|
|
38
|
-
|
|
126
|
+
Start a chat with the Temps assistant
|
|
39
127
|
|
|
40
|
-
**
|
|
128
|
+
**Options:**
|
|
129
|
+
|
|
130
|
+
| Flag | Description | Default | Required |
|
|
131
|
+
|------|-------------|---------|----------|
|
|
132
|
+
| `--ai-model <value>` | Model id to start with; defaults to the provider's default model | - | No |
|
|
133
|
+
| `--ai-provider <value>` | An AI-gateway provider id ('gateway_key:<id>') | - | No |
|
|
134
|
+
| `--project-id <n>` | A project the chat is about | - | No |
|
|
135
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
136
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
137
|
+
| `--json` | Output in JSON format | - | No |
|
|
138
|
+
|
|
139
|
+
#### `ai chat list-all-conversations`
|
|
140
|
+
|
|
141
|
+
List the current user's active conversations across all projects, most-recently-active first, annotated..
|
|
41
142
|
|
|
42
143
|
**Options:**
|
|
43
144
|
|
|
44
145
|
| Flag | Description | Default | Required |
|
|
45
146
|
|------|-------------|---------|----------|
|
|
46
|
-
|
|
|
147
|
+
| `--status <value>` | Conversation lifecycle state (defaults to active) (one of: active, archived) | - | No |
|
|
148
|
+
| `--scope <value>` | Limit results to the global workspace, or return every readable context (one of: all, global) | - | No |
|
|
149
|
+
| `--page <n>` | Page number (1-indexed) | - | No |
|
|
150
|
+
| `--page-size <n>` | Number of conversations per page (clamped to 1..=100) | - | No |
|
|
151
|
+
| `--search <value>` | Keep only chats whose title, or whose project's name or slug, contains this text (case-insensitive,... | - | No |
|
|
152
|
+
| `--json` | Output in JSON format | - | No |
|
|
153
|
+
|
|
154
|
+
#### `ai chat create-global-conversation`
|
|
155
|
+
|
|
156
|
+
Create a private user-owned operator thread without binding its lifetime or authority to a project
|
|
157
|
+
|
|
158
|
+
**Options:**
|
|
159
|
+
|
|
160
|
+
| Flag | Description | Default | Required |
|
|
161
|
+
|------|-------------|---------|----------|
|
|
162
|
+
| `--ai-model <value>` | Body field ai_model | - | No |
|
|
163
|
+
| `--ai-permission-mode <value>` | Body field ai_permission_mode | - | No |
|
|
164
|
+
| `--ai-provider <value>` | A registered development harness | - | No |
|
|
165
|
+
| `--ai-thinking-level <value>` | Body field ai_thinking_level | - | No |
|
|
166
|
+
| `--kind <value>` | 'ai' (default) or 'terminal' | - | No |
|
|
167
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
168
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
169
|
+
| `--json` | Output in JSON format | - | No |
|
|
170
|
+
|
|
171
|
+
#### `ai chat get-user-conversation`
|
|
172
|
+
|
|
173
|
+
Load one bounded history page for a private conversation by its owner-facing id
|
|
174
|
+
|
|
175
|
+
**Usage:** `ai chat get-user-conversation <public-id> [options]`
|
|
176
|
+
|
|
177
|
+
**Options:**
|
|
178
|
+
|
|
179
|
+
| Flag | Description | Default | Required |
|
|
180
|
+
|------|-------------|---------|----------|
|
|
181
|
+
| `--before <value>` | Opaque next_before cursor returned by the previous page | - | No |
|
|
182
|
+
| `--limit <n>` | Messages per page (default 50, maximum 100) | - | No |
|
|
183
|
+
| `--json` | Output in JSON format | - | No |
|
|
184
|
+
|
|
185
|
+
#### `ai chat rename-user-conversation`
|
|
186
|
+
|
|
187
|
+
Rename user conversation
|
|
188
|
+
|
|
189
|
+
**Usage:** `ai chat rename-user-conversation <public-id> [options]`
|
|
190
|
+
|
|
191
|
+
**Options:**
|
|
192
|
+
|
|
193
|
+
| Flag | Description | Default | Required |
|
|
194
|
+
|------|-------------|---------|----------|
|
|
195
|
+
| `--title <value>` | New human-facing title [required] | - | No |
|
|
196
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
197
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
198
|
+
| `--json` | Output in JSON format | - | No |
|
|
199
|
+
|
|
200
|
+
#### `ai chat archive-user-conversation`
|
|
201
|
+
|
|
202
|
+
Archive user conversation
|
|
203
|
+
|
|
204
|
+
**Usage:** `ai chat archive-user-conversation <public-id> [options]`
|
|
205
|
+
|
|
206
|
+
**Options:**
|
|
207
|
+
|
|
208
|
+
| Flag | Description | Default | Required |
|
|
209
|
+
|------|-------------|---------|----------|
|
|
210
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
211
|
+
| `--json` | Output in JSON format | - | No |
|
|
212
|
+
|
|
213
|
+
#### `ai chat start-attachment-upload`
|
|
214
|
+
|
|
215
|
+
Start uploading a file in chunks, for clients behind a small request-size limit
|
|
216
|
+
|
|
217
|
+
**Usage:** `ai chat start-attachment-upload <public-id> [options]`
|
|
218
|
+
|
|
219
|
+
**Options:**
|
|
220
|
+
|
|
221
|
+
| Flag | Description | Default | Required |
|
|
222
|
+
|------|-------------|---------|----------|
|
|
223
|
+
| `--mime-type <value>` | Content type the browser reported, if any | - | No |
|
|
224
|
+
| `--name <value>` | File name as the user knows it; unsafe characters are replaced [required] | - | No |
|
|
225
|
+
| `--size-bytes <n>` | Size of the whole file in bytes [required] | - | No |
|
|
226
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
227
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
228
|
+
| `--json` | Output in JSON format | - | No |
|
|
229
|
+
|
|
230
|
+
#### `ai chat cancel-attachment-upload`
|
|
231
|
+
|
|
232
|
+
Abandon an upload and free what it reserved
|
|
233
|
+
|
|
234
|
+
**Usage:** `ai chat cancel-attachment-upload <public-id> <upload-id> [options]`
|
|
235
|
+
|
|
236
|
+
**Options:**
|
|
237
|
+
|
|
238
|
+
| Flag | Description | Default | Required |
|
|
239
|
+
|------|-------------|---------|----------|
|
|
240
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
241
|
+
| `--json` | Output in JSON format | - | No |
|
|
242
|
+
|
|
243
|
+
#### `ai chat append-attachment-chunk`
|
|
244
|
+
|
|
245
|
+
Append the next chunk of an upload
|
|
246
|
+
|
|
247
|
+
**Usage:** `ai chat append-attachment-chunk <public-id> <upload-id> [options]`
|
|
248
|
+
|
|
249
|
+
**Options:**
|
|
250
|
+
|
|
251
|
+
| Flag | Description | Default | Required |
|
|
252
|
+
|------|-------------|---------|----------|
|
|
253
|
+
| `--offset <n>` | Where this chunk starts in the file: the bytes received so far [required] | - | No |
|
|
254
|
+
| `--chunk <path>` | Body field chunk [required] | - | No |
|
|
255
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
256
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
257
|
+
| `--json` | Output in JSON format | - | No |
|
|
258
|
+
|
|
259
|
+
#### `ai chat complete-attachment-upload`
|
|
260
|
+
|
|
261
|
+
Finish an upload once every byte has arrived
|
|
262
|
+
|
|
263
|
+
**Usage:** `ai chat complete-attachment-upload <public-id> <upload-id> [options]`
|
|
264
|
+
|
|
265
|
+
**Options:**
|
|
266
|
+
|
|
267
|
+
| Flag | Description | Default | Required |
|
|
268
|
+
|------|-------------|---------|----------|
|
|
269
|
+
| `--json` | Output in JSON format | - | No |
|
|
270
|
+
|
|
271
|
+
#### `ai chat upload-user-conversation-attachment`
|
|
272
|
+
|
|
273
|
+
Upload user conversation attachment
|
|
274
|
+
|
|
275
|
+
**Usage:** `ai chat upload-user-conversation-attachment <public-id> [options]`
|
|
276
|
+
|
|
277
|
+
**Options:**
|
|
278
|
+
|
|
279
|
+
| Flag | Description | Default | Required |
|
|
280
|
+
|------|-------------|---------|----------|
|
|
281
|
+
| `--file <path>` | Body field file [required] | - | No |
|
|
282
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
283
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
284
|
+
| `--json` | Output in JSON format | - | No |
|
|
285
|
+
|
|
286
|
+
#### `ai chat get-user-conversation-attachment`
|
|
287
|
+
|
|
288
|
+
Get user conversation attachment
|
|
289
|
+
|
|
290
|
+
**Usage:** `ai chat get-user-conversation-attachment <public-id> <attachment-id> [options]`
|
|
291
|
+
|
|
292
|
+
**Options:**
|
|
293
|
+
|
|
294
|
+
| Flag | Description | Default | Required |
|
|
295
|
+
|------|-------------|---------|----------|
|
|
296
|
+
| `--name <value>` | Query parameter name [required] | - | No |
|
|
297
|
+
| `-o, --output <path>` | Where to write the reply (default: stdout) | `-` | No |
|
|
298
|
+
| `--json` | Output in JSON format | - | No |
|
|
299
|
+
|
|
300
|
+
#### `ai chat compact-conversation`
|
|
301
|
+
|
|
302
|
+
Summarize the chat's older messages now
|
|
303
|
+
|
|
304
|
+
**Usage:** `ai chat compact-conversation <public-id> [options]`
|
|
305
|
+
|
|
306
|
+
**Options:**
|
|
307
|
+
|
|
308
|
+
| Flag | Description | Default | Required |
|
|
309
|
+
|------|-------------|---------|----------|
|
|
310
|
+
| `--json` | Output in JSON format | - | No |
|
|
311
|
+
|
|
312
|
+
#### `ai chat get-user-conversation-diagnostics`
|
|
313
|
+
|
|
314
|
+
Export the bounded, server-redacted diagnostic state Temps currently owns
|
|
315
|
+
|
|
316
|
+
**Usage:** `ai chat get-user-conversation-diagnostics <public-id> [options]`
|
|
317
|
+
|
|
318
|
+
**Options:**
|
|
319
|
+
|
|
320
|
+
| Flag | Description | Default | Required |
|
|
321
|
+
|------|-------------|---------|----------|
|
|
322
|
+
| `--limit <n>` | Persisted rows to include, newest window first (default/max 25) | - | No |
|
|
323
|
+
| `--json` | Output in JSON format | - | No |
|
|
324
|
+
|
|
325
|
+
#### `ai chat list-goals`
|
|
326
|
+
|
|
327
|
+
List the goals a chat is watching or has finished with, newest first
|
|
328
|
+
|
|
329
|
+
**Usage:** `ai chat list-goals <public-id> [options]`
|
|
330
|
+
|
|
331
|
+
**Options:**
|
|
332
|
+
|
|
333
|
+
| Flag | Description | Default | Required |
|
|
334
|
+
|------|-------------|---------|----------|
|
|
335
|
+
| `--json` | Output in JSON format | - | No |
|
|
336
|
+
|
|
337
|
+
#### `ai chat cancel-goal`
|
|
338
|
+
|
|
339
|
+
Stop watching a goal
|
|
340
|
+
|
|
341
|
+
**Usage:** `ai chat cancel-goal <public-id> <goal-id> [options]`
|
|
342
|
+
|
|
343
|
+
**Options:**
|
|
344
|
+
|
|
345
|
+
| Flag | Description | Default | Required |
|
|
346
|
+
|------|-------------|---------|----------|
|
|
347
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
348
|
+
| `--json` | Output in JSON format | - | No |
|
|
349
|
+
|
|
350
|
+
#### `ai chat retry-goal`
|
|
351
|
+
|
|
352
|
+
Give a failed or waiting goal a fresh attempt budget and check it again now
|
|
353
|
+
|
|
354
|
+
**Usage:** `ai chat retry-goal <public-id> <goal-id> [options]`
|
|
355
|
+
|
|
356
|
+
**Options:**
|
|
357
|
+
|
|
358
|
+
| Flag | Description | Default | Required |
|
|
359
|
+
|------|-------------|---------|----------|
|
|
360
|
+
| `--json` | Output in JSON format | - | No |
|
|
361
|
+
|
|
362
|
+
#### `ai chat send-user-message`
|
|
363
|
+
|
|
364
|
+
Submit a turn to a user-owned conversation
|
|
365
|
+
|
|
366
|
+
**Usage:** `ai chat send-user-message <public-id> [options]`
|
|
367
|
+
|
|
368
|
+
**Options:**
|
|
369
|
+
|
|
370
|
+
| Flag | Description | Default | Required |
|
|
371
|
+
|------|-------------|---------|----------|
|
|
372
|
+
| `--ai-model <value>` | Optional next-turn model, one advertised by the conversation's provider (or by 'ai_provider' when that is set) | - | No |
|
|
373
|
+
| `--ai-permission-mode <value>` | Optional next-turn permission mode for the pinned provider harness | - | No |
|
|
374
|
+
| `--ai-provider <value>` | Optional AI gateway provider ('gateway_key:<id>') for this and later turns | - | No |
|
|
375
|
+
| `--ai-thinking-level <value>` | Optional next-turn thinking level | - | No |
|
|
376
|
+
| `--attachments <json>` | Opaque references returned by the conversation attachment endpoint (JSON) | - | No |
|
|
377
|
+
| `--content <value>` | Body field content [required] | - | No |
|
|
378
|
+
| `--page-context <value>` | Optional, client-supplied description of the page/entity the user is currently viewing (e.g. a trace in a... | - | No |
|
|
379
|
+
| `--turn-id <value>` | Client-generated opaque idempotency key for this turn | - | No |
|
|
380
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
381
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
382
|
+
| `--json` | Output in JSON format | - | No |
|
|
383
|
+
|
|
384
|
+
#### `ai chat list-operations`
|
|
385
|
+
|
|
386
|
+
The deployments, backups and restores this chat started, newest first, with their current state
|
|
387
|
+
|
|
388
|
+
**Usage:** `ai chat list-operations <public-id> [options]`
|
|
389
|
+
|
|
390
|
+
**Options:**
|
|
391
|
+
|
|
392
|
+
| Flag | Description | Default | Required |
|
|
393
|
+
|------|-------------|---------|----------|
|
|
394
|
+
| `--json` | Output in JSON format | - | No |
|
|
395
|
+
|
|
396
|
+
#### `ai chat list-user-pending-actions`
|
|
397
|
+
|
|
398
|
+
List user pending actions
|
|
399
|
+
|
|
400
|
+
**Usage:** `ai chat list-user-pending-actions <public-id> [options]`
|
|
401
|
+
|
|
402
|
+
**Options:**
|
|
403
|
+
|
|
404
|
+
| Flag | Description | Default | Required |
|
|
405
|
+
|------|-------------|---------|----------|
|
|
406
|
+
| `--json` | Output in JSON format | - | No |
|
|
407
|
+
|
|
408
|
+
#### `ai chat update-user-permission-mode`
|
|
409
|
+
|
|
410
|
+
Update user permission mode
|
|
411
|
+
|
|
412
|
+
**Usage:** `ai chat update-user-permission-mode <public-id> [options]`
|
|
413
|
+
|
|
414
|
+
**Options:**
|
|
415
|
+
|
|
416
|
+
| Flag | Description | Default | Required |
|
|
417
|
+
|------|-------------|---------|----------|
|
|
418
|
+
| `--permission-mode <value>` | Provider permission mode to persist [required] | - | No |
|
|
419
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
420
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
421
|
+
| `--json` | Output in JSON format | - | No |
|
|
422
|
+
|
|
423
|
+
#### `ai chat resolve-user-permission`
|
|
424
|
+
|
|
425
|
+
Resolve user permission
|
|
426
|
+
|
|
427
|
+
**Usage:** `ai chat resolve-user-permission <public-id> <permission-id> [options]`
|
|
428
|
+
|
|
429
|
+
**Options:**
|
|
430
|
+
|
|
431
|
+
| Flag | Description | Default | Required |
|
|
432
|
+
|------|-------------|---------|----------|
|
|
433
|
+
| `--decision <json>` | The user's decision for a pending permission request (JSON) [required] | - | No |
|
|
434
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
435
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
436
|
+
| `--json` | Output in JSON format | - | No |
|
|
437
|
+
|
|
438
|
+
#### `ai chat list-resources`
|
|
439
|
+
|
|
440
|
+
The projects, databases and services, repositories and sandbox this chat made, with their current state
|
|
441
|
+
|
|
442
|
+
**Usage:** `ai chat list-resources <public-id> [options]`
|
|
443
|
+
|
|
444
|
+
**Options:**
|
|
445
|
+
|
|
446
|
+
| Flag | Description | Default | Required |
|
|
447
|
+
|------|-------------|---------|----------|
|
|
448
|
+
| `--json` | Output in JSON format | - | No |
|
|
449
|
+
|
|
450
|
+
#### `ai chat restore-user-conversation`
|
|
451
|
+
|
|
452
|
+
Restore a user-owned archived conversation
|
|
453
|
+
|
|
454
|
+
**Usage:** `ai chat restore-user-conversation <public-id> [options]`
|
|
455
|
+
|
|
456
|
+
**Options:**
|
|
457
|
+
|
|
458
|
+
| Flag | Description | Default | Required |
|
|
459
|
+
|------|-------------|---------|----------|
|
|
460
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
461
|
+
| `--json` | Output in JSON format | - | No |
|
|
462
|
+
|
|
463
|
+
#### `ai chat unlink-sandbox`
|
|
464
|
+
|
|
465
|
+
Unlink the chat's sandbox
|
|
466
|
+
|
|
467
|
+
**Usage:** `ai chat unlink-sandbox <public-id> [options]`
|
|
468
|
+
|
|
469
|
+
**Options:**
|
|
470
|
+
|
|
471
|
+
| Flag | Description | Default | Required |
|
|
472
|
+
|------|-------------|---------|----------|
|
|
473
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
474
|
+
| `--json` | Output in JSON format | - | No |
|
|
475
|
+
|
|
476
|
+
#### `ai chat get-sandbox`
|
|
477
|
+
|
|
478
|
+
Whether the chat can use a sandbox, and which one it is linked to
|
|
479
|
+
|
|
480
|
+
**Usage:** `ai chat get-sandbox <public-id> [options]`
|
|
481
|
+
|
|
482
|
+
**Options:**
|
|
483
|
+
|
|
484
|
+
| Flag | Description | Default | Required |
|
|
485
|
+
|------|-------------|---------|----------|
|
|
486
|
+
| `--json` | Output in JSON format | - | No |
|
|
487
|
+
|
|
488
|
+
#### `ai chat link-sandbox`
|
|
489
|
+
|
|
490
|
+
Link a sandbox to the chat, or create one for it
|
|
491
|
+
|
|
492
|
+
**Usage:** `ai chat link-sandbox <public-id> [options]`
|
|
493
|
+
|
|
494
|
+
**Options:**
|
|
495
|
+
|
|
496
|
+
| Flag | Description | Default | Required |
|
|
497
|
+
|------|-------------|---------|----------|
|
|
498
|
+
| `--create` | Create a fresh sandbox for this chat instead | - | No |
|
|
499
|
+
| `--no-create` | Set create to false | - | No |
|
|
500
|
+
| `--sandbox-id <value>` | Public id of one of the caller's own sandboxes | - | No |
|
|
501
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
502
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
503
|
+
| `--json` | Output in JSON format | - | No |
|
|
504
|
+
|
|
505
|
+
#### `ai chat get-sandbox-changes`
|
|
506
|
+
|
|
507
|
+
The uncommitted Git changes of every repository under the sandbox work directory
|
|
508
|
+
|
|
509
|
+
**Usage:** `ai chat get-sandbox-changes <public-id> [options]`
|
|
510
|
+
|
|
511
|
+
**Options:**
|
|
512
|
+
|
|
513
|
+
| Flag | Description | Default | Required |
|
|
514
|
+
|------|-------------|---------|----------|
|
|
515
|
+
| `--json` | Output in JSON format | - | No |
|
|
516
|
+
|
|
517
|
+
#### `ai chat get-sandbox-diff`
|
|
518
|
+
|
|
519
|
+
Both sides of one changed file: as last committed, and as it is now
|
|
520
|
+
|
|
521
|
+
**Usage:** `ai chat get-sandbox-diff <public-id> [options]`
|
|
522
|
+
|
|
523
|
+
**Options:**
|
|
524
|
+
|
|
525
|
+
| Flag | Description | Default | Required |
|
|
526
|
+
|------|-------------|---------|----------|
|
|
527
|
+
| `--repo <value>` | The repository root, absolute or relative to the work directory [required] | - | No |
|
|
528
|
+
| `--path <value>` | The file, relative to the repository root [required] | - | No |
|
|
529
|
+
| `--old-path <value>` | The path before a rename, relative to the repository root | - | No |
|
|
530
|
+
| `--json` | Output in JSON format | - | No |
|
|
531
|
+
|
|
532
|
+
#### `ai chat track-sandbox-changes`
|
|
533
|
+
|
|
534
|
+
Put a folder of the sandbox under Git, so its changes show from now on: a '.gitignore' for dependencies,..
|
|
535
|
+
|
|
536
|
+
**Usage:** `ai chat track-sandbox-changes <public-id> [options]`
|
|
537
|
+
|
|
538
|
+
**Options:**
|
|
539
|
+
|
|
540
|
+
| Flag | Description | Default | Required |
|
|
541
|
+
|------|-------------|---------|----------|
|
|
542
|
+
| `--path <value>` | Absolute, or relative to the work directory; the work directory when omitted | - | No |
|
|
543
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
544
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
545
|
+
| `--json` | Output in JSON format | - | No |
|
|
546
|
+
|
|
547
|
+
#### `ai chat read-sandbox-file`
|
|
548
|
+
|
|
549
|
+
One file of the chat's sandbox, for the viewer
|
|
550
|
+
|
|
551
|
+
**Usage:** `ai chat read-sandbox-file <public-id> [options]`
|
|
552
|
+
|
|
553
|
+
**Options:**
|
|
554
|
+
|
|
555
|
+
| Flag | Description | Default | Required |
|
|
556
|
+
|------|-------------|---------|----------|
|
|
557
|
+
| `--path <value>` | Absolute, or relative to the sandbox work directory [required] | - | No |
|
|
558
|
+
| `--json` | Output in JSON format | - | No |
|
|
559
|
+
|
|
560
|
+
#### `ai chat list-sandbox-files`
|
|
561
|
+
|
|
562
|
+
List one directory of the chat's sandbox: folders first, then files
|
|
563
|
+
|
|
564
|
+
**Usage:** `ai chat list-sandbox-files <public-id> [options]`
|
|
565
|
+
|
|
566
|
+
**Options:**
|
|
567
|
+
|
|
568
|
+
| Flag | Description | Default | Required |
|
|
569
|
+
|------|-------------|---------|----------|
|
|
570
|
+
| `--path <value>` | Absolute, or relative to the sandbox work directory | - | No |
|
|
571
|
+
| `--json` | Output in JSON format | - | No |
|
|
572
|
+
|
|
573
|
+
#### `ai chat connect-sandbox`
|
|
574
|
+
|
|
575
|
+
Let the chat's sandbox use a project's database
|
|
576
|
+
|
|
577
|
+
**Usage:** `ai chat connect-sandbox <public-id> [options]`
|
|
578
|
+
|
|
579
|
+
**Options:**
|
|
580
|
+
|
|
581
|
+
| Flag | Description | Default | Required |
|
|
582
|
+
|------|-------------|---------|----------|
|
|
583
|
+
| `--project-id <n>` | The project whose services the sandbox may use [required] | - | No |
|
|
584
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
585
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
586
|
+
| `--json` | Output in JSON format | - | No |
|
|
587
|
+
|
|
588
|
+
#### `ai chat disconnect-sandbox`
|
|
589
|
+
|
|
590
|
+
Stop the chat's sandbox using a project's database
|
|
591
|
+
|
|
592
|
+
**Usage:** `ai chat disconnect-sandbox <public-id> [options]`
|
|
593
|
+
|
|
594
|
+
**Options:**
|
|
595
|
+
|
|
596
|
+
| Flag | Description | Default | Required |
|
|
597
|
+
|------|-------------|---------|----------|
|
|
598
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
599
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
600
|
+
| `--json` | Output in JSON format | - | No |
|
|
601
|
+
|
|
602
|
+
#### `ai chat connect-sandbox-service`
|
|
603
|
+
|
|
604
|
+
Let the chat's sandbox use one service, whether or not it belongs to a project
|
|
605
|
+
|
|
606
|
+
**Usage:** `ai chat connect-sandbox-service <public-id> [options]`
|
|
607
|
+
|
|
608
|
+
**Options:**
|
|
609
|
+
|
|
610
|
+
| Flag | Description | Default | Required |
|
|
611
|
+
|------|-------------|---------|----------|
|
|
612
|
+
| `--project-id <n>` | A project the service is linked to | - | No |
|
|
613
|
+
| `--service-id <n>` | The service the sandbox may use [required] | - | No |
|
|
614
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
615
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
616
|
+
| `--json` | Output in JSON format | - | No |
|
|
617
|
+
|
|
618
|
+
#### `ai chat disconnect-sandbox-service`
|
|
619
|
+
|
|
620
|
+
Stop the chat's sandbox using one service
|
|
621
|
+
|
|
622
|
+
**Usage:** `ai chat disconnect-sandbox-service <public-id> <service-id> [options]`
|
|
623
|
+
|
|
624
|
+
**Options:**
|
|
625
|
+
|
|
626
|
+
| Flag | Description | Default | Required |
|
|
627
|
+
|------|-------------|---------|----------|
|
|
628
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
629
|
+
| `--json` | Output in JSON format | - | No |
|
|
630
|
+
|
|
631
|
+
#### `ai chat wake-sandbox`
|
|
632
|
+
|
|
633
|
+
Start the chat's sandbox if it went to sleep, so the preview and the assistant's next command find it up
|
|
634
|
+
|
|
635
|
+
**Usage:** `ai chat wake-sandbox <public-id> [options]`
|
|
636
|
+
|
|
637
|
+
**Options:**
|
|
638
|
+
|
|
639
|
+
| Flag | Description | Default | Required |
|
|
640
|
+
|------|-------------|---------|----------|
|
|
641
|
+
| `--json` | Output in JSON format | - | No |
|
|
642
|
+
|
|
643
|
+
#### `ai chat list-secret-requests`
|
|
644
|
+
|
|
645
|
+
List the credentials this chat has asked for and not yet used up or lost
|
|
646
|
+
|
|
647
|
+
**Usage:** `ai chat list-secret-requests <public-id> [options]`
|
|
648
|
+
|
|
649
|
+
**Options:**
|
|
650
|
+
|
|
651
|
+
| Flag | Description | Default | Required |
|
|
652
|
+
|------|-------------|---------|----------|
|
|
653
|
+
| `--json` | Output in JSON format | - | No |
|
|
654
|
+
|
|
655
|
+
#### `ai chat provide-secret`
|
|
656
|
+
|
|
657
|
+
Provide the credential the assistant asked for
|
|
658
|
+
|
|
659
|
+
**Usage:** `ai chat provide-secret <public-id> <secret-id> [options]`
|
|
660
|
+
|
|
661
|
+
**Options:**
|
|
662
|
+
|
|
663
|
+
| Flag | Description | Default | Required |
|
|
664
|
+
|------|-------------|---------|----------|
|
|
665
|
+
| `--value-stdin` | The credential [required] (read from stdin) | - | No |
|
|
666
|
+
| `--value-file <path>` | The credential [required] (read from a file) | - | No |
|
|
667
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
668
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
669
|
+
| `--json` | Output in JSON format | - | No |
|
|
670
|
+
|
|
671
|
+
#### `ai chat discard-secret`
|
|
672
|
+
|
|
673
|
+
Discard a credential request and anything already typed into it
|
|
674
|
+
|
|
675
|
+
**Usage:** `ai chat discard-secret <public-id> <secret-id> [options]`
|
|
676
|
+
|
|
677
|
+
**Options:**
|
|
678
|
+
|
|
679
|
+
| Flag | Description | Default | Required |
|
|
680
|
+
|------|-------------|---------|----------|
|
|
681
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
682
|
+
| `--json` | Output in JSON format | - | No |
|
|
683
|
+
|
|
684
|
+
#### `ai chat stop-user-turn`
|
|
685
|
+
|
|
686
|
+
Stop user turn
|
|
687
|
+
|
|
688
|
+
**Usage:** `ai chat stop-user-turn <public-id> [options]`
|
|
689
|
+
|
|
690
|
+
**Options:**
|
|
691
|
+
|
|
692
|
+
| Flag | Description | Default | Required |
|
|
693
|
+
|------|-------------|---------|----------|
|
|
694
|
+
| `--json` | Output in JSON format | - | No |
|
|
695
|
+
|
|
696
|
+
#### `ai chat get-suggestion-mode`
|
|
697
|
+
|
|
698
|
+
A chat's next-step suggestion setting, with the default it falls back to
|
|
699
|
+
|
|
700
|
+
**Usage:** `ai chat get-suggestion-mode <public-id> [options]`
|
|
701
|
+
|
|
702
|
+
**Options:**
|
|
703
|
+
|
|
704
|
+
| Flag | Description | Default | Required |
|
|
705
|
+
|------|-------------|---------|----------|
|
|
706
|
+
| `--json` | Output in JSON format | - | No |
|
|
707
|
+
|
|
708
|
+
#### `ai chat update-suggestion-mode`
|
|
709
|
+
|
|
710
|
+
Set a chat's own next-step suggestion mode, or clear it to follow the user's default
|
|
711
|
+
|
|
712
|
+
**Usage:** `ai chat update-suggestion-mode <public-id> [options]`
|
|
713
|
+
|
|
714
|
+
**Options:**
|
|
715
|
+
|
|
716
|
+
| Flag | Description | Default | Required |
|
|
717
|
+
|------|-------------|---------|----------|
|
|
718
|
+
| `--mode <value>` | What happens after each answer (one of: off, ask, always) | - | No |
|
|
719
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
720
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
721
|
+
| `--json` | Output in JSON format | - | No |
|
|
722
|
+
|
|
723
|
+
#### `ai chat suggest-next-steps`
|
|
724
|
+
|
|
725
|
+
Suggest a few next steps after the chat's latest answer
|
|
726
|
+
|
|
727
|
+
**Usage:** `ai chat suggest-next-steps <public-id> [options]`
|
|
728
|
+
|
|
729
|
+
**Options:**
|
|
730
|
+
|
|
731
|
+
| Flag | Description | Default | Required |
|
|
732
|
+
|------|-------------|---------|----------|
|
|
733
|
+
| `--answer <value>` | Cursor of the answer the user is looking at, from the message list | - | No |
|
|
734
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
735
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
736
|
+
| `--json` | Output in JSON format | - | No |
|
|
737
|
+
|
|
738
|
+
#### `ai chat get-user-conversation-usage`
|
|
739
|
+
|
|
740
|
+
What this conversation has cost so far
|
|
741
|
+
|
|
742
|
+
**Usage:** `ai chat get-user-conversation-usage <public-id> [options]`
|
|
743
|
+
|
|
744
|
+
**Options:**
|
|
745
|
+
|
|
746
|
+
| Flag | Description | Default | Required |
|
|
747
|
+
|------|-------------|---------|----------|
|
|
748
|
+
| `--json` | Output in JSON format | - | No |
|
|
749
|
+
|
|
750
|
+
#### `ai chat leave-workspace`
|
|
751
|
+
|
|
752
|
+
Take this chat out of its workspace
|
|
753
|
+
|
|
754
|
+
**Usage:** `ai chat leave-workspace <public-id> [options]`
|
|
755
|
+
|
|
756
|
+
**Options:**
|
|
757
|
+
|
|
758
|
+
| Flag | Description | Default | Required |
|
|
759
|
+
|------|-------------|---------|----------|
|
|
760
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
761
|
+
| `--json` | Output in JSON format | - | No |
|
|
762
|
+
|
|
763
|
+
#### `ai chat get-workspace`
|
|
764
|
+
|
|
765
|
+
The workspace this chat is in, with its other chats
|
|
766
|
+
|
|
767
|
+
**Usage:** `ai chat get-workspace <public-id> [options]`
|
|
768
|
+
|
|
769
|
+
**Options:**
|
|
770
|
+
|
|
771
|
+
| Flag | Description | Default | Required |
|
|
772
|
+
|------|-------------|---------|----------|
|
|
773
|
+
| `--json` | Output in JSON format | - | No |
|
|
774
|
+
|
|
775
|
+
#### `ai chat set-workspace`
|
|
776
|
+
|
|
777
|
+
Put this chat in a workspace, creating it when asked
|
|
778
|
+
|
|
779
|
+
**Usage:** `ai chat set-workspace <public-id> [options]`
|
|
780
|
+
|
|
781
|
+
**Options:**
|
|
782
|
+
|
|
783
|
+
| Flag | Description | Default | Required |
|
|
784
|
+
|------|-------------|---------|----------|
|
|
785
|
+
| `--application-id <value>` | Body field application_id | - | No |
|
|
786
|
+
| `--create <json>` | A new workspace to create for the chat (JSON) | - | No |
|
|
787
|
+
| `--keep-sandbox <value>` | Which sandbox the chats keep when both the chat and the workspace have one (one of: workspace, chat) | - | No |
|
|
788
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
789
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
790
|
+
| `--json` | Output in JSON format | - | No |
|
|
791
|
+
|
|
792
|
+
#### `ai chat get-user-pending-action`
|
|
793
|
+
|
|
794
|
+
Get user pending action
|
|
795
|
+
|
|
796
|
+
**Usage:** `ai chat get-user-pending-action <action-public-id> [options]`
|
|
797
|
+
|
|
798
|
+
**Options:**
|
|
799
|
+
|
|
800
|
+
| Flag | Description | Default | Required |
|
|
801
|
+
|------|-------------|---------|----------|
|
|
802
|
+
| `--json` | Output in JSON format | - | No |
|
|
803
|
+
|
|
804
|
+
#### `ai chat confirm-user-pending-action`
|
|
805
|
+
|
|
806
|
+
Confirm user pending action
|
|
807
|
+
|
|
808
|
+
**Usage:** `ai chat confirm-user-pending-action <action-public-id> [options]`
|
|
809
|
+
|
|
810
|
+
**Options:**
|
|
811
|
+
|
|
812
|
+
| Flag | Description | Default | Required |
|
|
813
|
+
|------|-------------|---------|----------|
|
|
814
|
+
| `--json` | Output in JSON format | - | No |
|
|
815
|
+
|
|
816
|
+
#### `ai chat reject-user-pending-action`
|
|
817
|
+
|
|
818
|
+
Reject user pending action
|
|
819
|
+
|
|
820
|
+
**Usage:** `ai chat reject-user-pending-action <action-public-id> [options]`
|
|
821
|
+
|
|
822
|
+
**Options:**
|
|
823
|
+
|
|
824
|
+
| Flag | Description | Default | Required |
|
|
825
|
+
|------|-------------|---------|----------|
|
|
826
|
+
| `--json` | Output in JSON format | - | No |
|
|
827
|
+
|
|
828
|
+
#### `ai chat get-suggestion-default`
|
|
829
|
+
|
|
830
|
+
The user's default for next-step suggestions
|
|
831
|
+
|
|
832
|
+
**Options:**
|
|
833
|
+
|
|
834
|
+
| Flag | Description | Default | Required |
|
|
835
|
+
|------|-------------|---------|----------|
|
|
836
|
+
| `--json` | Output in JSON format | - | No |
|
|
837
|
+
|
|
838
|
+
#### `ai chat update-suggestion-default`
|
|
839
|
+
|
|
840
|
+
Set the user's default for every chat that does not set its own mode
|
|
841
|
+
|
|
842
|
+
**Options:**
|
|
843
|
+
|
|
844
|
+
| Flag | Description | Default | Required |
|
|
845
|
+
|------|-------------|---------|----------|
|
|
846
|
+
| `--mode <value>` | What happens after each answer (one of: off, ask, always) [required] | - | No |
|
|
847
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
848
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
849
|
+
| `--json` | Output in JSON format | - | No |
|
|
850
|
+
|
|
851
|
+
#### `ai chat find-conversation`
|
|
852
|
+
|
|
853
|
+
Find the current user's existing chat for a context (returns 'null' if none yet)
|
|
854
|
+
|
|
855
|
+
**Options:**
|
|
856
|
+
|
|
857
|
+
| Flag | Description | Default | Required |
|
|
858
|
+
|------|-------------|---------|----------|
|
|
859
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
860
|
+
| `--context-type <value>` | Query parameter context_type [required] | - | No |
|
|
861
|
+
| `--context-id <value>` | Query parameter context_id [required] | - | No |
|
|
862
|
+
| `--json` | Output in JSON format | - | No |
|
|
863
|
+
|
|
864
|
+
#### `ai chat create-conversation`
|
|
865
|
+
|
|
866
|
+
Get-or-create the current user's private chat for a context
|
|
867
|
+
|
|
868
|
+
**Options:**
|
|
869
|
+
|
|
870
|
+
| Flag | Description | Default | Required |
|
|
871
|
+
|------|-------------|---------|----------|
|
|
872
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
873
|
+
| `--ai-model <value>` | Body field ai_model | - | No |
|
|
874
|
+
| `--ai-permission-mode <value>` | Body field ai_permission_mode | - | No |
|
|
875
|
+
| `--ai-provider <value>` | Provider pinned to this conversation | - | No |
|
|
876
|
+
| `--ai-thinking-level <value>` | Body field ai_thinking_level | - | No |
|
|
877
|
+
| `--context-id <value>` | The entity id (ints stringified) [required] | - | No |
|
|
878
|
+
| `--context-type <value>` | e.g. '"deployment"' [required] | - | No |
|
|
879
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
880
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
881
|
+
| `--json` | Output in JSON format | - | No |
|
|
882
|
+
|
|
883
|
+
#### `ai chat list-conversations`
|
|
884
|
+
|
|
885
|
+
List the current user's active conversations for a project, most-recently-active first
|
|
886
|
+
|
|
887
|
+
**Options:**
|
|
888
|
+
|
|
889
|
+
| Flag | Description | Default | Required |
|
|
890
|
+
|------|-------------|---------|----------|
|
|
891
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
892
|
+
| `--json` | Output in JSON format | - | No |
|
|
893
|
+
|
|
894
|
+
#### `ai chat get-conversation`
|
|
895
|
+
|
|
896
|
+
One bounded conversation-history page (excluding internal context rows)
|
|
897
|
+
|
|
898
|
+
**Usage:** `ai chat get-conversation <public-id> [options]`
|
|
899
|
+
|
|
900
|
+
**Options:**
|
|
901
|
+
|
|
902
|
+
| Flag | Description | Default | Required |
|
|
903
|
+
|------|-------------|---------|----------|
|
|
904
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
905
|
+
| `--before <value>` | Opaque next_before cursor returned by the previous page | - | No |
|
|
906
|
+
| `--limit <n>` | Messages per page (default 50, maximum 100) | - | No |
|
|
907
|
+
| `--json` | Output in JSON format | - | No |
|
|
908
|
+
|
|
909
|
+
#### `ai chat rename-conversation`
|
|
910
|
+
|
|
911
|
+
Rename a conversation (set its human-facing title)
|
|
912
|
+
|
|
913
|
+
**Usage:** `ai chat rename-conversation <public-id> [options]`
|
|
914
|
+
|
|
915
|
+
**Options:**
|
|
916
|
+
|
|
917
|
+
| Flag | Description | Default | Required |
|
|
918
|
+
|------|-------------|---------|----------|
|
|
919
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
920
|
+
| `--title <value>` | New human-facing title [required] | - | No |
|
|
921
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
922
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
923
|
+
| `--json` | Output in JSON format | - | No |
|
|
924
|
+
|
|
925
|
+
#### `ai chat archive-conversation`
|
|
926
|
+
|
|
927
|
+
Archive (soft-delete) a conversation
|
|
928
|
+
|
|
929
|
+
**Usage:** `ai chat archive-conversation <public-id> [options]`
|
|
930
|
+
|
|
931
|
+
**Options:**
|
|
932
|
+
|
|
933
|
+
| Flag | Description | Default | Required |
|
|
934
|
+
|------|-------------|---------|----------|
|
|
935
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
936
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
937
|
+
| `--json` | Output in JSON format | - | No |
|
|
938
|
+
|
|
939
|
+
#### `ai chat send-message`
|
|
940
|
+
|
|
941
|
+
Submit a user message and start a server-owned turn
|
|
942
|
+
|
|
943
|
+
**Usage:** `ai chat send-message <public-id> [options]`
|
|
944
|
+
|
|
945
|
+
**Options:**
|
|
946
|
+
|
|
947
|
+
| Flag | Description | Default | Required |
|
|
948
|
+
|------|-------------|---------|----------|
|
|
949
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
950
|
+
| `--ai-model <value>` | Optional next-turn model, one advertised by the conversation's provider (or by 'ai_provider' when that is set) | - | No |
|
|
951
|
+
| `--ai-permission-mode <value>` | Optional next-turn permission mode for the pinned provider harness | - | No |
|
|
952
|
+
| `--ai-provider <value>` | Optional AI gateway provider ('gateway_key:<id>') for this and later turns | - | No |
|
|
953
|
+
| `--ai-thinking-level <value>` | Optional next-turn thinking level | - | No |
|
|
954
|
+
| `--attachments <json>` | Opaque references returned by the conversation attachment endpoint (JSON) | - | No |
|
|
955
|
+
| `--content <value>` | Body field content [required] | - | No |
|
|
956
|
+
| `--page-context <value>` | Optional, client-supplied description of the page/entity the user is currently viewing (e.g. a trace in a... | - | No |
|
|
957
|
+
| `--turn-id <value>` | Client-generated opaque idempotency key for this turn | - | No |
|
|
958
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
959
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
960
|
+
| `--json` | Output in JSON format | - | No |
|
|
961
|
+
|
|
962
|
+
#### `ai chat list-pending-actions`
|
|
963
|
+
|
|
964
|
+
List all pending actions for a conversation (most-recently-proposed first)
|
|
965
|
+
|
|
966
|
+
**Usage:** `ai chat list-pending-actions <public-id> [options]`
|
|
967
|
+
|
|
968
|
+
**Options:**
|
|
969
|
+
|
|
970
|
+
| Flag | Description | Default | Required |
|
|
971
|
+
|------|-------------|---------|----------|
|
|
972
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
973
|
+
| `--json` | Output in JSON format | - | No |
|
|
974
|
+
|
|
975
|
+
#### `ai chat update-permission-mode`
|
|
976
|
+
|
|
977
|
+
Update permission mode
|
|
978
|
+
|
|
979
|
+
**Usage:** `ai chat update-permission-mode <public-id> [options]`
|
|
980
|
+
|
|
981
|
+
**Options:**
|
|
982
|
+
|
|
983
|
+
| Flag | Description | Default | Required |
|
|
984
|
+
|------|-------------|---------|----------|
|
|
985
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
986
|
+
| `--permission-mode <value>` | Provider permission mode to persist [required] | - | No |
|
|
987
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
988
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
989
|
+
| `--json` | Output in JSON format | - | No |
|
|
990
|
+
|
|
991
|
+
#### `ai chat resolve-permission`
|
|
992
|
+
|
|
993
|
+
Resolve permission
|
|
994
|
+
|
|
995
|
+
**Usage:** `ai chat resolve-permission <public-id> <permission-id> [options]`
|
|
996
|
+
|
|
997
|
+
**Options:**
|
|
998
|
+
|
|
999
|
+
| Flag | Description | Default | Required |
|
|
1000
|
+
|------|-------------|---------|----------|
|
|
1001
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1002
|
+
| `--decision <json>` | The user's decision for a pending permission request (JSON) [required] | - | No |
|
|
1003
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1004
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1005
|
+
| `--json` | Output in JSON format | - | No |
|
|
1006
|
+
|
|
1007
|
+
#### `ai chat stop-turn`
|
|
1008
|
+
|
|
1009
|
+
Explicitly cancel the server-owned active turn
|
|
1010
|
+
|
|
1011
|
+
**Usage:** `ai chat stop-turn <public-id> [options]`
|
|
1012
|
+
|
|
1013
|
+
**Options:**
|
|
1014
|
+
|
|
1015
|
+
| Flag | Description | Default | Required |
|
|
1016
|
+
|------|-------------|---------|----------|
|
|
1017
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1018
|
+
| `--json` | Output in JSON format | - | No |
|
|
1019
|
+
|
|
1020
|
+
#### `ai chat get-pending-action`
|
|
1021
|
+
|
|
1022
|
+
Get a single pending action by its public id (scoped to the project)
|
|
1023
|
+
|
|
1024
|
+
**Usage:** `ai chat get-pending-action <action-public-id> [options]`
|
|
1025
|
+
|
|
1026
|
+
**Options:**
|
|
1027
|
+
|
|
1028
|
+
| Flag | Description | Default | Required |
|
|
1029
|
+
|------|-------------|---------|----------|
|
|
1030
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1031
|
+
| `--json` | Output in JSON format | - | No |
|
|
1032
|
+
|
|
1033
|
+
#### `ai chat confirm-pending-action`
|
|
1034
|
+
|
|
1035
|
+
Confirm a proposed AI action: validate permission, atomically claim, execute, persist outcome
|
|
1036
|
+
|
|
1037
|
+
**Usage:** `ai chat confirm-pending-action <action-public-id> [options]`
|
|
1038
|
+
|
|
1039
|
+
**Options:**
|
|
1040
|
+
|
|
1041
|
+
| Flag | Description | Default | Required |
|
|
1042
|
+
|------|-------------|---------|----------|
|
|
1043
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1044
|
+
| `--json` | Output in JSON format | - | No |
|
|
1045
|
+
|
|
1046
|
+
#### `ai chat reject-pending-action`
|
|
1047
|
+
|
|
1048
|
+
Reject a proposed AI action (no execution)
|
|
1049
|
+
|
|
1050
|
+
**Usage:** `ai chat reject-pending-action <action-public-id> [options]`
|
|
1051
|
+
|
|
1052
|
+
**Options:**
|
|
1053
|
+
|
|
1054
|
+
| Flag | Description | Default | Required |
|
|
1055
|
+
|------|-------------|---------|----------|
|
|
1056
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1057
|
+
| `--json` | Output in JSON format | - | No |
|
|
1058
|
+
|
|
1059
|
+
### `ai provider`
|
|
1060
|
+
|
|
1061
|
+
Manage the AI CLIs (Claude Code, Codex) Temps runs on this server
|
|
1062
|
+
|
|
1063
|
+
**Subcommands:**
|
|
1064
|
+
|
|
1065
|
+
- `login` - Sign an AI CLI in to your subscription. Prints a link to open, then asks for the code (Claude) or shows a device code (Codex)
|
|
1066
|
+
|
|
1067
|
+
#### `ai provider login`
|
|
1068
|
+
|
|
1069
|
+
Sign an AI CLI in to your subscription. Prints a link to open, then asks for the code (Claude) or shows a device code (Codex)
|
|
1070
|
+
|
|
1071
|
+
**Usage:** `ai provider login <provider-id> [options]`
|
|
1072
|
+
|
|
1073
|
+
**Options:**
|
|
1074
|
+
|
|
1075
|
+
| Flag | Description | Default | Required |
|
|
1076
|
+
|------|-------------|---------|----------|
|
|
1077
|
+
| `--json` | Print the final sign-in state as JSON | - | No |
|
|
1078
|
+
|
|
1079
|
+
### `ai readiness`
|
|
1080
|
+
|
|
1081
|
+
Show which AI prerequisites this project meets, and how to fix the rest
|
|
1082
|
+
|
|
1083
|
+
**Usage:** `ai readiness [project] [options]`
|
|
1084
|
+
|
|
1085
|
+
**Options:**
|
|
1086
|
+
|
|
1087
|
+
| Flag | Description | Default | Required |
|
|
1088
|
+
|------|-------------|---------|----------|
|
|
1089
|
+
| `-p, --project <project>` | Project slug | - | No |
|
|
1090
|
+
| `--json` | Output in JSON format | - | No |
|
|
1091
|
+
|
|
1092
|
+
### `ai apps`
|
|
1093
|
+
|
|
1094
|
+
Apps commands
|
|
1095
|
+
|
|
1096
|
+
**Subcommands:**
|
|
1097
|
+
|
|
1098
|
+
- `list-applications` - List applications
|
|
1099
|
+
- `create-application` - Create application
|
|
1100
|
+
- `archive-application` - Archive an AI application
|
|
1101
|
+
- `get-application` - Get application
|
|
1102
|
+
- `rename-application` - Rename an AI application
|
|
1103
|
+
- `list-application-conversations` - List application conversations
|
|
1104
|
+
- `create-application-conversation` - Create application conversation
|
|
1105
|
+
- `list-thread-artifacts` - List thread artifacts
|
|
1106
|
+
- `create-thread-artifact` - Create thread artifact
|
|
1107
|
+
- `list-application-git-connections` - List application git connections
|
|
1108
|
+
- `bind-application-git-connection` - Bind application git connection
|
|
1109
|
+
- `disconnect-application-git-connection` - Disconnect application git connection
|
|
1110
|
+
- `create-application-preview-link` - Mint a short-lived URL for a port running in the application harness sandbox
|
|
1111
|
+
- `create-application-project` - Create and link an application project
|
|
1112
|
+
- `link-application` - Link an existing project to an application
|
|
1113
|
+
- `unlink-application` - Unlink an application project
|
|
1114
|
+
- `deploy-application-workspace` - Deploy an application workspace project with Drop
|
|
1115
|
+
- `set-application-primary` - Choose the application's primary project
|
|
1116
|
+
- `write-application-workspace-files` - Write a bounded batch of local files into an application project
|
|
1117
|
+
- `import-application-workspace-git` - Import a Git repository into an application project
|
|
1118
|
+
- `restore-application` - Restore an archived AI application
|
|
1119
|
+
- `get-application-workspace` - Get application workspace
|
|
1120
|
+
- `update-application-workspace` - Update desired application workspace resources
|
|
1121
|
+
- `control-application-workspace` - Control an application workspace
|
|
1122
|
+
- `get-application-workspace-changes` - Get application workspace changes
|
|
1123
|
+
- `get-application-workspace-diff` - Get application workspace diff
|
|
1124
|
+
- `get-application-workspace-directory` - Get application workspace directory
|
|
1125
|
+
- `get-application-workspace-file` - Get application workspace file
|
|
1126
|
+
- `download-application-workspace-file` - Download one application workspace file
|
|
1127
|
+
- `upload-application-workspace-files` - Upload files into an application workspace
|
|
1128
|
+
- `attach-application-workspace-terminal` - Attach an interactive terminal to an application workspace
|
|
1129
|
+
- `blueprint` - Blueprint commands
|
|
1130
|
+
|
|
1131
|
+
#### `ai apps list-applications`
|
|
1132
|
+
|
|
1133
|
+
List applications
|
|
1134
|
+
|
|
1135
|
+
**Options:**
|
|
1136
|
+
|
|
1137
|
+
| Flag | Description | Default | Required |
|
|
1138
|
+
|------|-------------|---------|----------|
|
|
1139
|
+
| `--status <value>` | Resource lifecycle state (defaults to active) (one of: active, archived) | - | No |
|
|
1140
|
+
| `--page <n>` | Page number (1-indexed) | - | No |
|
|
1141
|
+
| `--page-size <n>` | Number of applications or conversations per page (clamped to 1..=100) | - | No |
|
|
1142
|
+
| `--json` | Output in JSON format | - | No |
|
|
1143
|
+
|
|
1144
|
+
#### `ai apps create-application`
|
|
1145
|
+
|
|
1146
|
+
Create application
|
|
1147
|
+
|
|
1148
|
+
**Options:**
|
|
1149
|
+
|
|
1150
|
+
| Flag | Description | Default | Required |
|
|
1151
|
+
|------|-------------|---------|----------|
|
|
1152
|
+
| `--description <value>` | Body field description | - | No |
|
|
1153
|
+
| `--name <value>` | Body field name [required] | - | No |
|
|
1154
|
+
| `--project-ids <n>` | Body field project_ids (repeatable) | - | No |
|
|
1155
|
+
| `--starter-project <json>` | Body field starter_project (JSON) | - | No |
|
|
1156
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1157
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1158
|
+
| `--json` | Output in JSON format | - | No |
|
|
1159
|
+
|
|
1160
|
+
#### `ai apps archive-application`
|
|
1161
|
+
|
|
1162
|
+
Archive an AI application
|
|
1163
|
+
|
|
1164
|
+
**Usage:** `ai apps archive-application <application-public-id> [options]`
|
|
1165
|
+
|
|
1166
|
+
**Options:**
|
|
1167
|
+
|
|
1168
|
+
| Flag | Description | Default | Required |
|
|
1169
|
+
|------|-------------|---------|----------|
|
|
1170
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
1171
|
+
| `--json` | Output in JSON format | - | No |
|
|
1172
|
+
|
|
1173
|
+
#### `ai apps get-application`
|
|
1174
|
+
|
|
1175
|
+
Get application
|
|
1176
|
+
|
|
1177
|
+
**Usage:** `ai apps get-application <application-public-id> [options]`
|
|
1178
|
+
|
|
1179
|
+
**Options:**
|
|
1180
|
+
|
|
1181
|
+
| Flag | Description | Default | Required |
|
|
1182
|
+
|------|-------------|---------|----------|
|
|
1183
|
+
| `--status <value>` | Resource lifecycle state (defaults to active) (one of: active, archived) | - | No |
|
|
1184
|
+
| `--json` | Output in JSON format | - | No |
|
|
1185
|
+
|
|
1186
|
+
#### `ai apps rename-application`
|
|
1187
|
+
|
|
1188
|
+
Rename an AI application
|
|
1189
|
+
|
|
1190
|
+
**Usage:** `ai apps rename-application <application-public-id> [options]`
|
|
1191
|
+
|
|
1192
|
+
**Options:**
|
|
1193
|
+
|
|
1194
|
+
| Flag | Description | Default | Required |
|
|
1195
|
+
|------|-------------|---------|----------|
|
|
1196
|
+
| `--name <value>` | New name shown for the application [required] | - | No |
|
|
1197
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1198
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1199
|
+
| `--json` | Output in JSON format | - | No |
|
|
1200
|
+
|
|
1201
|
+
#### `ai apps list-application-conversations`
|
|
1202
|
+
|
|
1203
|
+
List application conversations
|
|
1204
|
+
|
|
1205
|
+
**Usage:** `ai apps list-application-conversations <application-public-id> [options]`
|
|
1206
|
+
|
|
1207
|
+
**Options:**
|
|
1208
|
+
|
|
1209
|
+
| Flag | Description | Default | Required |
|
|
1210
|
+
|------|-------------|---------|----------|
|
|
1211
|
+
| `--status <value>` | Resource lifecycle state (defaults to active) (one of: active, archived) | - | No |
|
|
1212
|
+
| `--page <n>` | Page number (1-indexed) | - | No |
|
|
1213
|
+
| `--page-size <n>` | Number of applications or conversations per page (clamped to 1..=100) | - | No |
|
|
1214
|
+
| `--json` | Output in JSON format | - | No |
|
|
1215
|
+
|
|
1216
|
+
#### `ai apps create-application-conversation`
|
|
1217
|
+
|
|
1218
|
+
Create application conversation
|
|
1219
|
+
|
|
1220
|
+
**Usage:** `ai apps create-application-conversation <application-public-id> [options]`
|
|
1221
|
+
|
|
1222
|
+
**Options:**
|
|
1223
|
+
|
|
1224
|
+
| Flag | Description | Default | Required |
|
|
1225
|
+
|------|-------------|---------|----------|
|
|
1226
|
+
| `--ai-provider <value>` | A registered development harness (for example 'claude_cli') | - | No |
|
|
1227
|
+
| `--kind <value>` | 'ai' (default) or 'terminal' | - | No |
|
|
1228
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1229
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1230
|
+
| `--json` | Output in JSON format | - | No |
|
|
1231
|
+
|
|
1232
|
+
#### `ai apps list-thread-artifacts`
|
|
1233
|
+
|
|
1234
|
+
List thread artifacts
|
|
1235
|
+
|
|
1236
|
+
**Usage:** `ai apps list-thread-artifacts <application-public-id> <conversation-public-id> [options]`
|
|
1237
|
+
|
|
1238
|
+
**Options:**
|
|
1239
|
+
|
|
1240
|
+
| Flag | Description | Default | Required |
|
|
1241
|
+
|------|-------------|---------|----------|
|
|
1242
|
+
| `--json` | Output in JSON format | - | No |
|
|
1243
|
+
|
|
1244
|
+
#### `ai apps create-thread-artifact`
|
|
1245
|
+
|
|
1246
|
+
Create thread artifact
|
|
1247
|
+
|
|
1248
|
+
**Usage:** `ai apps create-thread-artifact <application-public-id> <conversation-public-id> [options]`
|
|
1249
|
+
|
|
1250
|
+
**Options:**
|
|
1251
|
+
|
|
1252
|
+
| Flag | Description | Default | Required |
|
|
1253
|
+
|------|-------------|---------|----------|
|
|
1254
|
+
| `--kind <value>` | Body field kind [required] | - | No |
|
|
1255
|
+
| `--payload <json>` | Body field payload (JSON) [required] | - | No |
|
|
1256
|
+
| `--title <value>` | Body field title | - | No |
|
|
1257
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1258
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1259
|
+
| `--json` | Output in JSON format | - | No |
|
|
1260
|
+
|
|
1261
|
+
#### `ai apps list-application-git-connections`
|
|
1262
|
+
|
|
1263
|
+
List application git connections
|
|
1264
|
+
|
|
1265
|
+
**Usage:** `ai apps list-application-git-connections <application-public-id> [options]`
|
|
1266
|
+
|
|
1267
|
+
**Options:**
|
|
1268
|
+
|
|
1269
|
+
| Flag | Description | Default | Required |
|
|
1270
|
+
|------|-------------|---------|----------|
|
|
1271
|
+
| `--json` | Output in JSON format | - | No |
|
|
1272
|
+
|
|
1273
|
+
#### `ai apps bind-application-git-connection`
|
|
1274
|
+
|
|
1275
|
+
Bind application git connection
|
|
1276
|
+
|
|
1277
|
+
**Usage:** `ai apps bind-application-git-connection <application-public-id> [options]`
|
|
1278
|
+
|
|
1279
|
+
**Options:**
|
|
1280
|
+
|
|
1281
|
+
| Flag | Description | Default | Required |
|
|
1282
|
+
|------|-------------|---------|----------|
|
|
1283
|
+
| `--connection-id <n>` | Body field connectionId [required] | - | No |
|
|
1284
|
+
| `--project-id <n>` | Body field projectId [required] | - | No |
|
|
1285
|
+
| `--remote-name <value>` | Body field remoteName [required] | - | No |
|
|
1286
|
+
| `--repository-id <n>` | Body field repositoryId [required] | - | No |
|
|
1287
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1288
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1289
|
+
| `--json` | Output in JSON format | - | No |
|
|
1290
|
+
|
|
1291
|
+
#### `ai apps disconnect-application-git-connection`
|
|
1292
|
+
|
|
1293
|
+
Disconnect application git connection
|
|
1294
|
+
|
|
1295
|
+
**Usage:** `ai apps disconnect-application-git-connection <application-public-id> <binding-id> [options]`
|
|
1296
|
+
|
|
1297
|
+
**Options:**
|
|
1298
|
+
|
|
1299
|
+
| Flag | Description | Default | Required |
|
|
1300
|
+
|------|-------------|---------|----------|
|
|
1301
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
1302
|
+
| `--json` | Output in JSON format | - | No |
|
|
1303
|
+
|
|
1304
|
+
#### `ai apps create-application-preview-link`
|
|
1305
|
+
|
|
1306
|
+
Mint a short-lived URL for a port running in the application harness sandbox
|
|
1307
|
+
|
|
1308
|
+
**Usage:** `ai apps create-application-preview-link <application-public-id> [options]`
|
|
1309
|
+
|
|
1310
|
+
**Options:**
|
|
1311
|
+
|
|
1312
|
+
| Flag | Description | Default | Required |
|
|
1313
|
+
|------|-------------|---------|----------|
|
|
1314
|
+
| `--path <value>` | Optional same-origin path to open after the preview grant is exchanged | - | No |
|
|
1315
|
+
| `--port <n>` | The development server port detected or selected in the sandbox [required] | - | No |
|
|
1316
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1317
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1318
|
+
| `--json` | Output in JSON format | - | No |
|
|
1319
|
+
|
|
1320
|
+
#### `ai apps create-application-project`
|
|
1321
|
+
|
|
1322
|
+
Create and link an application project
|
|
1323
|
+
|
|
1324
|
+
**Usage:** `ai apps create-application-project <application-public-id> [options]`
|
|
1325
|
+
|
|
1326
|
+
**Options:**
|
|
1327
|
+
|
|
1328
|
+
| Flag | Description | Default | Required |
|
|
1329
|
+
|------|-------------|---------|----------|
|
|
1330
|
+
| `--exposed-port <n>` | Body field exposed_port | - | No |
|
|
1331
|
+
| `--name <value>` | Body field name [required] | - | No |
|
|
1332
|
+
| `--preset <value>` | Deployment preset for the project | - | No |
|
|
1333
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1334
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1335
|
+
| `--json` | Output in JSON format | - | No |
|
|
1336
|
+
|
|
1337
|
+
#### `ai apps link-application`
|
|
1338
|
+
|
|
1339
|
+
Link an existing project to an application
|
|
1340
|
+
|
|
1341
|
+
**Usage:** `ai apps link-application <application-public-id> [options]`
|
|
1342
|
+
|
|
1343
|
+
**Options:**
|
|
1344
|
+
|
|
1345
|
+
| Flag | Description | Default | Required |
|
|
1346
|
+
|------|-------------|---------|----------|
|
|
1347
|
+
| `--project-id <n>` | Body field project_id [required] | - | No |
|
|
1348
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1349
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1350
|
+
| `--json` | Output in JSON format | - | No |
|
|
1351
|
+
|
|
1352
|
+
#### `ai apps unlink-application`
|
|
1353
|
+
|
|
1354
|
+
Unlink an application project
|
|
1355
|
+
|
|
1356
|
+
**Usage:** `ai apps unlink-application <application-public-id> [options]`
|
|
1357
|
+
|
|
1358
|
+
**Options:**
|
|
1359
|
+
|
|
1360
|
+
| Flag | Description | Default | Required |
|
|
1361
|
+
|------|-------------|---------|----------|
|
|
1362
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1363
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
1364
|
+
| `--json` | Output in JSON format | - | No |
|
|
1365
|
+
|
|
1366
|
+
#### `ai apps deploy-application-workspace`
|
|
1367
|
+
|
|
1368
|
+
Deploy an application workspace project with Drop
|
|
1369
|
+
|
|
1370
|
+
**Usage:** `ai apps deploy-application-workspace <application-public-id> [options]`
|
|
1371
|
+
|
|
1372
|
+
**Options:**
|
|
1373
|
+
|
|
1374
|
+
| Flag | Description | Default | Required |
|
|
1375
|
+
|------|-------------|---------|----------|
|
|
1376
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1377
|
+
| `--environment-id <n>` | Target environment | - | No |
|
|
1378
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1379
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1380
|
+
| `--json` | Output in JSON format | - | No |
|
|
1381
|
+
|
|
1382
|
+
#### `ai apps set-application-primary`
|
|
1383
|
+
|
|
1384
|
+
Choose the application's primary project
|
|
1385
|
+
|
|
1386
|
+
**Usage:** `ai apps set-application-primary <application-public-id> [options]`
|
|
1387
|
+
|
|
1388
|
+
**Options:**
|
|
1389
|
+
|
|
1390
|
+
| Flag | Description | Default | Required |
|
|
1391
|
+
|------|-------------|---------|----------|
|
|
1392
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1393
|
+
| `--json` | Output in JSON format | - | No |
|
|
1394
|
+
|
|
1395
|
+
#### `ai apps write-application-workspace-files`
|
|
1396
|
+
|
|
1397
|
+
Write a bounded batch of local files into an application project
|
|
1398
|
+
|
|
1399
|
+
**Usage:** `ai apps write-application-workspace-files <application-public-id> [options]`
|
|
1400
|
+
|
|
1401
|
+
**Options:**
|
|
1402
|
+
|
|
1403
|
+
| Flag | Description | Default | Required |
|
|
1404
|
+
|------|-------------|---------|----------|
|
|
1405
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1406
|
+
| `--files <json>` | Body field files (JSON) [required] | - | No |
|
|
1407
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1408
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1409
|
+
| `--json` | Output in JSON format | - | No |
|
|
1410
|
+
|
|
1411
|
+
#### `ai apps import-application-workspace-git`
|
|
1412
|
+
|
|
1413
|
+
Import a Git repository into an application project
|
|
1414
|
+
|
|
1415
|
+
**Usage:** `ai apps import-application-workspace-git <application-public-id> [options]`
|
|
1416
|
+
|
|
1417
|
+
**Options:**
|
|
1418
|
+
|
|
1419
|
+
| Flag | Description | Default | Required |
|
|
1420
|
+
|------|-------------|---------|----------|
|
|
1421
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1422
|
+
| `--depth <n>` | Body field depth | - | No |
|
|
1423
|
+
| `--git-connection-id <n>` | Opaque user-owned connection reference | - | No |
|
|
1424
|
+
| `--revision <value>` | Body field revision | - | No |
|
|
1425
|
+
| `--url <value>` | Body field url [required] | - | No |
|
|
1426
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1427
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1428
|
+
| `--json` | Output in JSON format | - | No |
|
|
1429
|
+
|
|
1430
|
+
#### `ai apps restore-application`
|
|
1431
|
+
|
|
1432
|
+
Restore an archived AI application
|
|
1433
|
+
|
|
1434
|
+
**Usage:** `ai apps restore-application <application-public-id> [options]`
|
|
1435
|
+
|
|
1436
|
+
**Options:**
|
|
1437
|
+
|
|
1438
|
+
| Flag | Description | Default | Required |
|
|
1439
|
+
|------|-------------|---------|----------|
|
|
1440
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
1441
|
+
| `--json` | Output in JSON format | - | No |
|
|
1442
|
+
|
|
1443
|
+
#### `ai apps get-application-workspace`
|
|
1444
|
+
|
|
1445
|
+
Get application workspace
|
|
1446
|
+
|
|
1447
|
+
**Usage:** `ai apps get-application-workspace <application-public-id> [options]`
|
|
1448
|
+
|
|
1449
|
+
**Options:**
|
|
1450
|
+
|
|
1451
|
+
| Flag | Description | Default | Required |
|
|
1452
|
+
|------|-------------|---------|----------|
|
|
1453
|
+
| `--json` | Output in JSON format | - | No |
|
|
1454
|
+
|
|
1455
|
+
#### `ai apps update-application-workspace`
|
|
1456
|
+
|
|
1457
|
+
Update desired application workspace resources
|
|
1458
|
+
|
|
1459
|
+
**Usage:** `ai apps update-application-workspace <application-public-id> [options]`
|
|
1460
|
+
|
|
1461
|
+
**Options:**
|
|
1462
|
+
|
|
1463
|
+
| Flag | Description | Default | Required |
|
|
1464
|
+
|------|-------------|---------|----------|
|
|
1465
|
+
| `--cpu-limit <number>` | Body field cpu_limit | - | No |
|
|
1466
|
+
| `--disk-limit-mb <n>` | Body field disk_limit_mb | - | No |
|
|
1467
|
+
| `--idle-timeout-secs <n>` | Body field idle_timeout_secs | - | No |
|
|
1468
|
+
| `--image <value>` | Pinned Temps-managed daemon image | - | No |
|
|
1469
|
+
| `--memory-limit-mb <n>` | Body field memory_limit_mb | - | No |
|
|
1470
|
+
| `--pids-limit <n>` | Body field pids_limit | - | No |
|
|
1471
|
+
| `--runtime <value>` | Body field runtime | - | No |
|
|
1472
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1473
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1474
|
+
| `--json` | Output in JSON format | - | No |
|
|
1475
|
+
|
|
1476
|
+
#### `ai apps control-application-workspace`
|
|
1477
|
+
|
|
1478
|
+
Control an application workspace
|
|
1479
|
+
|
|
1480
|
+
**Usage:** `ai apps control-application-workspace <application-public-id> [options]`
|
|
1481
|
+
|
|
1482
|
+
**Options:**
|
|
1483
|
+
|
|
1484
|
+
| Flag | Description | Default | Required |
|
|
1485
|
+
|------|-------------|---------|----------|
|
|
1486
|
+
| `--action <value>` | restart, pause, resume, rebuild, snapshot, restore, or update_runtime [required] | - | No |
|
|
1487
|
+
| `--confirm` | Must be true for update_runtime because compute is replaced | - | No |
|
|
1488
|
+
| `--no-confirm` | Set confirm to false | - | No |
|
|
1489
|
+
| `--label <value>` | Body field label | - | No |
|
|
1490
|
+
| `--runtime <value>` | Optional built-in flavor to select during update_runtime | - | No |
|
|
1491
|
+
| `--snapshot-id <value>` | Body field snapshot_id | - | No |
|
|
1492
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1493
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1494
|
+
| `--json` | Output in JSON format | - | No |
|
|
1495
|
+
|
|
1496
|
+
#### `ai apps get-application-workspace-changes`
|
|
1497
|
+
|
|
1498
|
+
Get application workspace changes
|
|
1499
|
+
|
|
1500
|
+
**Usage:** `ai apps get-application-workspace-changes <application-public-id> [options]`
|
|
1501
|
+
|
|
1502
|
+
**Options:**
|
|
1503
|
+
|
|
1504
|
+
| Flag | Description | Default | Required |
|
|
1505
|
+
|------|-------------|---------|----------|
|
|
1506
|
+
| `--cursor <n>` | Position returned by the previous page | - | No |
|
|
1507
|
+
| `--limit <n>` | Files per page (1-200, default 100) | - | No |
|
|
1508
|
+
| `--json` | Output in JSON format | - | No |
|
|
1509
|
+
|
|
1510
|
+
#### `ai apps get-application-workspace-diff`
|
|
1511
|
+
|
|
1512
|
+
Get application workspace diff
|
|
1513
|
+
|
|
1514
|
+
**Usage:** `ai apps get-application-workspace-diff <application-public-id> [options]`
|
|
1515
|
+
|
|
1516
|
+
**Options:**
|
|
1517
|
+
|
|
1518
|
+
| Flag | Description | Default | Required |
|
|
1519
|
+
|------|-------------|---------|----------|
|
|
1520
|
+
| `--path <value>` | Query parameter path [required] | - | No |
|
|
1521
|
+
| `--json` | Output in JSON format | - | No |
|
|
1522
|
+
|
|
1523
|
+
#### `ai apps get-application-workspace-directory`
|
|
1524
|
+
|
|
1525
|
+
Get application workspace directory
|
|
1526
|
+
|
|
1527
|
+
**Usage:** `ai apps get-application-workspace-directory <application-public-id> [options]`
|
|
1528
|
+
|
|
1529
|
+
**Options:**
|
|
1530
|
+
|
|
1531
|
+
| Flag | Description | Default | Required |
|
|
1532
|
+
|------|-------------|---------|----------|
|
|
1533
|
+
| `--path <value>` | Workspace-relative directory; omit for the root | - | No |
|
|
1534
|
+
| `--cursor <n>` | Position returned by the previous page | - | No |
|
|
1535
|
+
| `--limit <n>` | Entries per page (1-100, default 100) | - | No |
|
|
1536
|
+
| `--json` | Output in JSON format | - | No |
|
|
1537
|
+
|
|
1538
|
+
#### `ai apps get-application-workspace-file`
|
|
1539
|
+
|
|
1540
|
+
Get application workspace file
|
|
1541
|
+
|
|
1542
|
+
**Usage:** `ai apps get-application-workspace-file <application-public-id> [options]`
|
|
1543
|
+
|
|
1544
|
+
**Options:**
|
|
1545
|
+
|
|
1546
|
+
| Flag | Description | Default | Required |
|
|
1547
|
+
|------|-------------|---------|----------|
|
|
1548
|
+
| `--path <value>` | Query parameter path [required] | - | No |
|
|
1549
|
+
| `--json` | Output in JSON format | - | No |
|
|
1550
|
+
|
|
1551
|
+
#### `ai apps download-application-workspace-file`
|
|
1552
|
+
|
|
1553
|
+
Download one application workspace file
|
|
1554
|
+
|
|
1555
|
+
**Usage:** `ai apps download-application-workspace-file <application-public-id> [options]`
|
|
1556
|
+
|
|
1557
|
+
**Options:**
|
|
1558
|
+
|
|
1559
|
+
| Flag | Description | Default | Required |
|
|
1560
|
+
|------|-------------|---------|----------|
|
|
1561
|
+
| `--path <value>` | Query parameter path [required] | - | No |
|
|
1562
|
+
| `-o, --output <path>` | Where to write the reply (default: stdout) | `-` | No |
|
|
1563
|
+
| `--json` | Output in JSON format | - | No |
|
|
1564
|
+
|
|
1565
|
+
#### `ai apps upload-application-workspace-files`
|
|
1566
|
+
|
|
1567
|
+
Upload files into an application workspace
|
|
1568
|
+
|
|
1569
|
+
**Usage:** `ai apps upload-application-workspace-files <application-public-id> [options]`
|
|
1570
|
+
|
|
1571
|
+
**Options:**
|
|
1572
|
+
|
|
1573
|
+
| Flag | Description | Default | Required |
|
|
1574
|
+
|------|-------------|---------|----------|
|
|
1575
|
+
| `--files <json>` | Body field files (JSON) [required] | - | No |
|
|
1576
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1577
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1578
|
+
| `--json` | Output in JSON format | - | No |
|
|
1579
|
+
|
|
1580
|
+
#### `ai apps attach-application-workspace-terminal`
|
|
1581
|
+
|
|
1582
|
+
Attach an interactive terminal to an application workspace
|
|
1583
|
+
|
|
1584
|
+
**Usage:** `ai apps attach-application-workspace-terminal <application-public-id> [options]`
|
|
1585
|
+
|
|
1586
|
+
**Options:**
|
|
1587
|
+
|
|
1588
|
+
| Flag | Description | Default | Required |
|
|
1589
|
+
|------|-------------|---------|----------|
|
|
1590
|
+
| `--thread <value>` | Public id of the terminal thread to attach to [required] | - | No |
|
|
1591
|
+
| `--cols <n>` | Initial terminal width in columns (default 80) | - | No |
|
|
1592
|
+
| `--rows <n>` | Initial terminal height in rows (default 24) | - | No |
|
|
1593
|
+
| `--json` | Output in JSON format | - | No |
|
|
1594
|
+
|
|
1595
|
+
#### `ai apps blueprint`
|
|
1596
|
+
|
|
1597
|
+
Blueprint commands
|
|
1598
|
+
|
|
1599
|
+
**Subcommands:**
|
|
1600
|
+
|
|
1601
|
+
- `get` - The workspace's architecture blueprint with the live state of its parts
|
|
1602
|
+
- `unbind-component` - Remove a part's binding
|
|
1603
|
+
- `bind-component` - Bind a part of the accepted blueprint to the project or service that realises it
|
|
1604
|
+
- `list-versions` - Every version of the workspace's blueprint, newest first
|
|
1605
|
+
- `save-version` - Save a version the user wrote
|
|
1606
|
+
- `accept-version` - Accept a proposed version: every chat of the workspace builds against it
|
|
1607
|
+
- `reject-version` - Reject a proposed version
|
|
1608
|
+
|
|
1609
|
+
##### `ai apps blueprint get`
|
|
1610
|
+
|
|
1611
|
+
The workspace's architecture blueprint with the live state of its parts
|
|
1612
|
+
|
|
1613
|
+
**Usage:** `ai apps blueprint get <public-id> [options]`
|
|
1614
|
+
|
|
1615
|
+
**Options:**
|
|
1616
|
+
|
|
1617
|
+
| Flag | Description | Default | Required |
|
|
1618
|
+
|------|-------------|---------|----------|
|
|
1619
|
+
| `--json` | Output in JSON format | - | No |
|
|
1620
|
+
|
|
1621
|
+
##### `ai apps blueprint unbind-component`
|
|
1622
|
+
|
|
1623
|
+
Remove a part's binding
|
|
1624
|
+
|
|
1625
|
+
**Usage:** `ai apps blueprint unbind-component <public-id> <component-id> [options]`
|
|
1626
|
+
|
|
1627
|
+
**Options:**
|
|
1628
|
+
|
|
1629
|
+
| Flag | Description | Default | Required |
|
|
1630
|
+
|------|-------------|---------|----------|
|
|
1631
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
1632
|
+
| `--json` | Output in JSON format | - | No |
|
|
1633
|
+
|
|
1634
|
+
##### `ai apps blueprint bind-component`
|
|
1635
|
+
|
|
1636
|
+
Bind a part of the accepted blueprint to the project or service that realises it
|
|
1637
|
+
|
|
1638
|
+
**Usage:** `ai apps blueprint bind-component <public-id> <component-id> [options]`
|
|
1639
|
+
|
|
1640
|
+
**Options:**
|
|
1641
|
+
|
|
1642
|
+
| Flag | Description | Default | Required |
|
|
1643
|
+
|------|-------------|---------|----------|
|
|
1644
|
+
| `--project-id <n>` | Body field project_id | - | No |
|
|
1645
|
+
| `--service-id <n>` | Body field service_id | - | No |
|
|
1646
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1647
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1648
|
+
| `--json` | Output in JSON format | - | No |
|
|
1649
|
+
|
|
1650
|
+
##### `ai apps blueprint list-versions`
|
|
1651
|
+
|
|
1652
|
+
Every version of the workspace's blueprint, newest first
|
|
1653
|
+
|
|
1654
|
+
**Usage:** `ai apps blueprint list-versions <public-id> [options]`
|
|
1655
|
+
|
|
1656
|
+
**Options:**
|
|
1657
|
+
|
|
1658
|
+
| Flag | Description | Default | Required |
|
|
1659
|
+
|------|-------------|---------|----------|
|
|
1660
|
+
| `--page <n>` | 1-based page | - | No |
|
|
1661
|
+
| `--page-size <n>` | Default 20, at most 100 | - | No |
|
|
1662
|
+
| `--json` | Output in JSON format | - | No |
|
|
1663
|
+
|
|
1664
|
+
##### `ai apps blueprint save-version`
|
|
1665
|
+
|
|
1666
|
+
Save a version the user wrote
|
|
1667
|
+
|
|
1668
|
+
**Usage:** `ai apps blueprint save-version <public-id> [options]`
|
|
1669
|
+
|
|
1670
|
+
**Options:**
|
|
1671
|
+
|
|
1672
|
+
| Flag | Description | Default | Required |
|
|
1673
|
+
|------|-------------|---------|----------|
|
|
1674
|
+
| `--change-summary <value>` | Body field change_summary [required] | - | No |
|
|
1675
|
+
| `--document <json>` | The design of an application: what it is for, its parts and its flows (JSON) [required] | - | No |
|
|
1676
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1677
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1678
|
+
| `--json` | Output in JSON format | - | No |
|
|
1679
|
+
|
|
1680
|
+
##### `ai apps blueprint accept-version`
|
|
1681
|
+
|
|
1682
|
+
Accept a proposed version: every chat of the workspace builds against it
|
|
1683
|
+
|
|
1684
|
+
**Usage:** `ai apps blueprint accept-version <public-id> <version> [options]`
|
|
1685
|
+
|
|
1686
|
+
**Options:**
|
|
1687
|
+
|
|
1688
|
+
| Flag | Description | Default | Required |
|
|
1689
|
+
|------|-------------|---------|----------|
|
|
1690
|
+
| `--json` | Output in JSON format | - | No |
|
|
1691
|
+
|
|
1692
|
+
##### `ai apps blueprint reject-version`
|
|
1693
|
+
|
|
1694
|
+
Reject a proposed version
|
|
1695
|
+
|
|
1696
|
+
**Usage:** `ai apps blueprint reject-version <public-id> <version> [options]`
|
|
1697
|
+
|
|
1698
|
+
**Options:**
|
|
1699
|
+
|
|
1700
|
+
| Flag | Description | Default | Required |
|
|
1701
|
+
|------|-------------|---------|----------|
|
|
1702
|
+
| `--json` | Output in JSON format | - | No |
|
|
1703
|
+
|
|
1704
|
+
### `ai coding-agents`
|
|
1705
|
+
|
|
1706
|
+
Coding agents commands
|
|
1707
|
+
|
|
1708
|
+
**Subcommands:**
|
|
1709
|
+
|
|
1710
|
+
- `list` - Every coding-agent CLI Temps manages, its latest published release, and whether newer releases are..
|
|
1711
|
+
- `update-settings` - Turn automatic coding-agent updates on or off
|
|
1712
|
+
|
|
1713
|
+
#### `ai coding-agents list`
|
|
1714
|
+
|
|
1715
|
+
Every coding-agent CLI Temps manages, its latest published release, and whether newer releases are..
|
|
1716
|
+
|
|
1717
|
+
**Options:**
|
|
1718
|
+
|
|
1719
|
+
| Flag | Description | Default | Required |
|
|
1720
|
+
|------|-------------|---------|----------|
|
|
1721
|
+
| `--refresh` | Ask the npm registry again instead of using the six-hour cache (at most once a minute) | - | No |
|
|
1722
|
+
| `--no-refresh` | Set refresh to false | - | No |
|
|
1723
|
+
| `--json` | Output in JSON format | - | No |
|
|
1724
|
+
|
|
1725
|
+
#### `ai coding-agents update-settings`
|
|
1726
|
+
|
|
1727
|
+
Turn automatic coding-agent updates on or off
|
|
1728
|
+
|
|
1729
|
+
**Options:**
|
|
1730
|
+
|
|
1731
|
+
| Flag | Description | Default | Required |
|
|
1732
|
+
|------|-------------|---------|----------|
|
|
1733
|
+
| `--auto-update` | Body field auto_update | - | No |
|
|
1734
|
+
| `--no-auto-update` | Set auto_update to false | - | No |
|
|
1735
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1736
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1737
|
+
| `--json` | Output in JSON format | - | No |
|
|
1738
|
+
|
|
1739
|
+
### `ai gateway`
|
|
1740
|
+
|
|
1741
|
+
Gateway commands
|
|
1742
|
+
|
|
1743
|
+
**Subcommands:**
|
|
1744
|
+
|
|
1745
|
+
- `limits` - Limits commands
|
|
1746
|
+
- `catalog` - Catalog commands
|
|
1747
|
+
- `pricing` - Pricing commands
|
|
1748
|
+
- `providers` - Providers commands
|
|
1749
|
+
- `usage` - Usage commands
|
|
1750
|
+
- `create-batch` - Create batch
|
|
1751
|
+
- `retrieve-batch` - Retrieve batch
|
|
1752
|
+
- `cancel-batch` - Cancel batch
|
|
1753
|
+
- `chat-completions` - Chat completions
|
|
1754
|
+
- `embeddings` - Embeddings
|
|
1755
|
+
- `upload-file` - Upload file
|
|
1756
|
+
- `delete-file` - Delete file
|
|
1757
|
+
- `retrieve-file` - Retrieve file
|
|
1758
|
+
- `file-content` - File content
|
|
1759
|
+
- `list-models` - List models
|
|
1760
|
+
- `create-response-json` - Explicit JSON contract for generated clients; the standard OpenAI route remains polymorphic
|
|
1761
|
+
- `create-response-stream` - Explicit SSE contract for generated clients; never buffers a successful event stream
|
|
1762
|
+
- `stream-structured-output` - Stream structured output
|
|
1763
|
+
|
|
1764
|
+
#### `ai gateway limits`
|
|
1765
|
+
|
|
1766
|
+
Limits commands
|
|
1767
|
+
|
|
1768
|
+
**Subcommands:**
|
|
1769
|
+
|
|
1770
|
+
- `get-overview` - Get limits overview
|
|
1771
|
+
- `update-instance` - Update instance limits
|
|
1772
|
+
- `reset` - Reset project limits
|
|
1773
|
+
- `get` - Get project limits
|
|
1774
|
+
- `update` - Update project limits
|
|
1775
|
+
|
|
1776
|
+
##### `ai gateway limits get-overview`
|
|
1777
|
+
|
|
1778
|
+
Get limits overview
|
|
1779
|
+
|
|
1780
|
+
**Options:**
|
|
1781
|
+
|
|
1782
|
+
| Flag | Description | Default | Required |
|
|
1783
|
+
|------|-------------|---------|----------|
|
|
1784
|
+
| `--page <n>` | Page of project overrides (default 1) | - | No |
|
|
1785
|
+
| `--page-size <n>` | Page size (default 20, max 100) | - | No |
|
|
1786
|
+
| `--json` | Output in JSON format | - | No |
|
|
1787
|
+
|
|
1788
|
+
##### `ai gateway limits update-instance`
|
|
1789
|
+
|
|
1790
|
+
Update instance limits
|
|
1791
|
+
|
|
1792
|
+
**Options:**
|
|
1793
|
+
|
|
1794
|
+
| Flag | Description | Default | Required |
|
|
1795
|
+
|------|-------------|---------|----------|
|
|
1796
|
+
| `--max-cost-per-month-microcents <n>` | Operator-funded spend per UTC calendar month, in microcents (1/10000 of a cent; 1 USD = 1,000,000 microcents) | - | No |
|
|
1797
|
+
| `--max-requests-per-minute <n>` | Requests per rolling minute | - | No |
|
|
1798
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1799
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1800
|
+
| `--json` | Output in JSON format | - | No |
|
|
1801
|
+
|
|
1802
|
+
##### `ai gateway limits reset`
|
|
1803
|
+
|
|
1804
|
+
Reset project limits
|
|
1805
|
+
|
|
1806
|
+
**Options:**
|
|
1807
|
+
|
|
1808
|
+
| Flag | Description | Default | Required |
|
|
1809
|
+
|------|-------------|---------|----------|
|
|
1810
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1811
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
1812
|
+
| `--json` | Output in JSON format | - | No |
|
|
1813
|
+
|
|
1814
|
+
##### `ai gateway limits get`
|
|
1815
|
+
|
|
1816
|
+
Get project limits
|
|
1817
|
+
|
|
1818
|
+
**Options:**
|
|
1819
|
+
|
|
1820
|
+
| Flag | Description | Default | Required |
|
|
1821
|
+
|------|-------------|---------|----------|
|
|
1822
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1823
|
+
| `--json` | Output in JSON format | - | No |
|
|
1824
|
+
|
|
1825
|
+
##### `ai gateway limits update`
|
|
1826
|
+
|
|
1827
|
+
Update project limits
|
|
1828
|
+
|
|
1829
|
+
**Options:**
|
|
1830
|
+
|
|
1831
|
+
| Flag | Description | Default | Required |
|
|
1832
|
+
|------|-------------|---------|----------|
|
|
1833
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1834
|
+
| `--max-cost-per-month-microcents <n>` | Operator-funded spend per UTC calendar month, in microcents (1/10000 of a cent; 1 USD = 1,000,000 microcents) | - | No |
|
|
1835
|
+
| `--max-requests-per-minute <n>` | Requests per rolling minute | - | No |
|
|
1836
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1837
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1838
|
+
| `--json` | Output in JSON format | - | No |
|
|
1839
|
+
|
|
1840
|
+
#### `ai gateway catalog`
|
|
1841
|
+
|
|
1842
|
+
Catalog commands
|
|
1843
|
+
|
|
1844
|
+
**Subcommands:**
|
|
1845
|
+
|
|
1846
|
+
- `get-model` - The runtime model catalog's settings and the outcome of its last refresh
|
|
1847
|
+
- `list-model-entries` - The stored catalog's models, newest release first
|
|
1848
|
+
- `refresh-model` - Fetch the catalog now, store it and apply its prices
|
|
1849
|
+
- `update-model-settings` - Change where the catalog comes from and how it is refreshed
|
|
1850
|
+
- `list-unpriced-models` - Models enabled on a provider key that no price covers
|
|
1851
|
+
|
|
1852
|
+
##### `ai gateway catalog get-model`
|
|
1853
|
+
|
|
1854
|
+
The runtime model catalog's settings and the outcome of its last refresh
|
|
1855
|
+
|
|
1856
|
+
**Options:**
|
|
1857
|
+
|
|
1858
|
+
| Flag | Description | Default | Required |
|
|
1859
|
+
|------|-------------|---------|----------|
|
|
1860
|
+
| `--json` | Output in JSON format | - | No |
|
|
1861
|
+
|
|
1862
|
+
##### `ai gateway catalog list-model-entries`
|
|
1863
|
+
|
|
1864
|
+
The stored catalog's models, newest release first
|
|
1865
|
+
|
|
1866
|
+
**Options:**
|
|
1867
|
+
|
|
1868
|
+
| Flag | Description | Default | Required |
|
|
1869
|
+
|------|-------------|---------|----------|
|
|
1870
|
+
| `--provider <value>` | Temps provider id ('openai', 'anthropic', 'gemini', 'xai', 'openrouter') | - | No |
|
|
1871
|
+
| `--search <value>` | Case-insensitive part of the model id or name | - | No |
|
|
1872
|
+
| `--page <n>` | Page number, from 1 (default 1) | - | No |
|
|
1873
|
+
| `--page-size <n>` | Page size (default 20, max 100) | - | No |
|
|
1874
|
+
| `--json` | Output in JSON format | - | No |
|
|
1875
|
+
|
|
1876
|
+
##### `ai gateway catalog refresh-model`
|
|
1877
|
+
|
|
1878
|
+
Fetch the catalog now, store it and apply its prices
|
|
1879
|
+
|
|
1880
|
+
**Options:**
|
|
1881
|
+
|
|
1882
|
+
| Flag | Description | Default | Required |
|
|
1883
|
+
|------|-------------|---------|----------|
|
|
1884
|
+
| `--json` | Output in JSON format | - | No |
|
|
1885
|
+
|
|
1886
|
+
##### `ai gateway catalog update-model-settings`
|
|
1887
|
+
|
|
1888
|
+
Change where the catalog comes from and how it is refreshed
|
|
1889
|
+
|
|
1890
|
+
**Options:**
|
|
1891
|
+
|
|
1892
|
+
| Flag | Description | Default | Required |
|
|
1893
|
+
|------|-------------|---------|----------|
|
|
1894
|
+
| `--auto-refresh` | Body field auto_refresh | - | No |
|
|
1895
|
+
| `--no-auto-refresh` | Set auto_refresh to false | - | No |
|
|
1896
|
+
| `--discover-provider-models` | Body field discover_provider_models | - | No |
|
|
1897
|
+
| `--no-discover-provider-models` | Set discover_provider_models to false | - | No |
|
|
1898
|
+
| `--refresh-interval-hours <n>` | Body field refresh_interval_hours | - | No |
|
|
1899
|
+
| `--source-url <value>` | A custom 'https://' catalog URL, or an empty string to go back to the catalog published in the Temps... | - | No |
|
|
1900
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1901
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1902
|
+
| `--json` | Output in JSON format | - | No |
|
|
1903
|
+
|
|
1904
|
+
##### `ai gateway catalog list-unpriced-models`
|
|
1905
|
+
|
|
1906
|
+
Models enabled on a provider key that no price covers
|
|
1907
|
+
|
|
1908
|
+
**Options:**
|
|
1909
|
+
|
|
1910
|
+
| Flag | Description | Default | Required |
|
|
1911
|
+
|------|-------------|---------|----------|
|
|
1912
|
+
| `--json` | Output in JSON format | - | No |
|
|
1913
|
+
|
|
1914
|
+
#### `ai gateway pricing`
|
|
1915
|
+
|
|
1916
|
+
Pricing commands
|
|
1917
|
+
|
|
1918
|
+
**Subcommands:**
|
|
1919
|
+
|
|
1920
|
+
- `get` - Get pricing
|
|
1921
|
+
|
|
1922
|
+
##### `ai gateway pricing get`
|
|
1923
|
+
|
|
1924
|
+
Get pricing
|
|
1925
|
+
|
|
1926
|
+
**Options:**
|
|
1927
|
+
|
|
1928
|
+
| Flag | Description | Default | Required |
|
|
1929
|
+
|------|-------------|---------|----------|
|
|
1930
|
+
| `--json` | Output in JSON format | - | No |
|
|
1931
|
+
|
|
1932
|
+
#### `ai gateway providers`
|
|
1933
|
+
|
|
1934
|
+
Providers commands
|
|
1935
|
+
|
|
1936
|
+
**Subcommands:**
|
|
1937
|
+
|
|
1938
|
+
- `list-keys` - List provider keys
|
|
1939
|
+
- `create-key` - Create provider key
|
|
1940
|
+
- `discover-models` - Discover provider models
|
|
1941
|
+
- `test-key-inline` - Test provider key inline
|
|
1942
|
+
- `delete-key` - Delete provider key
|
|
1943
|
+
- `get-key` - Get provider key
|
|
1944
|
+
- `update-key` - Update provider key
|
|
1945
|
+
- `add-model` - Add provider model
|
|
1946
|
+
- `refresh-models` - Refresh provider models
|
|
1947
|
+
- `delete-model` - Delete provider model
|
|
1948
|
+
- `update-model` - Update provider model
|
|
1949
|
+
- `test-key-by-id` - Test provider key by id
|
|
1950
|
+
|
|
1951
|
+
##### `ai gateway providers list-keys`
|
|
1952
|
+
|
|
1953
|
+
List provider keys
|
|
1954
|
+
|
|
1955
|
+
**Options:**
|
|
1956
|
+
|
|
1957
|
+
| Flag | Description | Default | Required |
|
|
1958
|
+
|------|-------------|---------|----------|
|
|
1959
|
+
| `--json` | Output in JSON format | - | No |
|
|
1960
|
+
|
|
1961
|
+
##### `ai gateway providers create-key`
|
|
1962
|
+
|
|
1963
|
+
Create provider key
|
|
1964
|
+
|
|
1965
|
+
**Options:**
|
|
1966
|
+
|
|
1967
|
+
| Flag | Description | Default | Required |
|
|
1968
|
+
|------|-------------|---------|----------|
|
|
1969
|
+
| `--api-key-stdin` | Provider API key (read from stdin) | - | No |
|
|
1970
|
+
| `--api-key-file <path>` | Provider API key (read from a file) | - | No |
|
|
1971
|
+
| `--base-url <value>` | Required for "openai_compatible", e.g. "http://10.0.0.5:8000/v1" | - | No |
|
|
1972
|
+
| `--capabilities <json>` | Capabilities an administrator declared for a self-hosted key (JSON) | - | No |
|
|
1973
|
+
| `--default-model <value>` | Model id to pin for this provider (e.g. "gpt-6.2-sol") | - | No |
|
|
1974
|
+
| `--display-name <value>` | Body field display_name [required] | - | No |
|
|
1975
|
+
| `--provider <value>` | "openai", "anthropic", "xai", "gemini", "openrouter", or "openai_compatible" for a self-hosted... [required] | - | No |
|
|
1976
|
+
| `--trust-private-address` | Trust the exact private 'ip:port' of 'base_url' for this key only, without adding it to the instance-wide... | - | No |
|
|
1977
|
+
| `--no-trust-private-address` | Set trust_private_address to false | - | No |
|
|
1978
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1979
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1980
|
+
| `--json` | Output in JSON format | - | No |
|
|
1981
|
+
|
|
1982
|
+
##### `ai gateway providers discover-models`
|
|
1983
|
+
|
|
1984
|
+
Discover provider models
|
|
1985
|
+
|
|
1986
|
+
**Options:**
|
|
1987
|
+
|
|
1988
|
+
| Flag | Description | Default | Required |
|
|
1989
|
+
|------|-------------|---------|----------|
|
|
1990
|
+
| `--api-key-stdin` | API key, if the server requires one (read from stdin) | - | No |
|
|
1991
|
+
| `--api-key-file <path>` | API key, if the server requires one (read from a file) | - | No |
|
|
1992
|
+
| `--base-url <value>` | Base URL of the server (required for "openai_compatible") | - | No |
|
|
1993
|
+
| `--provider <value>` | Provider ID, e.g. "openai_compatible" [required] | - | No |
|
|
1994
|
+
| `--trust-private-address` | Discover as if the base URL's exact private address were trusted on the key | - | No |
|
|
1995
|
+
| `--no-trust-private-address` | Set trust_private_address to false | - | No |
|
|
1996
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1997
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1998
|
+
| `--json` | Output in JSON format | - | No |
|
|
1999
|
+
|
|
2000
|
+
##### `ai gateway providers test-key-inline`
|
|
2001
|
+
|
|
2002
|
+
Test provider key inline
|
|
2003
|
+
|
|
2004
|
+
**Options:**
|
|
2005
|
+
|
|
2006
|
+
| Flag | Description | Default | Required |
|
|
2007
|
+
|------|-------------|---------|----------|
|
|
2008
|
+
| `--api-key-stdin` | The raw API key to test (may be empty for a self-hosted provider) (read from stdin) | - | No |
|
|
2009
|
+
| `--api-key-file <path>` | The raw API key to test (may be empty for a self-hosted provider) (read from a file) | - | No |
|
|
2010
|
+
| `--base-url <value>` | Optional custom base URL (required for "openai_compatible") | - | No |
|
|
2011
|
+
| `--default-model <value>` | Model to send the test completion to | - | No |
|
|
2012
|
+
| `--provider <value>` | Provider ID: "openai", "anthropic", "xai", "gemini", "openrouter", "openai_compatible" [required] | - | No |
|
|
2013
|
+
| `--trust-private-address` | Test as if the base URL's exact private address were trusted on the key | - | No |
|
|
2014
|
+
| `--no-trust-private-address` | Set trust_private_address to false | - | No |
|
|
2015
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
2016
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
2017
|
+
| `--json` | Output in JSON format | - | No |
|
|
2018
|
+
|
|
2019
|
+
##### `ai gateway providers delete-key`
|
|
2020
|
+
|
|
2021
|
+
Delete provider key
|
|
2022
|
+
|
|
2023
|
+
**Usage:** `ai gateway providers delete-key <id> [options]`
|
|
2024
|
+
|
|
2025
|
+
**Options:**
|
|
2026
|
+
|
|
2027
|
+
| Flag | Description | Default | Required |
|
|
2028
|
+
|------|-------------|---------|----------|
|
|
2029
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
2030
|
+
| `--json` | Output in JSON format | - | No |
|
|
2031
|
+
|
|
2032
|
+
##### `ai gateway providers get-key`
|
|
2033
|
+
|
|
2034
|
+
Get provider key
|
|
2035
|
+
|
|
2036
|
+
**Usage:** `ai gateway providers get-key <id> [options]`
|
|
2037
|
+
|
|
2038
|
+
**Options:**
|
|
2039
|
+
|
|
2040
|
+
| Flag | Description | Default | Required |
|
|
2041
|
+
|------|-------------|---------|----------|
|
|
2042
|
+
| `--json` | Output in JSON format | - | No |
|
|
2043
|
+
|
|
2044
|
+
##### `ai gateway providers update-key`
|
|
2045
|
+
|
|
2046
|
+
Update provider key
|
|
2047
|
+
|
|
2048
|
+
**Usage:** `ai gateway providers update-key <id> [options]`
|
|
2049
|
+
|
|
2050
|
+
**Options:**
|
|
2051
|
+
|
|
2052
|
+
| Flag | Description | Default | Required |
|
|
2053
|
+
|------|-------------|---------|----------|
|
|
2054
|
+
| `--api-key-stdin` | A credential (read from stdin) | - | No |
|
|
2055
|
+
| `--api-key-file <path>` | A credential (read from a file) | - | No |
|
|
2056
|
+
| `--base-url <value>` | Double-Option: absent = leave unchanged, present-null = clear (revert to the provider's default endpoint),... | - | No |
|
|
2057
|
+
| `--capabilities <json>` | Capabilities an administrator declared for a self-hosted key (JSON) | - | No |
|
|
2058
|
+
| `--default-model <value>` | Double-Option: absent = leave unchanged, present-null = clear the pinned model (revert to the per-provider... | - | No |
|
|
2059
|
+
| `--display-name <value>` | Body field display_name | - | No |
|
|
2060
|
+
| `--is-active` | Body field is_active | - | No |
|
|
2061
|
+
| `--no-is-active` | Set is_active to false | - | No |
|
|
2062
|
+
| `--trust-private-address` | 'true' trusts the exact private 'ip:port' of the (new) base URL for this key only (requires... | - | No |
|
|
2063
|
+
| `--no-trust-private-address` | Set trust_private_address to false | - | No |
|
|
2064
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
2065
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
2066
|
+
| `--json` | Output in JSON format | - | No |
|
|
2067
|
+
|
|
2068
|
+
##### `ai gateway providers add-model`
|
|
2069
|
+
|
|
2070
|
+
Add provider model
|
|
2071
|
+
|
|
2072
|
+
**Usage:** `ai gateway providers add-model <id> [options]`
|
|
2073
|
+
|
|
2074
|
+
**Options:**
|
|
2075
|
+
|
|
2076
|
+
| Flag | Description | Default | Required |
|
|
2077
|
+
|------|-------------|---------|----------|
|
|
2078
|
+
| `--display-name <value>` | Body field display_name | - | No |
|
|
2079
|
+
| `--model-id <value>` | Body field model_id [required] | - | No |
|
|
2080
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
2081
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
2082
|
+
| `--json` | Output in JSON format | - | No |
|
|
2083
|
+
|
|
2084
|
+
##### `ai gateway providers refresh-models`
|
|
2085
|
+
|
|
2086
|
+
Refresh provider models
|
|
2087
|
+
|
|
2088
|
+
**Usage:** `ai gateway providers refresh-models <id> [options]`
|
|
2089
|
+
|
|
2090
|
+
**Options:**
|
|
2091
|
+
|
|
2092
|
+
| Flag | Description | Default | Required |
|
|
2093
|
+
|------|-------------|---------|----------|
|
|
2094
|
+
| `--json` | Output in JSON format | - | No |
|
|
2095
|
+
|
|
2096
|
+
##### `ai gateway providers delete-model`
|
|
2097
|
+
|
|
2098
|
+
Delete provider model
|
|
2099
|
+
|
|
2100
|
+
**Usage:** `ai gateway providers delete-model <id> <model-row-id> [options]`
|
|
2101
|
+
|
|
2102
|
+
**Options:**
|
|
2103
|
+
|
|
2104
|
+
| Flag | Description | Default | Required |
|
|
2105
|
+
|------|-------------|---------|----------|
|
|
2106
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
2107
|
+
| `--json` | Output in JSON format | - | No |
|
|
2108
|
+
|
|
2109
|
+
##### `ai gateway providers update-model`
|
|
2110
|
+
|
|
2111
|
+
Update provider model
|
|
2112
|
+
|
|
2113
|
+
**Usage:** `ai gateway providers update-model <id> <model-row-id> [options]`
|
|
2114
|
+
|
|
2115
|
+
**Options:**
|
|
2116
|
+
|
|
2117
|
+
| Flag | Description | Default | Required |
|
|
2118
|
+
|------|-------------|---------|----------|
|
|
2119
|
+
| `--is-enabled` | Body field is_enabled [required] | - | No |
|
|
2120
|
+
| `--no-is-enabled` | Set is_enabled to false | - | No |
|
|
2121
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
2122
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
2123
|
+
| `--json` | Output in JSON format | - | No |
|
|
2124
|
+
|
|
2125
|
+
##### `ai gateway providers test-key-by-id`
|
|
2126
|
+
|
|
2127
|
+
Test provider key by id
|
|
2128
|
+
|
|
2129
|
+
**Usage:** `ai gateway providers test-key-by-id <id> [options]`
|
|
2130
|
+
|
|
2131
|
+
**Options:**
|
|
2132
|
+
|
|
2133
|
+
| Flag | Description | Default | Required |
|
|
2134
|
+
|------|-------------|---------|----------|
|
|
2135
|
+
| `--json` | Output in JSON format | - | No |
|
|
2136
|
+
|
|
2137
|
+
#### `ai gateway usage`
|
|
2138
|
+
|
|
2139
|
+
Usage commands
|
|
2140
|
+
|
|
2141
|
+
**Subcommands:**
|
|
2142
|
+
|
|
2143
|
+
- `get-by` - Get usage by project
|
|
2144
|
+
- `get-by-provider` - Get usage by provider
|
|
2145
|
+
- `get-conversations` - Get conversations
|
|
2146
|
+
- `get-conversation-detail` - Get conversation detail
|
|
2147
|
+
- `get-recent` - Get usage recent
|
|
2148
|
+
- `get-summary` - Get usage summary
|
|
2149
|
+
- `get-timeseries` - Get usage timeseries
|
|
2150
|
+
- `get-top-models` - Get usage top models
|
|
2151
|
+
|
|
2152
|
+
##### `ai gateway usage get-by`
|
|
2153
|
+
|
|
2154
|
+
Get usage by project
|
|
2155
|
+
|
|
2156
|
+
**Options:**
|
|
2157
|
+
|
|
2158
|
+
| Flag | Description | Default | Required |
|
|
2159
|
+
|------|-------------|---------|----------|
|
|
2160
|
+
| `--from <value>` | ISO 8601 start time (defaults to 24h ago) | - | No |
|
|
2161
|
+
| `--to <value>` | ISO 8601 end time (defaults to now) | - | No |
|
|
2162
|
+
| `--limit <n>` | Max projects (defaults to 50, max 100) | - | No |
|
|
2163
|
+
| `--json` | Output in JSON format | - | No |
|
|
2164
|
+
|
|
2165
|
+
##### `ai gateway usage get-by-provider`
|
|
2166
|
+
|
|
2167
|
+
Get usage by provider
|
|
2168
|
+
|
|
2169
|
+
**Options:**
|
|
2170
|
+
|
|
2171
|
+
| Flag | Description | Default | Required |
|
|
2172
|
+
|------|-------------|---------|----------|
|
|
2173
|
+
| `--from <value>` | ISO 8601 start time (defaults to 24h ago) | - | No |
|
|
2174
|
+
| `--to <value>` | ISO 8601 end time (defaults to now) | - | No |
|
|
2175
|
+
| `--project-id <n>` | Filter by project ID (deployment-token usage; instance administrators only) | - | No |
|
|
2176
|
+
| `--json` | Output in JSON format | - | No |
|
|
2177
|
+
|
|
2178
|
+
##### `ai gateway usage get-conversations`
|
|
2179
|
+
|
|
2180
|
+
Get conversations
|
|
2181
|
+
|
|
2182
|
+
**Options:**
|
|
2183
|
+
|
|
2184
|
+
| Flag | Description | Default | Required |
|
|
2185
|
+
|------|-------------|---------|----------|
|
|
2186
|
+
| `--project-id <n>` | Filter by project ID (deployment-token usage; instance administrators only) | - | No |
|
|
2187
|
+
| `--from <value>` | ISO 8601 start time (defaults to 24h ago) | - | No |
|
|
2188
|
+
| `--to <value>` | ISO 8601 end time (defaults to now) | - | No |
|
|
2189
|
+
| `--limit <n>` | Max results (defaults to 50, max 100) | - | No |
|
|
2190
|
+
| `--user-id <n>` | Filter by user ID | - | No |
|
|
2191
|
+
| `--tags <value>` | Filter by tags (comma-separated) | - | No |
|
|
2192
|
+
| `--model <value>` | Filter by model name | - | No |
|
|
2193
|
+
| `--json` | Output in JSON format | - | No |
|
|
2194
|
+
|
|
2195
|
+
##### `ai gateway usage get-conversation-detail`
|
|
2196
|
+
|
|
2197
|
+
Get conversation detail
|
|
2198
|
+
|
|
2199
|
+
**Usage:** `ai gateway usage get-conversation-detail <conversation-id> [options]`
|
|
2200
|
+
|
|
2201
|
+
**Options:**
|
|
2202
|
+
|
|
2203
|
+
| Flag | Description | Default | Required |
|
|
2204
|
+
|------|-------------|---------|----------|
|
|
2205
|
+
| `--limit <n>` | Max results (defaults to 100) | - | No |
|
|
2206
|
+
| `--json` | Output in JSON format | - | No |
|
|
2207
|
+
|
|
2208
|
+
##### `ai gateway usage get-recent`
|
|
2209
|
+
|
|
2210
|
+
Get usage recent
|
|
2211
|
+
|
|
2212
|
+
**Options:**
|
|
2213
|
+
|
|
2214
|
+
| Flag | Description | Default | Required |
|
|
2215
|
+
|------|-------------|---------|----------|
|
|
2216
|
+
| `--limit <n>` | Page size (defaults to 20, max 50) | - | No |
|
|
2217
|
+
| `--offset <n>` | Number of results to skip for pagination (defaults to 0) | - | No |
|
|
2218
|
+
| `--provider <value>` | Filter by provider name | - | No |
|
|
2219
|
+
| `--model <value>` | Filter by model name | - | No |
|
|
2220
|
+
| `--project-id <n>` | Filter by project ID (deployment-token usage; instance administrators only) | - | No |
|
|
2221
|
+
| `--status <n>` | Filter by HTTP status code (exact match) | - | No |
|
|
2222
|
+
| `--cost-gte <n>` | Cost greater-than-or-equal, in microcents | - | No |
|
|
2223
|
+
| `--cost-gt <n>` | Cost strictly greater-than, in microcents | - | No |
|
|
2224
|
+
| `--cost-lte <n>` | Cost less-than-or-equal, in microcents | - | No |
|
|
2225
|
+
| `--cost-lt <n>` | Cost strictly less-than, in microcents | - | No |
|
|
2226
|
+
| `--tokens-gte <n>` | Total tokens greater-than-or-equal | - | No |
|
|
2227
|
+
| `--tokens-gt <n>` | Total tokens strictly greater-than | - | No |
|
|
2228
|
+
| `--tokens-lte <n>` | Total tokens less-than-or-equal | - | No |
|
|
2229
|
+
| `--tokens-lt <n>` | Total tokens strictly less-than | - | No |
|
|
2230
|
+
| `--json` | Output in JSON format | - | No |
|
|
2231
|
+
|
|
2232
|
+
##### `ai gateway usage get-summary`
|
|
2233
|
+
|
|
2234
|
+
Get usage summary
|
|
2235
|
+
|
|
2236
|
+
**Options:**
|
|
2237
|
+
|
|
2238
|
+
| Flag | Description | Default | Required |
|
|
2239
|
+
|------|-------------|---------|----------|
|
|
2240
|
+
| `--from <value>` | ISO 8601 start time (defaults to 24h ago) | - | No |
|
|
2241
|
+
| `--to <value>` | ISO 8601 end time (defaults to now) | - | No |
|
|
2242
|
+
| `--project-id <n>` | Filter by project ID (deployment-token usage; instance administrators only) | - | No |
|
|
2243
|
+
| `--json` | Output in JSON format | - | No |
|
|
2244
|
+
|
|
2245
|
+
##### `ai gateway usage get-timeseries`
|
|
2246
|
+
|
|
2247
|
+
Get usage timeseries
|
|
2248
|
+
|
|
2249
|
+
**Options:**
|
|
2250
|
+
|
|
2251
|
+
| Flag | Description | Default | Required |
|
|
2252
|
+
|------|-------------|---------|----------|
|
|
2253
|
+
| `--from <value>` | ISO 8601 start time (defaults to 24h ago) | - | No |
|
|
2254
|
+
| `--to <value>` | ISO 8601 end time (defaults to now) | - | No |
|
|
2255
|
+
| `--bucket <value>` | Bucket size: hour, day, week (defaults to day) | - | No |
|
|
2256
|
+
| `--project-id <n>` | Filter by project ID (deployment-token usage; instance administrators only) | - | No |
|
|
2257
|
+
| `--json` | Output in JSON format | - | No |
|
|
2258
|
+
|
|
2259
|
+
##### `ai gateway usage get-top-models`
|
|
2260
|
+
|
|
2261
|
+
Get usage top models
|
|
2262
|
+
|
|
2263
|
+
**Options:**
|
|
2264
|
+
|
|
2265
|
+
| Flag | Description | Default | Required |
|
|
2266
|
+
|------|-------------|---------|----------|
|
|
2267
|
+
| `--from <value>` | ISO 8601 start time (defaults to 24h ago) | - | No |
|
|
2268
|
+
| `--to <value>` | ISO 8601 end time (defaults to now) | - | No |
|
|
2269
|
+
| `--limit <n>` | Max results (defaults to 10) | - | No |
|
|
2270
|
+
| `--project-id <n>` | Filter by project ID (deployment-token usage; instance administrators only) | - | No |
|
|
2271
|
+
| `--json` | Output in JSON format | - | No |
|
|
2272
|
+
|
|
2273
|
+
#### `ai gateway create-batch`
|
|
2274
|
+
|
|
2275
|
+
Create batch
|
|
2276
|
+
|
|
2277
|
+
**Options:**
|
|
2278
|
+
|
|
2279
|
+
| Flag | Description | Default | Required |
|
|
2280
|
+
|------|-------------|---------|----------|
|
|
2281
|
+
| `--completion-window <value>` | Currently only '24h' [required] | - | No |
|
|
2282
|
+
| `--endpoint <value>` | Endpoint every request in the input file targets: '/v1/responses', '/v1/chat/completions' or '/v1/embeddings' [required] | - | No |
|
|
2283
|
+
| `--input-file-id <value>` | A file uploaded through 'POST /ai/v1/files' by the same caller [required] | - | No |
|
|
2284
|
+
| `--metadata <json>` | Body field metadata (JSON) | - | No |
|
|
2285
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
2286
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
2287
|
+
| `--json` | Output in JSON format | - | No |
|
|
2288
|
+
|
|
2289
|
+
#### `ai gateway retrieve-batch`
|
|
2290
|
+
|
|
2291
|
+
Retrieve batch
|
|
2292
|
+
|
|
2293
|
+
**Usage:** `ai gateway retrieve-batch <batch-id> [options]`
|
|
2294
|
+
|
|
2295
|
+
**Options:**
|
|
2296
|
+
|
|
2297
|
+
| Flag | Description | Default | Required |
|
|
2298
|
+
|------|-------------|---------|----------|
|
|
2299
|
+
| `--json` | Output in JSON format | - | No |
|
|
2300
|
+
|
|
2301
|
+
#### `ai gateway cancel-batch`
|
|
2302
|
+
|
|
2303
|
+
Cancel batch
|
|
2304
|
+
|
|
2305
|
+
**Usage:** `ai gateway cancel-batch <batch-id> [options]`
|
|
2306
|
+
|
|
2307
|
+
**Options:**
|
|
2308
|
+
|
|
2309
|
+
| Flag | Description | Default | Required |
|
|
2310
|
+
|------|-------------|---------|----------|
|
|
2311
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
2312
|
+
| `--json` | Output in JSON format | - | No |
|
|
2313
|
+
|
|
2314
|
+
#### `ai gateway chat-completions`
|
|
2315
|
+
|
|
2316
|
+
Chat completions
|
|
2317
|
+
|
|
2318
|
+
**Options:**
|
|
2319
|
+
|
|
2320
|
+
| Flag | Description | Default | Required |
|
|
2321
|
+
|------|-------------|---------|----------|
|
|
2322
|
+
| `--frequency-penalty <number>` | Body field frequency_penalty | - | No |
|
|
2323
|
+
| `--max-tokens <n>` | Body field max_tokens | - | No |
|
|
2324
|
+
| `--messages <json>` | Body field messages (JSON) [required] | - | No |
|
|
2325
|
+
| `--model <value>` | Body field model [required] | - | No |
|
|
2326
|
+
| `--n <n>` | Body field n | - | No |
|
|
2327
|
+
| `--presence-penalty <number>` | Body field presence_penalty | - | No |
|
|
2328
|
+
| `--response-format <json>` | Body field response_format (JSON) | - | No |
|
|
2329
|
+
| `--seed <n>` | Body field seed | - | No |
|
|
2330
|
+
| `--stop <json>` | Body field stop (JSON) | - | No |
|
|
2331
|
+
| `--stream` | Body field stream | - | No |
|
|
2332
|
+
| `--no-stream` | Set stream to false | - | No |
|
|
2333
|
+
| `--temperature <number>` | Body field temperature | - | No |
|
|
2334
|
+
| `--tool-choice <json>` | Body field tool_choice (JSON) | - | No |
|
|
2335
|
+
| `--tools <json>` | Body field tools (JSON) | - | No |
|
|
2336
|
+
| `--top-p <number>` | Body field top_p | - | No |
|
|
2337
|
+
| `--user <value>` | Body field user | - | No |
|
|
2338
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
2339
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
2340
|
+
| `--json` | Output in JSON format | - | No |
|
|
2341
|
+
|
|
2342
|
+
#### `ai gateway embeddings`
|
|
2343
|
+
|
|
2344
|
+
Embeddings
|
|
2345
|
+
|
|
2346
|
+
**Options:**
|
|
2347
|
+
|
|
2348
|
+
| Flag | Description | Default | Required |
|
|
2349
|
+
|------|-------------|---------|----------|
|
|
2350
|
+
| `--dimensions <n>` | Body field dimensions | - | No |
|
|
2351
|
+
| `--encoding-format <value>` | Body field encoding_format | - | No |
|
|
2352
|
+
| `--body-input <json>` | Body field input (JSON) [required] | - | No |
|
|
2353
|
+
| `--model <value>` | Body field model [required] | - | No |
|
|
2354
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
2355
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
2356
|
+
| `--json` | Output in JSON format | - | No |
|
|
2357
|
+
|
|
2358
|
+
#### `ai gateway upload-file`
|
|
2359
|
+
|
|
2360
|
+
Upload file
|
|
2361
|
+
|
|
2362
|
+
**Options:**
|
|
2363
|
+
|
|
2364
|
+
| Flag | Description | Default | Required |
|
|
2365
|
+
|------|-------------|---------|----------|
|
|
2366
|
+
| `--file <path>` | A JSONL batch input file: one request per line, every line targeting the same model and endpoint [required] | - | No |
|
|
2367
|
+
| `--purpose <value>` | Must be 'batch' [required] | - | No |
|
|
2368
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
2369
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
2370
|
+
| `--json` | Output in JSON format | - | No |
|
|
2371
|
+
|
|
2372
|
+
#### `ai gateway delete-file`
|
|
2373
|
+
|
|
2374
|
+
Delete file
|
|
2375
|
+
|
|
2376
|
+
**Usage:** `ai gateway delete-file <file-id> [options]`
|
|
2377
|
+
|
|
2378
|
+
**Options:**
|
|
2379
|
+
|
|
2380
|
+
| Flag | Description | Default | Required |
|
|
2381
|
+
|------|-------------|---------|----------|
|
|
2382
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
2383
|
+
| `--json` | Output in JSON format | - | No |
|
|
2384
|
+
|
|
2385
|
+
#### `ai gateway retrieve-file`
|
|
2386
|
+
|
|
2387
|
+
Retrieve file
|
|
2388
|
+
|
|
2389
|
+
**Usage:** `ai gateway retrieve-file <file-id> [options]`
|
|
2390
|
+
|
|
2391
|
+
**Options:**
|
|
2392
|
+
|
|
2393
|
+
| Flag | Description | Default | Required |
|
|
2394
|
+
|------|-------------|---------|----------|
|
|
2395
|
+
| `--json` | Output in JSON format | - | No |
|
|
2396
|
+
|
|
2397
|
+
#### `ai gateway file-content`
|
|
2398
|
+
|
|
2399
|
+
File content
|
|
2400
|
+
|
|
2401
|
+
**Usage:** `ai gateway file-content <file-id> [options]`
|
|
2402
|
+
|
|
2403
|
+
**Options:**
|
|
2404
|
+
|
|
2405
|
+
| Flag | Description | Default | Required |
|
|
2406
|
+
|------|-------------|---------|----------|
|
|
2407
|
+
| `-o, --output <path>` | Where to write the reply (default: stdout) | `-` | No |
|
|
2408
|
+
| `--json` | Output in JSON format | - | No |
|
|
2409
|
+
|
|
2410
|
+
#### `ai gateway list-models`
|
|
2411
|
+
|
|
2412
|
+
List models
|
|
2413
|
+
|
|
2414
|
+
**Options:**
|
|
2415
|
+
|
|
2416
|
+
| Flag | Description | Default | Required |
|
|
2417
|
+
|------|-------------|---------|----------|
|
|
2418
|
+
| `--json` | Output in JSON format | - | No |
|
|
2419
|
+
|
|
2420
|
+
#### `ai gateway create-response-json`
|
|
2421
|
+
|
|
2422
|
+
Explicit JSON contract for generated clients; the standard OpenAI route remains polymorphic
|
|
2423
|
+
|
|
2424
|
+
**Options:**
|
|
2425
|
+
|
|
2426
|
+
| Flag | Description | Default | Required |
|
|
2427
|
+
|------|-------------|---------|----------|
|
|
2428
|
+
| `--background` | Run asynchronously and poll for the result | - | No |
|
|
2429
|
+
| `--no-background` | Set background to false | - | No |
|
|
2430
|
+
| `--conversation <json>` | Attach the response to a stored conversation (JSON) | - | No |
|
|
2431
|
+
| `--model <value>` | Model to run, e.g. 'gpt-6-luna' [required] | - | No |
|
|
2432
|
+
| `--previous-response-id <value>` | Continue from a stored response | - | No |
|
|
2433
|
+
| `--stream` | Stream the reply as server-sent events | - | No |
|
|
2434
|
+
| `--no-stream` | Set stream to false | - | No |
|
|
2435
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
2436
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
2437
|
+
| `--json` | Output in JSON format | - | No |
|
|
2438
|
+
|
|
2439
|
+
#### `ai gateway create-response-stream`
|
|
2440
|
+
|
|
2441
|
+
Explicit SSE contract for generated clients; never buffers a successful event stream
|
|
2442
|
+
|
|
2443
|
+
**Options:**
|
|
2444
|
+
|
|
2445
|
+
| Flag | Description | Default | Required |
|
|
2446
|
+
|------|-------------|---------|----------|
|
|
2447
|
+
| `--background` | Run asynchronously and poll for the result | - | No |
|
|
2448
|
+
| `--no-background` | Set background to false | - | No |
|
|
2449
|
+
| `--conversation <json>` | Attach the response to a stored conversation (JSON) | - | No |
|
|
2450
|
+
| `--model <value>` | Model to run, e.g. 'gpt-6-luna' [required] | - | No |
|
|
2451
|
+
| `--previous-response-id <value>` | Continue from a stored response | - | No |
|
|
2452
|
+
| `--stream` | Stream the reply as server-sent events | - | No |
|
|
2453
|
+
| `--no-stream` | Set stream to false | - | No |
|
|
2454
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
2455
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
2456
|
+
| `--json` | Accepted for symmetry: events are always JSON lines | - | No |
|
|
2457
|
+
|
|
2458
|
+
#### `ai gateway stream-structured-output`
|
|
2459
|
+
|
|
2460
|
+
Stream structured output
|
|
2461
|
+
|
|
2462
|
+
**Options:**
|
|
2463
|
+
|
|
2464
|
+
| Flag | Description | Default | Required |
|
|
2465
|
+
|------|-------------|---------|----------|
|
|
2466
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
2467
|
+
| `--cache-key <value>` | Optional screen-owned cache identity | - | No |
|
|
2468
|
+
| `--cache-ttl-seconds <n>` | Backend cache lifetime in seconds (default 60, clamped to 1-300) | - | No |
|
|
2469
|
+
| `--model <value>` | Optional enabled model id for the selected key | - | No |
|
|
2470
|
+
| `--prompt <value>` | The complete, already-authorized context and instructions for the model [required] | - | No |
|
|
2471
|
+
| `--provider-key-id <n>` | Optional configured gateway key | - | No |
|
|
2472
|
+
| `--purpose <value>` | Stable product use-case identifier, for example 'api_traffic.summary' [required] | - | No |
|
|
2473
|
+
| `--refresh` | Bypass any matching backend cache entry and replace it with this result | - | No |
|
|
2474
|
+
| `--no-refresh` | Set refresh to false | - | No |
|
|
2475
|
+
| `--schema <json>` | JSON Schema describing the required response object (JSON) [required] | - | No |
|
|
2476
|
+
| `--thinking-level <value>` | Optional normalized reasoning depth advertised for the selected model | - | No |
|
|
2477
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
2478
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
2479
|
+
| `--json` | Accepted for symmetry: events are always JSON lines | - | No |
|
|
2480
|
+
|
|
2481
|
+
### `ai provider-status`
|
|
2482
|
+
|
|
2483
|
+
Provider status commands
|
|
2484
|
+
|
|
2485
|
+
**Subcommands:**
|
|
2486
|
+
|
|
2487
|
+
- `get` - Get ai provider status
|
|
2488
|
+
- `refresh` - Refresh ai provider status
|
|
2489
|
+
- `update-summary-preference` - Update ai summary preference
|
|
2490
|
+
|
|
2491
|
+
#### `ai provider-status get`
|
|
2492
|
+
|
|
2493
|
+
Get ai provider status
|
|
2494
|
+
|
|
2495
|
+
**Options:**
|
|
2496
|
+
|
|
2497
|
+
| Flag | Description | Default | Required |
|
|
2498
|
+
|------|-------------|---------|----------|
|
|
2499
|
+
| `--json` | Output in JSON format | - | No |
|
|
2500
|
+
|
|
2501
|
+
#### `ai provider-status refresh`
|
|
2502
|
+
|
|
2503
|
+
Refresh ai provider status
|
|
2504
|
+
|
|
2505
|
+
**Options:**
|
|
2506
|
+
|
|
2507
|
+
| Flag | Description | Default | Required |
|
|
2508
|
+
|------|-------------|---------|----------|
|
|
2509
|
+
| `--json` | Output in JSON format | - | No |
|
|
2510
|
+
|
|
2511
|
+
#### `ai provider-status update-summary-preference`
|
|
2512
|
+
|
|
2513
|
+
Update ai summary preference
|
|
2514
|
+
|
|
2515
|
+
**Options:**
|
|
2516
|
+
|
|
2517
|
+
| Flag | Description | Default | Required |
|
|
2518
|
+
|------|-------------|---------|----------|
|
|
2519
|
+
| `--model <value>` | Body field model | - | No |
|
|
2520
|
+
| `--provider-id <value>` | Body field provider_id | - | No |
|
|
2521
|
+
| `--thinking-level <value>` | Body field thinking_level | - | No |
|
|
2522
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
2523
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
2524
|
+
| `--json` | Output in JSON format | - | No |
|
|
2525
|
+
|
|
2526
|
+
### `ai workspace`
|
|
2527
|
+
|
|
2528
|
+
Workspace commands
|
|
2529
|
+
|
|
2530
|
+
**Subcommands:**
|
|
2531
|
+
|
|
2532
|
+
- `get-global` - Get global ai workspace
|
|
2533
|
+
- `get-activity` - Aggregate all active threads for the caller's global workspace and up to 100 requested, visible..
|
|
2534
|
+
- `get-global-changes` - Get global workspace changes
|
|
2535
|
+
- `get-global-diff` - Get global workspace diff
|
|
2536
|
+
- `get-global-directory` - Get global workspace directory
|
|
2537
|
+
- `get-global-file` - Get global workspace file
|
|
2538
|
+
- `get-file-limits` - Get effective AI workspace file limits
|
|
2539
|
+
- `download-global-file` - Download one global AI workspace file
|
|
2540
|
+
- `upload-global-files` - Upload files into the global AI workspace
|
|
2541
|
+
- `create-global-preview-link` - Mint a short-lived preview URL for a port in the user's shared global AI workspace
|
|
2542
|
+
- `attach-global-terminal` - Attach an interactive terminal to the user's global workspace
|
|
2543
|
+
|
|
2544
|
+
#### `ai workspace get-global`
|
|
2545
|
+
|
|
2546
|
+
Get global ai workspace
|
|
2547
|
+
|
|
2548
|
+
**Options:**
|
|
2549
|
+
|
|
2550
|
+
| Flag | Description | Default | Required |
|
|
2551
|
+
|------|-------------|---------|----------|
|
|
2552
|
+
| `--json` | Output in JSON format | - | No |
|
|
2553
|
+
|
|
2554
|
+
#### `ai workspace get-activity`
|
|
2555
|
+
|
|
2556
|
+
Aggregate all active threads for the caller's global workspace and up to 100 requested, visible..
|
|
2557
|
+
|
|
2558
|
+
**Options:**
|
|
2559
|
+
|
|
2560
|
+
| Flag | Description | Default | Required |
|
|
2561
|
+
|------|-------------|---------|----------|
|
|
2562
|
+
| `--application-public-ids <value>` | Comma-separated application public IDs (maximum 100) | - | No |
|
|
2563
|
+
| `--json` | Output in JSON format | - | No |
|
|
2564
|
+
|
|
2565
|
+
#### `ai workspace get-global-changes`
|
|
2566
|
+
|
|
2567
|
+
Get global workspace changes
|
|
2568
|
+
|
|
2569
|
+
**Options:**
|
|
2570
|
+
|
|
2571
|
+
| Flag | Description | Default | Required |
|
|
2572
|
+
|------|-------------|---------|----------|
|
|
2573
|
+
| `--cursor <n>` | Position returned by the previous page | - | No |
|
|
2574
|
+
| `--limit <n>` | Files per page (1-200, default 100) | - | No |
|
|
2575
|
+
| `--json` | Output in JSON format | - | No |
|
|
2576
|
+
|
|
2577
|
+
#### `ai workspace get-global-diff`
|
|
2578
|
+
|
|
2579
|
+
Get global workspace diff
|
|
2580
|
+
|
|
2581
|
+
**Options:**
|
|
2582
|
+
|
|
2583
|
+
| Flag | Description | Default | Required |
|
|
2584
|
+
|------|-------------|---------|----------|
|
|
2585
|
+
| `--path <value>` | Query parameter path [required] | - | No |
|
|
2586
|
+
| `--json` | Output in JSON format | - | No |
|
|
2587
|
+
|
|
2588
|
+
#### `ai workspace get-global-directory`
|
|
2589
|
+
|
|
2590
|
+
Get global workspace directory
|
|
2591
|
+
|
|
2592
|
+
**Options:**
|
|
2593
|
+
|
|
2594
|
+
| Flag | Description | Default | Required |
|
|
2595
|
+
|------|-------------|---------|----------|
|
|
2596
|
+
| `--path <value>` | Workspace-relative directory; omit for the root | - | No |
|
|
2597
|
+
| `--cursor <n>` | Position returned by the previous page | - | No |
|
|
2598
|
+
| `--limit <n>` | Entries per page (1-100, default 100) | - | No |
|
|
2599
|
+
| `--json` | Output in JSON format | - | No |
|
|
2600
|
+
|
|
2601
|
+
#### `ai workspace get-global-file`
|
|
2602
|
+
|
|
2603
|
+
Get global workspace file
|
|
2604
|
+
|
|
2605
|
+
**Options:**
|
|
2606
|
+
|
|
2607
|
+
| Flag | Description | Default | Required |
|
|
2608
|
+
|------|-------------|---------|----------|
|
|
2609
|
+
| `--path <value>` | Query parameter path [required] | - | No |
|
|
2610
|
+
| `--json` | Output in JSON format | - | No |
|
|
2611
|
+
|
|
2612
|
+
#### `ai workspace get-file-limits`
|
|
2613
|
+
|
|
2614
|
+
Get effective AI workspace file limits
|
|
2615
|
+
|
|
2616
|
+
**Options:**
|
|
2617
|
+
|
|
2618
|
+
| Flag | Description | Default | Required |
|
|
2619
|
+
|------|-------------|---------|----------|
|
|
2620
|
+
| `--json` | Output in JSON format | - | No |
|
|
2621
|
+
|
|
2622
|
+
#### `ai workspace download-global-file`
|
|
2623
|
+
|
|
2624
|
+
Download one global AI workspace file
|
|
2625
|
+
|
|
2626
|
+
**Options:**
|
|
2627
|
+
|
|
2628
|
+
| Flag | Description | Default | Required |
|
|
2629
|
+
|------|-------------|---------|----------|
|
|
2630
|
+
| `--path <value>` | Query parameter path [required] | - | No |
|
|
2631
|
+
| `-o, --output <path>` | Where to write the reply (default: stdout) | `-` | No |
|
|
2632
|
+
| `--json` | Output in JSON format | - | No |
|
|
2633
|
+
|
|
2634
|
+
#### `ai workspace upload-global-files`
|
|
2635
|
+
|
|
2636
|
+
Upload files into the global AI workspace
|
|
2637
|
+
|
|
2638
|
+
**Options:**
|
|
2639
|
+
|
|
2640
|
+
| Flag | Description | Default | Required |
|
|
2641
|
+
|------|-------------|---------|----------|
|
|
2642
|
+
| `--files <json>` | Body field files (JSON) [required] | - | No |
|
|
2643
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
2644
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
2645
|
+
| `--json` | Output in JSON format | - | No |
|
|
2646
|
+
|
|
2647
|
+
#### `ai workspace create-global-preview-link`
|
|
2648
|
+
|
|
2649
|
+
Mint a short-lived preview URL for a port in the user's shared global AI workspace
|
|
2650
|
+
|
|
2651
|
+
**Options:**
|
|
2652
|
+
|
|
2653
|
+
| Flag | Description | Default | Required |
|
|
2654
|
+
|------|-------------|---------|----------|
|
|
2655
|
+
| `--path <value>` | Optional same-origin path to open after the preview grant is exchanged | - | No |
|
|
2656
|
+
| `--port <n>` | The development server port detected or selected in the sandbox [required] | - | No |
|
|
2657
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
2658
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
2659
|
+
| `--json` | Output in JSON format | - | No |
|
|
2660
|
+
|
|
2661
|
+
#### `ai workspace attach-global-terminal`
|
|
2662
|
+
|
|
2663
|
+
Attach an interactive terminal to the user's global workspace
|
|
2664
|
+
|
|
2665
|
+
**Options:**
|
|
2666
|
+
|
|
2667
|
+
| Flag | Description | Default | Required |
|
|
2668
|
+
|------|-------------|---------|----------|
|
|
2669
|
+
| `--thread <value>` | Public id of the terminal thread to attach to [required] | - | No |
|
|
2670
|
+
| `--cols <n>` | Initial terminal width in columns (default 80) | - | No |
|
|
2671
|
+
| `--rows <n>` | Initial terminal height in rows (default 24) | - | No |
|
|
47
2672
|
| `--json` | Output in JSON format | - | No |
|