@botpress/adk 1.18.3 → 1.19.0-beta.3

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.
Files changed (272) hide show
  1. package/dist/agent-init/agent-project-generator.d.ts +10 -7
  2. package/dist/agent-init/agent-project-generator.d.ts.map +1 -1
  3. package/dist/agent-project/agent-project.d.ts +1 -1
  4. package/dist/agent-project/agent-project.d.ts.map +1 -1
  5. package/dist/agent-project/component-files.d.ts +10 -0
  6. package/dist/agent-project/component-files.d.ts.map +1 -0
  7. package/dist/agent-project/component-index-writer.d.ts +22 -0
  8. package/dist/agent-project/component-index-writer.d.ts.map +1 -0
  9. package/dist/agent-project/config-writer.d.ts +5 -0
  10. package/dist/agent-project/config-writer.d.ts.map +1 -1
  11. package/dist/agent-project/index.d.ts +3 -0
  12. package/dist/agent-project/index.d.ts.map +1 -1
  13. package/dist/agent-project/lock-to-dependencies.d.ts +11 -0
  14. package/dist/agent-project/lock-to-dependencies.d.ts.map +1 -0
  15. package/dist/agent-project/types.d.ts +1 -0
  16. package/dist/agent-project/types.d.ts.map +1 -1
  17. package/dist/agent-project/validation-errors.d.ts +1 -0
  18. package/dist/agent-project/validation-errors.d.ts.map +1 -1
  19. package/dist/agent0/capabilities/commands/adk-build.md +39 -0
  20. package/dist/agent0/capabilities/commands/adk-debug.md +23 -0
  21. package/dist/agent0/capabilities/commands/adk-dev-console.md +17 -0
  22. package/dist/agent0/capabilities/commands/adk-document.md +68 -0
  23. package/dist/agent0/capabilities/commands/adk-eval.md +17 -0
  24. package/dist/agent0/capabilities/commands/adk-explain.md +22 -0
  25. package/dist/agent0/capabilities/commands/adk-init.md +30 -0
  26. package/dist/agent0/capabilities/commands/adk-ship.md +29 -0
  27. package/dist/agent0/capabilities/commands/adk-test.md +27 -0
  28. package/dist/agent0/capabilities/commands/adk-validate.md +31 -0
  29. package/dist/agent0/capabilities/skills/adk/SKILL.md +548 -0
  30. package/dist/agent0/capabilities/skills/adk/references/actions.md +823 -0
  31. package/dist/agent0/capabilities/skills/adk/references/advanced-patterns.md +669 -0
  32. package/dist/agent0/capabilities/skills/adk/references/agent-config.md +450 -0
  33. package/dist/agent0/capabilities/skills/adk/references/assets.md +237 -0
  34. package/dist/agent0/capabilities/skills/adk/references/autonomous-execution.md +747 -0
  35. package/dist/agent0/capabilities/skills/adk/references/cli.md +1093 -0
  36. package/dist/agent0/capabilities/skills/adk/references/context-api.md +461 -0
  37. package/dist/agent0/capabilities/skills/adk/references/conversation-lifecycle.md +311 -0
  38. package/dist/agent0/capabilities/skills/adk/references/conversations.md +1111 -0
  39. package/dist/agent0/capabilities/skills/adk/references/custom-components.md +167 -0
  40. package/dist/agent0/capabilities/skills/adk/references/desk.md +852 -0
  41. package/dist/agent0/capabilities/skills/adk/references/evals.md +11 -0
  42. package/dist/agent0/capabilities/skills/adk/references/explain-config.md +424 -0
  43. package/dist/agent0/capabilities/skills/adk/references/files.md +918 -0
  44. package/dist/agent0/capabilities/skills/adk/references/integration-actions.md +659 -0
  45. package/dist/agent0/capabilities/skills/adk/references/integrations.md +266 -0
  46. package/dist/agent0/capabilities/skills/adk/references/interfaces.md +97 -0
  47. package/dist/agent0/capabilities/skills/adk/references/knowledge-bases.md +456 -0
  48. package/dist/agent0/capabilities/skills/adk/references/mcp-server.md +112 -0
  49. package/dist/agent0/capabilities/skills/adk/references/messages.md +769 -0
  50. package/dist/agent0/capabilities/skills/adk/references/model-configuration.md +201 -0
  51. package/dist/agent0/capabilities/skills/adk/references/patterns-mistakes.md +469 -0
  52. package/dist/agent0/capabilities/skills/adk/references/plugins.md +280 -0
  53. package/dist/agent0/capabilities/skills/adk/references/tables.md +1136 -0
  54. package/dist/agent0/capabilities/skills/adk/references/tags.md +516 -0
  55. package/dist/agent0/capabilities/skills/adk/references/tools.md +581 -0
  56. package/dist/agent0/capabilities/skills/adk/references/triggers.md +719 -0
  57. package/dist/agent0/capabilities/skills/adk/references/workflow-steps.md +851 -0
  58. package/dist/agent0/capabilities/skills/adk/references/workflows.md +1408 -0
  59. package/dist/agent0/capabilities/skills/adk/references/zai-agent-reference.md +454 -0
  60. package/dist/agent0/capabilities/skills/adk/references/zai-complete-guide.md +1408 -0
  61. package/dist/agent0/capabilities/skills/adk-debugger/SKILL.md +257 -0
  62. package/dist/agent0/capabilities/skills/adk-debugger/references/common-failures.md +231 -0
  63. package/dist/agent0/capabilities/skills/adk-debugger/references/conversation-analysis.md +420 -0
  64. package/dist/agent0/capabilities/skills/adk-debugger/references/debug-workflow.md +239 -0
  65. package/dist/agent0/capabilities/skills/adk-debugger/references/llm-debugging.md +209 -0
  66. package/dist/agent0/capabilities/skills/adk-debugger/references/trace-summarization.md +313 -0
  67. package/dist/agent0/capabilities/skills/adk-debugger/references/traces-and-logs.md +195 -0
  68. package/dist/agent0/capabilities/skills/adk-dev-console/SKILL.md +111 -0
  69. package/dist/agent0/capabilities/skills/adk-dev-console/references/agent-steps.md +115 -0
  70. package/dist/agent0/capabilities/skills/adk-dev-console/references/component-registry.md +43 -0
  71. package/dist/agent0/capabilities/skills/adk-dev-console/references/multi-agent-dashboard.md +70 -0
  72. package/dist/agent0/capabilities/skills/adk-dev-console/references/pages.md +273 -0
  73. package/dist/agent0/capabilities/skills/adk-docs/SKILL.md +114 -0
  74. package/dist/agent0/capabilities/skills/adk-docs/references/doc-standards.md +124 -0
  75. package/dist/agent0/capabilities/skills/adk-evals/SKILL.md +244 -0
  76. package/dist/agent0/capabilities/skills/adk-evals/references/eval-format.md +354 -0
  77. package/dist/agent0/capabilities/skills/adk-evals/references/test-patterns.md +355 -0
  78. package/dist/agent0/capabilities/skills/adk-evals/references/testing-workflow.md +225 -0
  79. package/dist/agent0/config/index.d.ts +5 -0
  80. package/dist/agent0/config/index.d.ts.map +1 -0
  81. package/dist/agent0/config/paths.d.ts +12 -0
  82. package/dist/agent0/config/paths.d.ts.map +1 -0
  83. package/dist/agent0/config/schema.d.ts +171 -0
  84. package/dist/agent0/config/schema.d.ts.map +1 -0
  85. package/dist/agent0/config/secrets.d.ts +4 -0
  86. package/dist/agent0/config/secrets.d.ts.map +1 -0
  87. package/dist/agent0/config/store.d.ts +21 -0
  88. package/dist/agent0/config/store.d.ts.map +1 -0
  89. package/dist/agent0/index.d.ts +6 -0
  90. package/dist/agent0/index.d.ts.map +1 -0
  91. package/dist/agent0/index.js +3215 -0
  92. package/dist/agent0/index.js.map +27 -0
  93. package/dist/agent0/providers/catalog.d.ts +189 -0
  94. package/dist/agent0/providers/catalog.d.ts.map +1 -0
  95. package/dist/agent0/providers/index.d.ts +4 -0
  96. package/dist/agent0/providers/index.d.ts.map +1 -0
  97. package/dist/agent0/providers/registry.d.ts +32 -0
  98. package/dist/agent0/providers/registry.d.ts.map +1 -0
  99. package/dist/agent0/providers/source.d.ts +100 -0
  100. package/dist/agent0/providers/source.d.ts.map +1 -0
  101. package/dist/agent0/runtime/client.d.ts +50 -0
  102. package/dist/agent0/runtime/client.d.ts.map +1 -0
  103. package/dist/agent0/runtime/engine.d.ts +74 -0
  104. package/dist/agent0/runtime/engine.d.ts.map +1 -0
  105. package/dist/agent0/runtime/index.d.ts +7 -0
  106. package/dist/agent0/runtime/index.d.ts.map +1 -0
  107. package/dist/agent0/runtime/manager.d.ts +82 -0
  108. package/dist/agent0/runtime/manager.d.ts.map +1 -0
  109. package/dist/agent0/runtime/permissions.d.ts +6 -0
  110. package/dist/agent0/runtime/permissions.d.ts.map +1 -0
  111. package/dist/agent0/runtime/process.d.ts +43 -0
  112. package/dist/agent0/runtime/process.d.ts.map +1 -0
  113. package/dist/agent0/runtime/project-discovery.d.ts +5 -0
  114. package/dist/agent0/runtime/project-discovery.d.ts.map +1 -0
  115. package/dist/agent0/types.d.ts +447 -0
  116. package/dist/agent0/types.d.ts.map +1 -0
  117. package/dist/assets/manager.d.ts +0 -2
  118. package/dist/assets/manager.d.ts.map +1 -1
  119. package/dist/assets/types.d.ts +3 -1
  120. package/dist/assets/types.d.ts.map +1 -1
  121. package/dist/auth/credentials.d.ts.map +1 -1
  122. package/dist/auth/index.d.ts +30 -0
  123. package/dist/auth/index.d.ts.map +1 -1
  124. package/dist/bot-generator/dev-id-manager.d.ts.map +1 -1
  125. package/dist/bot-generator/generator.d.ts +5 -1
  126. package/dist/bot-generator/generator.d.ts.map +1 -1
  127. package/dist/bot-generator/integration-sync.d.ts.map +1 -1
  128. package/dist/bot-generator/interface-sync.d.ts.map +1 -1
  129. package/dist/bot-generator/plugin-sync.d.ts.map +1 -1
  130. package/dist/bot-generator/table-validation.d.ts +17 -0
  131. package/dist/bot-generator/table-validation.d.ts.map +1 -0
  132. package/dist/chat-bundle.cjs +31 -0
  133. package/dist/cognitive/models.d.ts +32 -0
  134. package/dist/cognitive/models.d.ts.map +1 -0
  135. package/dist/commands/base-command.d.ts.map +1 -1
  136. package/dist/commands/bp-add-command.d.ts.map +1 -1
  137. package/dist/commands/bp-build-command.d.ts.map +1 -1
  138. package/dist/commands/bp-chat-command.d.ts.map +1 -1
  139. package/dist/commands/bp-cli.d.ts +1 -0
  140. package/dist/commands/bp-cli.d.ts.map +1 -1
  141. package/dist/commands/bp-deploy-command.d.ts.map +1 -1
  142. package/dist/commands/bp-dev-command.d.ts +5 -0
  143. package/dist/commands/bp-dev-command.d.ts.map +1 -1
  144. package/dist/commands/bp-dev-stderr.d.ts +21 -0
  145. package/dist/commands/bp-dev-stderr.d.ts.map +1 -0
  146. package/dist/commands/index.d.ts +0 -5
  147. package/dist/commands/index.d.ts.map +1 -1
  148. package/dist/config/manager.d.ts +9 -1
  149. package/dist/config/manager.d.ts.map +1 -1
  150. package/dist/constants.d.ts +1 -0
  151. package/dist/constants.d.ts.map +1 -1
  152. package/dist/dependencies/alias-utils.d.ts +13 -0
  153. package/dist/dependencies/alias-utils.d.ts.map +1 -0
  154. package/dist/dependencies/dependency-manager.d.ts +89 -0
  155. package/dist/dependencies/dependency-manager.d.ts.map +1 -0
  156. package/dist/dependencies/errors.d.ts +16 -0
  157. package/dist/dependencies/errors.d.ts.map +1 -0
  158. package/dist/dependencies/index.d.ts +17 -0
  159. package/dist/dependencies/index.d.ts.map +1 -0
  160. package/dist/dependencies/index.js +6032 -0
  161. package/dist/dependencies/index.js.map +59 -0
  162. package/dist/dependencies/json-utils.d.ts +3 -0
  163. package/dist/dependencies/json-utils.d.ts.map +1 -0
  164. package/dist/dependencies/lock-file.d.ts +15 -0
  165. package/dist/dependencies/lock-file.d.ts.map +1 -0
  166. package/dist/dependencies/migration.d.ts +8 -0
  167. package/dist/dependencies/migration.d.ts.map +1 -0
  168. package/dist/dependencies/registry/integration-registry.d.ts +17 -0
  169. package/dist/dependencies/registry/integration-registry.d.ts.map +1 -0
  170. package/dist/dependencies/registry/interface-registry.d.ts +11 -0
  171. package/dist/dependencies/registry/interface-registry.d.ts.map +1 -0
  172. package/dist/dependencies/registry/plugin-registry.d.ts +16 -0
  173. package/dist/dependencies/registry/plugin-registry.d.ts.map +1 -0
  174. package/dist/dependencies/resolvers/integration-resolver.d.ts +30 -0
  175. package/dist/dependencies/resolvers/integration-resolver.d.ts.map +1 -0
  176. package/dist/dependencies/resolvers/plugin-resolver.d.ts +38 -0
  177. package/dist/dependencies/resolvers/plugin-resolver.d.ts.map +1 -0
  178. package/dist/dependencies/types.d.ts +253 -0
  179. package/dist/dependencies/types.d.ts.map +1 -0
  180. package/dist/deploy-manifest/index.d.ts +608 -0
  181. package/dist/deploy-manifest/index.d.ts.map +1 -0
  182. package/dist/generators/assets.d.ts +2 -2
  183. package/dist/generators/assets.d.ts.map +1 -1
  184. package/dist/generators/tests.d.ts +6 -6
  185. package/dist/generators/tests.d.ts.map +1 -1
  186. package/dist/generators/utils.d.ts.map +1 -1
  187. package/dist/index.d.ts +13 -10
  188. package/dist/index.d.ts.map +1 -1
  189. package/dist/index.js +16445 -4824
  190. package/dist/index.js.map +70 -56
  191. package/dist/integrations/config-utils.d.ts.map +1 -1
  192. package/dist/integrations/index.d.ts +0 -6
  193. package/dist/integrations/index.d.ts.map +1 -1
  194. package/dist/integrations/manager.d.ts +17 -1
  195. package/dist/integrations/manager.d.ts.map +1 -1
  196. package/dist/interfaces/index.d.ts +0 -2
  197. package/dist/interfaces/index.d.ts.map +1 -1
  198. package/dist/interfaces/manager.d.ts +3 -1
  199. package/dist/interfaces/manager.d.ts.map +1 -1
  200. package/dist/knowledge/manager.d.ts +3 -1
  201. package/dist/knowledge/manager.d.ts.map +1 -1
  202. package/dist/knowledge/types.d.ts +2 -2
  203. package/dist/knowledge/types.d.ts.map +1 -1
  204. package/dist/plugins/manager.d.ts +29 -1
  205. package/dist/plugins/manager.d.ts.map +1 -1
  206. package/dist/preflight/checker.d.ts +5 -6
  207. package/dist/preflight/checker.d.ts.map +1 -1
  208. package/dist/preflight/index.d.ts +2 -2
  209. package/dist/preflight/index.d.ts.map +1 -1
  210. package/dist/preflight/types.d.ts +30 -32
  211. package/dist/preflight/types.d.ts.map +1 -1
  212. package/dist/runner/script-runner.d.ts +2 -0
  213. package/dist/runner/script-runner.d.ts.map +1 -1
  214. package/dist/runner/supervise-child.d.ts +24 -0
  215. package/dist/runner/supervise-child.d.ts.map +1 -0
  216. package/dist/tables/table-manager.d.ts.map +1 -1
  217. package/dist/tables/types.d.ts +3 -2
  218. package/dist/tables/types.d.ts.map +1 -1
  219. package/dist/templates/README.md +13 -12
  220. package/dist/templates/blank/agent.config.ts +0 -3
  221. package/dist/templates/blank/evals/index.eval.ts +30 -0
  222. package/dist/templates/blank/src/conversations/index.ts +16 -16
  223. package/dist/templates/botpress-desk/README.md +87 -0
  224. package/dist/templates/botpress-desk/agent.config.ts +19 -0
  225. package/dist/templates/botpress-desk/evals/index.eval.ts +30 -0
  226. package/dist/templates/botpress-desk/package.json +17 -0
  227. package/dist/templates/botpress-desk/src/actions/index.ts +19 -0
  228. package/dist/templates/botpress-desk/src/conversations/index.ts +16 -0
  229. package/dist/templates/botpress-desk/src/knowledge/index.ts +20 -0
  230. package/dist/templates/botpress-desk/src/tables/index.ts +16 -0
  231. package/dist/templates/botpress-desk/src/tools/handToSupport.ts +23 -0
  232. package/dist/templates/botpress-desk/src/triggers/index.ts +17 -0
  233. package/dist/templates/botpress-desk/src/workflows/index.ts +21 -0
  234. package/dist/templates/crm-enrichment/agent.config.ts +0 -3
  235. package/dist/templates/crm-enrichment/evals/example.eval.ts +29 -0
  236. package/dist/templates/crm-enrichment/package.json +1 -0
  237. package/dist/templates/hello-world/agent.config.ts +0 -3
  238. package/dist/templates/hello-world/evals/context-retention.eval.ts +37 -0
  239. package/dist/templates/hello-world/evals/greeting.eval.ts +43 -0
  240. package/dist/templates/hello-world/package.json +1 -0
  241. package/dist/templates/knowledge-assistant/agent.config.ts +0 -3
  242. package/dist/templates/knowledge-assistant/evals/engineering-practices.eval.ts +45 -0
  243. package/dist/templates/knowledge-assistant/evals/out-of-scope.eval.ts +33 -0
  244. package/dist/templates/knowledge-assistant/evals/pto-policy.eval.ts +44 -0
  245. package/dist/templates/knowledge-assistant/package.json +1 -0
  246. package/dist/templates/slack-triage/agent.config.ts +0 -8
  247. package/dist/templates/slack-triage/evals/triage-basic.eval.ts +9 -39
  248. package/dist/templates/slack-triage/package.json +1 -0
  249. package/dist/templates/slack-triage/src/conversations/slack-dm.ts +4 -1
  250. package/dist/templates/template.config.json +16 -16
  251. package/dist/utils/require-chat.d.ts +3 -24
  252. package/dist/utils/require-chat.d.ts.map +1 -1
  253. package/dist/utils/search-ranking.d.ts +15 -0
  254. package/dist/utils/search-ranking.d.ts.map +1 -0
  255. package/dist/workspace/workspace-cache.d.ts.map +1 -1
  256. package/package.json +19 -11
  257. package/dist/commands/copilot-config-reader.d.ts +0 -12
  258. package/dist/commands/copilot-config-reader.d.ts.map +0 -1
  259. package/dist/commands/copilot-server.d.ts +0 -26
  260. package/dist/commands/copilot-server.d.ts.map +0 -1
  261. package/dist/commands/opencode-config.d.ts +0 -29
  262. package/dist/commands/opencode-config.d.ts.map +0 -1
  263. package/dist/integrations/checker.d.ts +0 -41
  264. package/dist/integrations/checker.d.ts.map +0 -1
  265. package/dist/integrations/operations.d.ts +0 -140
  266. package/dist/integrations/operations.d.ts.map +0 -1
  267. package/dist/integrations/sync-manager.d.ts +0 -19
  268. package/dist/integrations/sync-manager.d.ts.map +0 -1
  269. package/dist/interfaces/operations.d.ts +0 -48
  270. package/dist/interfaces/operations.d.ts.map +0 -1
  271. package/dist/preflight/formatter.d.ts +0 -12
  272. package/dist/preflight/formatter.d.ts.map +0 -1
