You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bb3476a
Browse filesBrowse the repository at this point in the historyBrowse files
Chat with your deployed bot directly from the CLI.
130
+
Chat with your agent in development mode directly from the CLI.
131
131
132
132
**Usage:**
133
133
```bash
@@ -140,6 +140,62 @@ Run `adk dev` first to create a development bot if you don't have a `devId` in y
140
140
141
141
---
142
142
143
+
### `adk run`
144
+
145
+
Run a TypeScript script with the ADK runtime fully initialized. This allows you to execute scripts that use your agent's primitives, integrations, and runtime utilities like `client`, `context`, and `adk`.
146
+
147
+
**Usage:**
148
+
```bash
149
+
adk run <script> [args...]
150
+
adk run scripts/migrate-data.ts
151
+
adk run scripts/seed-tables.ts --prod
152
+
adk run scripts/analyze.ts arg1 arg2
153
+
```
154
+
155
+
**Arguments:**
156
+
157
+
| Argument | Description |
158
+
|----------|-------------|
159
+
|`script`| Path to the TypeScript script file to run |
160
+
|`args`| Optional arguments to pass to the script |
161
+
162
+
**Flags:**
163
+
164
+
| Flag | Description | Default |
165
+
|------|-------------|---------|
166
+
|`-f, --force`| Force regeneration of the bot project |`false`|
167
+
|`--prod`| Use production bot instead of dev bot |`false`|
168
+
169
+
**Script exports:**
170
+
171
+
Your script can export a function that will be called automatically:
Use `adk run` to execute migrations, seed data, run maintenance tasks, or any script that needs access to your agent's runtime context.
195
+
</Tip>
196
+
197
+
---
198
+
143
199
### `adk mcp`
144
200
145
201
Start an MCP (Model Context Protocol) server for AI assistant integration. This allows AI coding assistants like Claude Code and Cursor to interact with your ADK agent.
0 commit comments