@@ -0,0 +1,1093 @@
1
+ # CLI Reference
2
+
3
+ Command-line interface for building AI agents with the Botpress ADK.
4
+
5
+ ## Quick Start
6
+
7
+ ```bash
8
+ # 1. Log in non-interactively when possible
9
+ export BOTPRESS_TOKEN=pat_abc123
10
+ adk login --token "$BOTPRESS_TOKEN"
11
+
12
+ # 2. Create a new agent with defaults
13
+ adk init my-bot --yes --skip-link
14
+ cd my-bot
15
+
16
+ # 3. Link explicitly when you know the IDs
17
+ adk link --workspace ws_123 --bot bot_456
18
+
19
+ # 4. Start development
20
+ adk dev --logs --no-open
21
+
22
+ # 5. Deploy
23
+ adk deploy --yes
24
+ ```
25
+
26
+ ## Commands
27
+
28
+ ### adk init
29
+
30
+ Create a new ADK agent project.
31
+
32
+ ```bash
33
+ adk init [name]
34
+ ```
35
+
36
+ **Options:**
37
+
38
+ - `name` - Project name (optional, prompts if omitted)
39
+ - `-t, --template <template>` - Template to use: `blank` or `hello-world`
40
+ - `-y, --yes` - Skip prompts and use sensible defaults
41
+ - `--defaults` - Alias for `--yes`
42
+ - `--skip-link` - Skip the linking step after project creation
43
+
44
+ **Defaults when using `--yes` / `--defaults`:**
45
+
46
+ - Project name: `my-agent` (if omitted)
47
+ - Template: `hello-world` (if omitted)
48
+ - Linking: skipped unless you run `adk link` later
49
+
50
+ **Examples:**
51
+
52
+ ```bash
53
+ adk init customer-support
54
+
55
+ # Non-interactive setup for AI agents and CI
56
+ adk init customer-support --yes --skip-link
57
+
58
+ # Use the current hello-world template
59
+ adk init customer-support --template hello-world
60
+ ```
61
+
62
+ **Automation notes:**
63
+
64
+ - `adk init` installs dependencies automatically after scaffolding.
65
+ - The CLI auto-selects a package manager based on lockfiles when possible, otherwise it falls back to the first available manager.
66
+ - If authentication is missing, `adk init` may still invoke login first.
67
+ - The non-interactive path only works after login has already been completed.
68
+ - For unattended setup, log in first with `adk login --token "$BOTPRESS_TOKEN"`, then run `adk init <name> --yes --skip-link`.
69
+
70
+ **Creates:**
71
+
72
+ ```
73
+ my-agent/
74
+ ├── agent.config.ts # Agent configuration
75
+ └── src/
76
+ ├── actions/ # Functions
77
+ ├── conversations/ # Conversation handlers
78
+ ├── knowledge/ # Knowledge bases
79
+ ├── tables/ # Data storage
80
+ ├── triggers/ # Event subscriptions
81
+ └── workflows/ # Long-running processes
82
+ ```
83
+
84
+ **Note:** Additional directories like `tools/`, `assets/`, etc. can be created manually as needed.
85
+
86
+ ### adk login
87
+
88
+ Authenticate with Botpress.
89
+
90
+ ```bash
91
+ adk login [options]
92
+ ```
93
+
94
+ **Options:**
95
+
96
+ - `--token <token>` - Personal access token
97
+ - `--profile <name>` - Profile name (default: "default")
98
+ - `--api-url <url>` - API URL (default: https://api.botpress.cloud)
99
+
100
+ **Examples:**
101
+
102
+ ```bash
103
+ # Interactive login
104
+ adk login
105
+
106
+ # Non-interactive with token
107
+ adk login --token pat_abc123
108
+
109
+ # Non-interactive with environment variable
110
+ export BOTPRESS_TOKEN=pat_abc123
111
+ adk login --token "$BOTPRESS_TOKEN"
112
+
113
+ # Multiple profiles
114
+ adk login --profile staging
115
+ adk login --profile production
116
+ ```
117
+
118
+ **Automation notes:**
119
+
120
+ - Preferred AI/CI path: `adk login --token <token>`.
121
+ - `BOTPRESS_TOKEN` is best used as `adk login --token "$BOTPRESS_TOKEN"`.
122
+ - Bare `BOTPRESS_TOKEN` is only auto-used in non-interactive or no-TTY contexts.
123
+ - Without a token, `adk login` falls back to the interactive browser/manual flow.
124
+
125
+ **Profile Management:**
126
+
127
+ ```bash
128
+ adk profiles list # List all profiles
129
+ adk profiles set staging # Switch profile
130
+ ```
131
+
132
+ ### adk dev
133
+
134
+ Start development mode with hot reloading.
135
+
136
+ ```bash
137
+ adk dev [options]
138
+ ```
139
+
140
+ **Options:**
141
+
142
+ - `-p, --port <port>` - Bot port (default: 3000)
143
+ - `--port-console <port>` - UI console port (default: 3001)
144
+ - `-l, --logs` - Stream logs to stderr (no TUI)
145
+ - `--no-open` - Do not auto-open the dev console in a browser
146
+
147
+ **What it does:**
148
+
149
+ 1. Generates bot project in `.adk/bot/`
150
+ 2. Creates/restores development bot
151
+ 3. Syncs tables
152
+ 4. Checks integrations
153
+ 5. Registers the agent with the shared Dev Console (starts the singleton if needed)
154
+ 6. Dev Console available at http://localhost:3001
155
+ 7. Watches files and hot-reloads
156
+
157
+ Running `adk dev` in multiple project directories registers each agent with the same Dev Console. Switch between agents in the sidebar. See the [Dev Console multi-agent dashboard](../../adk-dev-console/references/multi-agent-dashboard.md) for details.
158
+
159
+ **Example:**
160
+
161
+ ```bash
162
+ adk dev
163
+
164
+ # CI mode (no TUI)
165
+ adk dev --logs
166
+
167
+ # CI mode without opening a browser
168
+ adk dev --logs --no-open
169
+ ```
170
+
171
+ **Automation notes:**
172
+
173
+ - `--logs` is the most AI-friendly mode, but `adk dev` is not fully headless.
174
+ - Dev can still hit interactive flows such as preflight, knowledge-base sync, or config prompts depending on project state.
175
+ - Treat `adk dev` as CI-friendly rather than guaranteed prompt-free.
176
+ - Event-driven integrations are not always perfectly mirrored in local dev; if an event flow behaves strangely, verify it against a deployed bot too.
177
+
178
+ ### adk deploy
179
+
180
+ Deploy agent to Botpress Cloud.
181
+
182
+ ```bash
183
+ adk deploy [options]
184
+ ```
185
+
186
+ **Options:**
187
+
188
+ - `-e, --env <environment>` - Target environment (default: "production")
189
+ - `-y, --yes` - Auto-approve preflight changes without prompting
190
+
191
+ **What it does:**
192
+
193
+ 1. Runs `adk build`
194
+ 2. Validates configuration
195
+ 3. Runs preflight checks
196
+ 4. Deploys bot to Botpress Cloud
197
+ 5. Syncs knowledge bases
198
+ 6. Syncs tables
199
+
200
+ **Requires:**
201
+
202
+ - Logged in (`adk login`)
203
+ - `agent.json` with botId and workspaceId
204
+
205
+ **Example:**
206
+
207
+ ```bash
208
+ adk deploy
209
+
210
+ # Auto-approve preflight changes
211
+ adk deploy --yes
212
+ ```
213
+
214
+ **Automation notes:**
215
+
216
+ - `--yes` only auto-approves preflight changes.
217
+ - Deploy still validates configuration and may require interaction if config values are missing.
218
+ - Do not assume `adk deploy --yes` is fully non-interactive.
219
+
220
+ ### adk build
221
+
222
+ Build agent for production.
223
+
224
+ ```bash
225
+ adk build
226
+ ```
227
+
228
+ Generates types, bundles code, validates configuration.
229
+
230
+ ### adk link
231
+
232
+ Link local agent to existing remote bot.
233
+
234
+ ```bash
235
+ adk link [options]
236
+ ```
237
+
238
+ **Options:**
239
+
240
+ - `--workspace <id>` - Workspace ID
241
+ - `--bot <id>` - Bot ID
242
+ - `--dev <id>` - Dev bot ID (optional)
243
+ - `--api-url <url>` - Botpress API URL (e.g., https://api.botpress.cloud)
244
+ - `-f, --force` - Overwrite existing agent.json if present
245
+
246
+ **Example:**
247
+
248
+ ```bash
249
+ # Interactive (recommended)
250
+ adk link
251
+
252
+ # Scriptable when you already know the IDs
253
+ adk link --workspace ws_123 --bot bot_456
254
+ ```
255
+
256
+ Creates `agent.json` with bot and workspace IDs.
257
+
258
+ Current project scaffolds do not add `agent.json` to `.gitignore` automatically, so add that manually if your team does not want it committed.
259
+
260
+ **Automation notes:**
261
+
262
+ - `adk link --workspace <id> --bot <id>` is the best AI-driven path.
263
+ - If only one workspace exists, `adk link` may auto-select it.
264
+ - Even with flags, the command still uses the interactive Ink flow internally, so do not assume it is safe in every no-TTY environment.
265
+
266
+ ### adk chat
267
+
268
+ Chat with your **local development bot**.
269
+
270
+ > ⚠️ `adk chat` (and `adk chat --single`) targets the linked dev bot — the one started by `adk dev` and identified by `devId`. It does **not** hit the deployed production bot. Never use it as a post-deploy smoke test or as any kind of "did the deploy work?" verification: a `--single` round-trip can pass against the dev bot while production is broken. For deployed bots, use `adk status --format json` for metadata and direct the user to the Dev Console for live verification.
271
+
272
+ ```bash
273
+ adk chat # interactive
274
+ adk chat --single "<message>" # one-shot
275
+ adk chat --single "<message>" --format json
276
+ ```
277
+
278
+ **Requires:**
279
+
280
+ - `adk dev` run at least once (creates devId)
281
+
282
+ **Example:**
283
+
284
+ ```bash
285
+ adk chat
286
+
287
+ # Output:
288
+ > Hello!
289
+ Bot: Hi! How can I help you today?
290
+ ```
291
+
292
+ ### adk check
293
+
294
+ Offline validation of the project — schema correctness, ADK convention compliance, integration availability — without contacting Botpress Cloud. Use before `adk dev`, before `adk deploy`, and after any code change.
295
+
296
+ ```bash
297
+ adk check [options]
298
+ ```
299
+
300
+ **Options:**
301
+
302
+ - `--format <format>` - Output format: `text` (default) or `json`
303
+
304
+ **Examples:**
305
+
306
+ ```bash
307
+ adk check
308
+ adk check --format json # machine-readable for automation
309
+ ```
310
+
311
+ ### adk status
312
+
313
+ Report the project's current link state (workspace + bot), deployed version metadata, and any pending sync issues. Read-only.
314
+
315
+ ```bash
316
+ adk status [options]
317
+ ```
318
+
319
+ **Options:**
320
+
321
+ - `--format <format>` - Output format: `text` or `json`
322
+
323
+ ### adk ps
324
+
325
+ List running ADK dev processes (Dev Console + agents).
326
+
327
+ ```bash
328
+ adk ps [options]
329
+ ```
330
+
331
+ **Options:**
332
+
333
+ - `--watch [seconds]` - Continuous refresh (default interval: 2s, not supported with `--format json`)
334
+ - `--cloud` - Include Cloud Dev Console prod selections in the listing
335
+ - `--format <format>` - `text` (default) or `json`
336
+
337
+ Shows PID, status, uptime, and ports for each process.
338
+
339
+ **Example:**
340
+
341
+ ```bash
342
+ adk ps
343
+ adk ps --watch
344
+ adk ps --format json
345
+ ```
346
+
347
+ ### adk dashboard
348
+
349
+ Open the Dev Console in standalone mode — no agent project required.
350
+
351
+ ```bash
352
+ adk dashboard
353
+ ```
354
+
355
+ Starts the Dev Console UI server and opens the browser. Useful for connecting to Cloud bots or waiting for agents to register. The standalone Dev Console stays alive even with an empty agent registry.
356
+
357
+ ### adk kill
358
+
359
+ Gracefully stop agents or the entire Dev Console.
360
+
361
+ ```bash
362
+ adk kill [agents...] [options]
363
+ ```
364
+
365
+ **Options:**
366
+
367
+ - `--all` - Stop all agents and the Dev Console singleton
368
+ - `--current` - Stop the agent in the current working directory
369
+ - `--pid <pid>` - Stop a specific process by PID
370
+ - `--force` - Escalate to SIGKILL if graceful shutdown fails
371
+ - `--dry-run` - Preview what would be stopped without acting
372
+
373
+ **Examples:**
374
+
375
+ ```bash
376
+ adk kill --all # stop everything
377
+ adk kill --current # stop agent in cwd
378
+ adk kill my-agent # stop by name
379
+ adk kill --pid 12345 # stop by PID
380
+ adk kill --all --dry-run # preview
381
+ ```
382
+
383
+ ### adk logs
384
+
385
+ Read recent log entries from the linked bot.
386
+
387
+ ```bash
388
+ adk logs [level] [options]
389
+ ```
390
+
391
+ **Options:**
392
+
393
+ - `level` - Filter by severity: `error`, `warning`, `info` (positional, optional)
394
+ - `--format <format>` - `text` or `json`
395
+ - `--follow` - Stream live
396
+ - `since=<duration>` - Filter to a recent window (e.g., `since=1h`)
397
+
398
+ **Examples:**
399
+
400
+ ```bash
401
+ adk logs # recent entries, all levels
402
+ adk logs error --format json # errors as JSON
403
+ adk logs --follow --format json # stream live
404
+ adk logs warning since=1h # last hour of warnings
405
+ ```
406
+
407
+ ### adk traces
408
+
409
+ Read execution traces — tool calls, action invocations, LLM steps, error context — for understanding *what happened* during a turn, beyond what `adk logs` reports.
410
+
411
+ ```bash
412
+ adk traces [options]
413
+ ```
414
+
415
+ **Options:**
416
+
417
+ - `--format <format>` - `text` or `json`
418
+ - `--conversation-id <id>` - Filter to a specific conversation
419
+
420
+ **Examples:**
421
+
422
+ ```bash
423
+ adk traces --format json
424
+ adk traces --conversation-id <id> --format json
425
+ ```
426
+
427
+ ### adk evals
428
+
429
+ Run automated conversation tests defined under `evals/`.
430
+
431
+ ```bash
432
+ adk evals [name] [options]
433
+ ```
434
+
435
+ **Options:**
436
+
437
+ - `name` - Run a specific eval by name (positional, optional)
438
+ - `--tag <tag>` - Filter by tag
439
+ - `--type <type>` - Filter by type (e.g., `regression`)
440
+ - `--verbose` / `-v` - Show all assertions
441
+ - `--format <format>` - `text` (default) or `json`
442
+
443
+ **Subcommands:**
444
+
445
+ - `adk evals runs` - List recent runs
446
+ - `adk evals runs --latest` - Most recent run
447
+ - `adk evals runs --latest -v` - Most recent run with full details
448
+
449
+ **Examples:**
450
+
451
+ ```bash
452
+ adk evals # run all evals
453
+ adk evals checkout # one eval by name
454
+ adk evals --tag smoke
455
+ adk evals --format json # for CI
456
+ adk evals runs --latest -v
457
+ ```
458
+
459
+ ### adk integrations
460
+
461
+ Manage integrations, plugins, and interfaces. All subcommands support `--target <env>` (dev or prod, default: dev) and `--format <format>` (text or json).
462
+
463
+ > **Deprecated aliases:** The old flat commands (`adk add`, `adk remove`, `adk search`, `adk list`, `adk info`, `adk upgrade`) still work as shims but emit deprecation warnings.
464
+
465
+ #### Discovery
466
+
467
+ ```bash
468
+ adk integrations search <query> # Search by keyword
469
+ adk integrations list --available # Browse all Hub integrations
470
+ adk integrations list # Show installed dependencies
471
+ adk integrations info <name> # Full integration details
472
+ ```
473
+
474
+ **`adk integrations search` options:**
475
+ - `--format json` - Machine-readable output
476
+ - `--limit <n>` - Max results (default: 20)
477
+
478
+ **`adk integrations list` options:**
479
+ - `--available` - Browse Hub instead of installed
480
+ - `--format json` - Machine-readable output
481
+ - `--verbose` - Show config details
482
+ - `--limit <n>` - Max results (default: 50)
483
+
484
+ **`adk integrations info` options:**
485
+ - `--actions` - Show only actions
486
+ - `--channels` - Show only channels
487
+ - `--events` - Show only events
488
+ - `--full` - Show all sections
489
+ - `--format json` - Machine-readable output
490
+
491
+ #### Mutations
492
+
493
+ ```bash
494
+ adk integrations add <name>@<version> # Install integration
495
+ adk integrations remove <alias> # Uninstall integration
496
+ adk integrations upgrade <alias> # Upgrade to latest version
497
+ adk integrations enable <alias> # Enable a disabled integration
498
+ adk integrations disable <alias> # Disable without removing
499
+ adk integrations configure <alias> # Set/unset config values
500
+ ```
501
+
502
+ **`adk integrations add` options:**
503
+ - `--alias <name>` - Custom alias for code access
504
+ - `--target <env>` - Environment (dev/prod)
505
+ - `--config key=value` - Set config at install time (repeatable)
506
+ - `--format json`
507
+
508
+ **`adk integrations configure` options:**
509
+ - `--set key=value` - Set config values (repeatable)
510
+ - `--unset key` - Remove config keys (repeatable)
511
+ - `--target <env>` - Environment (dev/prod)
512
+
513
+ **Examples:**
514
+
515
+ ```bash
516
+ # Add with version pin
517
+ adk integrations add slack@3.0.0
518
+
519
+ # Add with alias
520
+ adk integrations add openai@1.0.0 --alias ai
521
+
522
+ # Configure
523
+ adk integrations configure slack --set replyBehaviour=start-conversation
524
+
525
+ # Use env substitution for secrets
526
+ adk integrations configure slack --set apiSecret='${env:SLACK_SECRET}'
527
+
528
+ # Enable
529
+ adk integrations enable slack
530
+
531
+ # Remove
532
+ adk integrations remove slack
533
+ ```
534
+
535
+ #### State Management
536
+
537
+ ```bash
538
+ adk integrations pull-lock # Pull cloud state into lock file
539
+ adk integrations push-lock # Push lock file to cloud
540
+ adk integrations copy # Copy state between environments
541
+ adk integrations diff # Show lock vs cloud differences
542
+ ```
543
+
544
+ `adk pull-lock` and `adk push-lock` (no subcommand) run pull/push for both integrations and plugins at once.
545
+
546
+ **`adk integrations pull-lock` options:**
547
+ - `--dry-run` - Preview without writing the lock file
548
+
549
+ **`adk integrations push-lock` options:**
550
+ - `--dry-run` - Preview without applying
551
+ - `--yes` - Skip confirmation
552
+
553
+ ### adk plugins
554
+
555
+ Manage plugins (reusable agent extensions). Mirrors the `adk integrations` subcommand structure. All subcommands support `--target <env>` and `--format <format>`.
556
+
557
+ ```bash
558
+ adk plugins search <query> # Search by keyword
559
+ adk plugins list # Show installed plugins
560
+ adk plugins info <name> # Full plugin details
561
+ adk plugins add <name>@<version> # Install plugin
562
+ adk plugins remove <alias> # Uninstall plugin
563
+ adk plugins upgrade <alias> # Upgrade version
564
+ adk plugins enable <alias> # Enable a disabled plugin
565
+ adk plugins disable <alias> # Disable without removing
566
+ adk plugins configure <alias> # Set config and interface mappings
567
+ adk plugins pull-lock # Pull cloud state into lock file
568
+ adk plugins push-lock # Push lock file to cloud
569
+ adk plugins copy # Copy state between environments
570
+ adk plugins diff # Show lock vs cloud differences
571
+ ```
572
+
573
+ **Plugin-specific flags:**
574
+ - `adk plugins add --dep iface=alias` - Wire interface dependency (repeatable)
575
+ - `adk plugins configure --map iface=alias` - Remap interface dependency
576
+
577
+ **Shared with `adk integrations upgrade`:**
578
+ - `--to <version>` - Target specific version
579
+
580
+ Plugins require interfaces implemented by installed integrations. The CLI auto-resolves dependencies when unambiguous. See **[Plugins](./plugins.md)** for details.
581
+
582
+ ### adk self-upgrade
583
+
584
+ Upgrade the ADK CLI itself to the latest version.
585
+
586
+ ```bash
587
+ adk self-upgrade
588
+ ```
589
+
590
+ **Aliases:** `adk self-update`
591
+
592
+ **What it does:**
593
+
594
+ 1. Checks npm registry for latest version
595
+ 2. Downloads binary from GitHub releases
596
+ 3. Replaces current CLI executable
597
+ 4. Verifies installation
598
+
599
+ **Example:**
600
+
601
+ ```bash
602
+ adk self-upgrade
603
+
604
+ # Output:
605
+ 📦 Current version: 1.13.10
606
+ 📦 Latest version: 1.13.16
607
+ 📥 Downloading adk v1.13.16 for darwin-arm64...
608
+ ✅ Successfully upgraded!
609
+
610
+ v1.13.10 → v1.13.16
611
+
612
+ Run adk --version to verify
613
+ ```
614
+
615
+ **Note:** The ADK automatically checks for updates every 24 hours and shows a notification when a new version is available. On Windows, you may need to restart your terminal after upgrading.
616
+
617
+ **This is different from `adk upgrade`** which upgrades integrations, not the CLI itself.
618
+
619
+ ### adk kb
620
+
621
+ Manage knowledge bases and synchronization.
622
+
623
+ ```bash
624
+ adk kb sync [options]
625
+ ```
626
+
627
+ **Commands:**
628
+
629
+ - `adk kb sync` - Sync knowledge base sources with remote
630
+
631
+ **Options:**
632
+
633
+ - `--dev` - Sync with development bot (required: must use --dev or --prod)
634
+ - `--prod` - Sync with production bot (required: must use --dev or --prod)
635
+ - `--dry-run` - Preview changes without applying them
636
+ - `-y, --yes` - Skip confirmation prompts
637
+ - `--force` - Force re-sync all knowledge bases
638
+
639
+ **What it does:**
640
+
641
+ 1. Detects knowledge bases defined in your project
642
+ 2. Identifies sources (directories, websites, tables)
643
+ 3. Syncs content to Botpress Cloud
644
+ 4. Handles orphaned sources (sources removed from code)
645
+
646
+ **Example:**
647
+
648
+ ```bash
649
+ # Sync to development bot
650
+ adk kb sync --dev
651
+
652
+ # Sync to production bot
653
+ adk kb sync --prod
654
+
655
+ # Auto-confirm sync
656
+ adk kb sync --dev -y
657
+
658
+ # Preview changes without applying
659
+ adk kb sync --dev --dry-run
660
+
661
+ # Force re-sync all knowledge bases
662
+ adk kb sync --dev --force
663
+ ```
664
+
665
+ **Source Types:**
666
+
667
+ - `Directory` - Local files from a directory
668
+ - `Website` - Pages from sitemap or URLs
669
+ - `Table` - Data from bot tables
670
+
671
+ **Note:** KB sync is also run automatically during `adk dev` and `adk deploy`.
672
+
673
+ ### adk assets sync
674
+
675
+ Sync assets with remote storage.
676
+
677
+ ```bash
678
+ adk assets sync [options]
679
+ ```
680
+
681
+ **Options:**
682
+
683
+ - `--dry-run` - Preview changes
684
+ - `-y, --yes` - Skip confirmation
685
+ - `--bail-on-failure` - Stop on first error
686
+ - `--force` - Force re-upload all files
687
+
688
+ **Example:**
689
+
690
+ ```bash
691
+ # Interactive
692
+ adk assets sync
693
+
694
+ # Auto-confirm
695
+ adk assets sync -y
696
+ ```
697
+
698
+ **Other asset commands:**
699
+
700
+ ```bash
701
+ adk assets list # List all assets
702
+ adk assets status # Show sync status
703
+ adk assets pull # Download remote assets to local directory
704
+ ```
705
+
706
+ ### adk assets list
707
+
708
+ List all asset files.
709
+
710
+ ```bash
711
+ adk assets list [options]
712
+ ```
713
+
714
+ **Options:**
715
+
716
+ - `--local` - Show only local assets
717
+ - `--remote` - Show only remote assets
718
+
719
+ ### adk assets status
720
+
721
+ Show asset synchronization status.
722
+
723
+ ```bash
724
+ adk assets status
725
+ ```
726
+
727
+ ### adk assets pull
728
+
729
+ Download remote assets to local directory.
730
+
731
+ ```bash
732
+ adk assets pull
733
+ ```
734
+
735
+ ### adk mcp
736
+
737
+ Start the MCP (Model Context Protocol) server for AI assistant integration.
738
+
739
+ ```bash
740
+ adk mcp [--cwd <path>]
741
+ ```
742
+
743
+ The MCP server provides tools for AI assistants (Claude Code, Cursor, VS Code) to debug, test, and manage your ADK project. See **[MCP Server](./mcp-server.md)** for details.
744
+
745
+ ### adk mcp:init
746
+
747
+ Generate MCP configuration files for AI assistants.
748
+
749
+ ```bash
750
+ adk mcp:init [options]
751
+ ```
752
+
753
+ **Options:**
754
+
755
+ - `--all` - Generate for all supported tools
756
+ - `--tool <name>` - Generate for specific tool (claude-code, vscode, cursor)
757
+ - `--force` - Overwrite existing config
758
+ - `--project-dir <path>` - ADK project subdirectory (for monorepos)
759
+
760
+ **Example:**
761
+
762
+ ```bash
763
+ adk mcp:init --all
764
+ ```
765
+
766
+ See **[MCP Server](./mcp-server.md)** for monorepo setup and troubleshooting.
767
+
768
+ ### adk profiles
769
+
770
+ Manage authentication profiles.
771
+
772
+ ```bash
773
+ adk profiles [command]
774
+ ```
775
+
776
+ **Commands:**
777
+
778
+ - `adk profiles list` - List all configured profiles
779
+ - `adk profiles set [profile]` - Switch to a different profile
780
+
781
+ **Example:**
782
+
783
+ ```bash
784
+ # List all profiles
785
+ adk profiles list
786
+
787
+ # Switch to a different profile
788
+ adk profiles set staging
789
+ ```
790
+
791
+ ### adk config
792
+
793
+ Configure agent settings interactively.
794
+
795
+ ```bash
796
+ adk config [options]
797
+ ```
798
+
799
+ **Options:**
800
+
801
+ - `--prod` - Use production configuration
802
+
803
+ **Subcommands:**
804
+
805
+ - `adk config:get <key>` - Get a configuration value
806
+ - `adk config:set <key> <value>` - Set a configuration value
807
+
808
+ Both subcommands support `--prod` flag for production configuration.
809
+
810
+ **Example:**
811
+
812
+ ```bash
813
+ # Interactive configuration
814
+ adk config
815
+
816
+ # Get a config value
817
+ adk config:get botId
818
+
819
+ # Set a config value
820
+ adk config:set botId bot_123
821
+
822
+ # Use production configuration
823
+ adk config --prod
824
+ adk config:get botId --prod
825
+ ```
826
+
827
+ **Note:** This replaces the legacy `adk agent` command.
828
+
829
+ ### adk telemetry
830
+
831
+ Manage telemetry preferences.
832
+
833
+ ```bash
834
+ adk telemetry [options]
835
+ ```
836
+
837
+ **Options:**
838
+
839
+ - `--status` - Show telemetry status
840
+ - `--enable` - Enable telemetry
841
+ - `--disable` - Disable telemetry
842
+
843
+ **Example:**
844
+
845
+ ```bash
846
+ # Check telemetry status
847
+ adk telemetry --status
848
+
849
+ # Enable telemetry
850
+ adk telemetry --enable
851
+
852
+ # Disable telemetry
853
+ adk telemetry --disable
854
+ ```
855
+
856
+ ### adk run
857
+
858
+ Run a TypeScript script with full ADK runtime context.
859
+
860
+ ```bash
861
+ adk run <script> [args...] [options]
862
+ ```
863
+
864
+ **Options:**
865
+
866
+ - `--force` - Force regeneration of the bot project
867
+ - `--prod` - Use production bot ID instead of dev bot ID
868
+
869
+ **Description:**
870
+
871
+ Executes a TypeScript script with access to the full ADK runtime, including:
872
+ - Bot client with authentication
873
+ - All tables, workflows, and actions from your project
874
+ - Type-safe access to your bot's configuration
875
+
876
+ **Use Cases:**
877
+
878
+ - One-off data migrations
879
+ - Manual sync operations
880
+ - Testing specific functionality
881
+ - Admin scripts
882
+
883
+ **Example Scripts:**
884
+
885
+ ```typescript
886
+ // scripts/migrate-users.ts
887
+ import { UsersTable } from "../src/tables/Users";
888
+
889
+ const { rows } = await UsersTable.findRows({ limit: 100 });
890
+
891
+ for (const user of rows) {
892
+ await UsersTable.updateRows({
893
+ rows: [{ id: user.id, migrated: true }]
894
+ });
895
+ console.log(`Migrated user: ${user.id}`);
896
+ }
897
+
898
+ console.log(`✅ Migrated ${rows.length} users`);
899
+ ```
900
+
901
+ **Examples:**
902
+
903
+ ```bash
904
+ # Run a migration script
905
+ adk run scripts/migrate-users.ts
906
+
907
+ # Run with production bot
908
+ adk run scripts/sync-data.ts --prod
909
+
910
+ # Force regenerate types before running
911
+ adk run scripts/fix-data.ts --force
912
+
913
+ # Pass arguments to your script
914
+ adk run scripts/process.ts arg1 arg2
915
+ ```
916
+
917
+ **Requirements:**
918
+
919
+ - Must be logged in (`adk login`)
920
+ - Must have linked bot (`adk link`)
921
+ - Script must be a TypeScript file
922
+
923
+ ### Global Options
924
+
925
+ ```bash
926
+ adk --no-cache <command> # Disable cache
927
+ adk --version # Show version
928
+ adk --help # Show help
929
+ adk # In agent directory: runs 'adk dev', otherwise: shows welcome
930
+ ```
931
+
932
+ ## Common Workflows
933
+
934
+ ### New Project
935
+
936
+ ```bash
937
+ adk init my-bot
938
+ cd my-bot
939
+ bun install
940
+ adk login
941
+ adk dev
942
+ ```
943
+
944
+ ### Daily Development
945
+
946
+ ```bash
947
+ # Start dev
948
+ adk dev
949
+
950
+ # Make changes (auto-reload)
951
+
952
+ # Test
953
+ adk chat
954
+
955
+ # Deploy when ready
956
+ adk deploy
957
+ ```
958
+
959
+ ### Working with Existing Bot
960
+
961
+ ```bash
962
+ git clone <repo>
963
+ cd my-bot
964
+ bun install
965
+ adk login
966
+ adk link --workspace ws_123 --bot bot_456
967
+ adk dev
968
+ ```
969
+
970
+ ### Managing Integrations
971
+
972
+ ```bash
973
+ # Search for integrations
974
+ adk integrations search slack
975
+
976
+ # List all available integrations
977
+ adk integrations list --available
978
+
979
+ # Get detailed info about an integration
980
+ adk integrations info slack
981
+
982
+ # Add
983
+ adk integrations add slack@3.0.0
984
+
985
+ # Configure
986
+ adk integrations configure slack --set replyBehaviour=start-conversation
987
+
988
+ # Enable and start dev server for OAuth
989
+ adk integrations enable slack
990
+ adk dev # Complete OAuth in Dev Console at localhost:3001
991
+
992
+ # List installed
993
+ adk integrations list
994
+
995
+ # Remove
996
+ adk integrations remove slack
997
+ ```
998
+
999
+ ## Best Practices
1000
+
1001
+ **DO:**
1002
+
1003
+ - Use `adk dev` for development (hot reload)
1004
+ - Keep `agent.config.ts` in git
1005
+ - Use `.env` for secrets
1006
+ - Run `adk chat` for quick testing
1007
+
1008
+ **DON'T:**
1009
+
1010
+ - Don't edit `.adk/` directory (auto-generated) — **except** `.adk/scratch/`, which is reserved for disposable user/agent files (one-off runners, throwaway probes). `adk dev` does not touch `.adk/scratch/`. Production code, persistent helpers, and anything you'd commit belong outside `.adk/`.
1011
+ - Don't commit `agent.json` (add to .gitignore)
1012
+ - Don't commit `.env` files
1013
+ - Don't skip integration configuration in UI
1014
+
1015
+ ## Quick Reference
1016
+
1017
+ ```bash
1018
+ # Lifecycle
1019
+ adk init <name> # Create project
1020
+ adk login # Authenticate
1021
+ adk link # Link to remote bot
1022
+ adk dev # Start development
1023
+ adk chat # Test interactively
1024
+ adk deploy # Deploy to production
1025
+ adk run <script> # Run script with ADK runtime
1026
+
1027
+ # Multi-Agent / Dev Console
1028
+ adk ps # List running agents and processes
1029
+ adk dashboard # Open Dev Console standalone (no agent needed)
1030
+ adk kill --all # Stop all agents + Dev Console
1031
+
1032
+ # Dependencies (integrations, plugins, interfaces)
1033
+ adk integrations search <query> # Search for integrations
1034
+ adk integrations list # List installed dependencies
1035
+ adk integrations list --available # List all available integrations
1036
+ adk integrations info <name> # Show integration details
1037
+ adk integrations add <name>@<ver> # Add integration
1038
+ adk integrations remove <alias> # Remove integration
1039
+ adk integrations upgrade [alias] # Upgrade dependency
1040
+ adk integrations enable <alias> # Enable integration
1041
+ adk integrations disable <alias> # Disable integration
1042
+ adk integrations configure <alias> # Set/unset config values
1043
+ adk integrations pull-lock # Pull cloud state to lock file
1044
+ adk integrations push-lock # Push lock file to cloud
1045
+
1046
+ # Plugins
1047
+ adk plugins search <query> # Search for plugins
1048
+ adk plugins list # List installed plugins
1049
+ adk plugins add <name>@<version> # Add plugin
1050
+ adk plugins remove <alias> # Remove plugin
1051
+ adk plugins configure <alias> # Set config / remap interfaces
1052
+ adk plugins pull-lock # Pull cloud state to lock file
1053
+ adk plugins push-lock # Push lock file to cloud
1054
+
1055
+ # Lock file (both integrations + plugins at once)
1056
+ adk pull-lock # Pull cloud state for both
1057
+ adk push-lock # Push lock files to cloud for both
1058
+
1059
+ # MCP (AI Assistant Integration)
1060
+ adk mcp # Start MCP server
1061
+ adk mcp:init --all # Generate MCP config files
1062
+
1063
+ # CLI Management
1064
+ adk self-upgrade # Upgrade ADK CLI itself
1065
+ adk telemetry # Manage telemetry preferences
1066
+
1067
+ # Authentication
1068
+ adk profiles list # List profiles
1069
+ adk profiles set # Switch profile
1070
+
1071
+ # Configuration
1072
+ adk config # Configure agent settings
1073
+ adk config:get <key> # Get config value
1074
+ adk config:set <key> <value> # Set config value
1075
+
1076
+ # Knowledge Bases
1077
+ adk kb sync --dev # Sync KB to development bot
1078
+ adk kb sync --prod # Sync KB to production bot
1079
+
1080
+ # Assets
1081
+ adk assets sync # Sync assets
1082
+ adk assets list # List all assets
1083
+ adk assets status # Check sync status
1084
+ adk assets pull # Download remote assets
1085
+ ```
1086
+
1087
+ ## See Also
1088
+
1089
+ - **[Agent Configuration](./agent-config.md)** - agent.config.ts, agent.json, environment variables, and project files
1090
+ - **[MCP Server](./mcp-server.md)** - AI assistant integration (Claude Code, Cursor, VS Code)
1091
+ - **[Conversations](./conversations.md)** - Conversation handlers
1092
+ - **[Workflows](./workflows.md)** - Long-running processes
1093
+ - **[Patterns & Mistakes](./patterns-mistakes.md)** - Best practices