Skip to content

Commit f53218f

Browse files
authored
Merge pull request #272 from kagent-dev/adb-cli
CLI doc updates
2 parents 207c24f + 758c316 commit f53218f

File tree

12 files changed

+169
-11
lines changed

12 files changed

+169
-11
lines changed

public/sitemap.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,13 @@
238238
<priority>0.8</priority>
239239
</url>
240240

241+
<url>
242+
<loc>https://kagent.dev/docs/kagent/resources/cli/kagent-completion</loc>
243+
<lastmod>2025-11-20</lastmod>
244+
<changefreq>weekly</changefreq>
245+
<priority>0.8</priority>
246+
</url>
247+
241248
<url>
242249
<loc>https://kagent.dev/docs/kagent/resources/cli/kagent-dashboard</loc>
243250
<lastmod>2025-11-20</lastmod>
@@ -259,6 +266,13 @@
259266
<priority>0.8</priority>
260267
</url>
261268

269+
<url>
270+
<loc>https://kagent.dev/docs/kagent/resources/cli/kagent-help</loc>
271+
<lastmod>2025-11-20</lastmod>
272+
<changefreq>weekly</changefreq>
273+
<priority>0.8</priority>
274+
</url>
275+
262276
<url>
263277
<loc>https://kagent.dev/docs/kagent/resources/cli/kagent-init</loc>
264278
<lastmod>2025-11-20</lastmod>
@@ -490,13 +504,27 @@
490504
<priority>0.8</priority>
491505
</url>
492506

507+
<url>
508+
<loc>https://kagent.dev/docs/kmcp/reference/kmcp-completion</loc>
509+
<lastmod>2025-11-20</lastmod>
510+
<changefreq>weekly</changefreq>
511+
<priority>0.8</priority>
512+
</url>
513+
493514
<url>
494515
<loc>https://kagent.dev/docs/kmcp/reference/kmcp-deploy</loc>
495516
<lastmod>2025-11-20</lastmod>
496517
<changefreq>weekly</changefreq>
497518
<priority>0.8</priority>
498519
</url>
499520

521+
<url>
522+
<loc>https://kagent.dev/docs/kmcp/reference/kmcp-help</loc>
523+
<lastmod>2025-11-20</lastmod>
524+
<changefreq>weekly</changefreq>
525+
<priority>0.8</priority>
526+
</url>
527+
500528
<url>
501529
<loc>https://kagent.dev/docs/kmcp/reference/kmcp-init</loc>
502530
<lastmod>2025-11-20</lastmod>

src/app/docs/kagent/introduction/installation/page.mdx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,32 @@ Another way to install kagent is using Helm.
147147
```
148148
</div>
149149

150+
## Advanced Configuration
151+
152+
Review the following advanced configuration options that you might want to set up for your kagent installation.
153+
154+
### Configure the controller service name
155+
156+
By default, kagent uses `kagent-controller` as the controller service name when constructing URLs for agent deployments. If you need to customize this name, set the `KAGENT_CONTROLLER_NAME` environment variable on the controller pod.
157+
158+
**Helm `--set` flag:**
159+
160+
```bash
161+
helm install kagent oci://ghcr.io/kagent-dev/kagent/helm/kagent \
162+
--namespace kagent \
163+
--set controller.env[0].name=KAGENT_CONTROLLER_NAME \
164+
--set controller.env[0].value=my-kagent
165+
```
166+
167+
**Helm values file:**
168+
169+
```yaml
170+
controller:
171+
env:
172+
- name: KAGENT_CONTROLLER_NAME
173+
value: my-kagent
174+
```
175+
150176
## Uninstallation
151177
152178
Refer to the [Uninstall](/docs/kagent/operations/uninstall) guide.

src/app/docs/kagent/resources/cli/kagent-build/page.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ kagent build [project-directory] [flags]
1717

1818
**Flags:**
1919
- `--image` - Full image specification (e.g., ghcr.io/myorg/my-agent:v1.0.0)
20+
- `--platform` - Target platform for Docker build (e.g., linux/amd64, linux/arm64)
2021
- `--push` - Push the image to the registry
2122

2223
**Global Flags:**
@@ -53,3 +54,9 @@ Build and push an image to a registry:
5354
```bash
5455
kagent build ./my-agent --image ghcr.io/myorg/my-agent:v1.0.0 --push
5556
```
57+
58+
Build for a specific platform:
59+
60+
```bash
61+
kagent build ./my-agent --platform linux/amd64 --image ghcr.io/myorg/my-agent:v1.0.0
62+
```
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: "kagent completion"
3+
pageOrder: 40
4+
description: "kagent completion command"
5+
---
6+
7+
# `kagent completion`
8+
9+
Generate the autocompletion script for kagent for the specified shell. See each sub-command's help for details on how to use the generated script.
10+
11+
```bash
12+
kagent completion [command]
13+
```
14+
15+
**Global Flags:**
16+
- `--config` - config file
17+
- `--kagent-url` - KAgent URL (default "http://localhost:8083")
18+
- `--timeout` - Timeout (default 5m0s)
19+
20+
**Subcommands:**
21+
- `bash` - Generate the autocompletion script for bash
22+
- `fish` - Generate the autocompletion script for fish
23+
- `powershell` - Generate the autocompletion script for powershell
24+
- `zsh` - Generate the autocompletion script for zsh
25+

src/app/docs/kagent/resources/cli/kagent-deploy/page.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ kagent deploy [project-directory] [flags]
2121
- `--dry-run` - Output YAML manifests without applying them to the cluster
2222
- `--image, -i` - Image to use (defaults to `localhost:5001/{agentName}:latest`)
2323
- `--namespace` - Kubernetes namespace to deploy to
24+
- `--platform` - Target platform for Docker build (e.g., linux/amd64, linux/arm64)
2425

2526
**Global Flags:**
2627
- `--kagent-url` - kagent URL (default: "http://localhost:8083")
@@ -69,3 +70,9 @@ Generate manifests without deploying:
6970
kagent deploy ./my-agent --api-key "your-api-key" --dry-run > manifests.yaml
7071
```
7172

73+
Deploy with a specific platform for the Docker build:
74+
75+
```bash
76+
kagent deploy ./my-agent --env-file .env --platform linux/amd64
77+
```
78+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: "kagent help"
3+
pageOrder: 150
4+
description: "kagent help command"
5+
---
6+
7+
# `kagent help`
8+
9+
Help provides help for any command in the `kagent` CLI.
10+
11+
```bash
12+
kagent help [command] [flags]
13+
```
14+
15+
**Global Flags:**
16+
- `--config` - config file
17+
- `--kagent-url` - KAgent URL (default "http://localhost:8083")
18+
- `--timeout` - Timeout (default 5m0s)
19+

src/app/docs/kagent/resources/cli/page.mdx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,20 @@ import QuickLink from '@/components/quick-link';
1313
</div>
1414

1515
<div className="grid grid-cols-1 md:grid-cols-2 gap-6 mb-12">
16-
<QuickLink title="kagent init" description="Create a bootstrap agent project" href="/docs/kagent/resources/cli/kagent-init" />
16+
<QuickLink title="kagent add-mcp" description="Add an MCP server entry to kagent.yaml" href="/docs/kagent/resources/cli/kagent-add-mcp" />
17+
<QuickLink title="kagent bug-report" description="Generate a bug report for troubleshooting" href="/docs/kagent/resources/cli/kagent-bug-report" />
1718
<QuickLink title="kagent build" description="Build a Docker image for an agent project" href="/docs/kagent/resources/cli/kagent-build" />
19+
<QuickLink title="kagent completion" description="Generate the autocompletion script for kagent for the specified shell" href="/docs/kagent/resources/cli/kagent-completion" />
20+
<QuickLink title="kagent dashboard" description="Open the kagent dashboard" href="/docs/kagent/resources/cli/kagent-dashboard" />
1821
<QuickLink title="kagent deploy" description="Deploy an agent to Kubernetes" href="/docs/kagent/resources/cli/kagent-deploy" />
22+
<QuickLink title="kagent get" description="Get kagent resources (agents, sessions, tools)" href="/docs/kagent/resources/cli/kagent-get" />
23+
<QuickLink title="kagent help" description="Help provides help for any command in the application" href="/docs/kagent/resources/cli/kagent-help" />
24+
<QuickLink title="kagent init" description="Create a bootstrap agent project" href="/docs/kagent/resources/cli/kagent-init" />
1925
<QuickLink title="kagent install" description="Install kagent on a Kubernetes cluster" href="/docs/kagent/resources/cli/kagent-install" />
20-
<QuickLink title="kagent uninstall" description="Uninstall kagent from a Kubernetes cluster" href="/docs/kagent/resources/cli/kagent-uninstall" />
2126
<QuickLink title="kagent invoke" description="Invoke a kagent agent to perform a task" href="/docs/kagent/resources/cli/kagent-invoke" />
22-
<QuickLink title="kagent get" description="Get kagent resources (agents, sessions, tools)" href="/docs/kagent/resources/cli/kagent-get" />
23-
<QuickLink title="kagent dashboard" description="Open the kagent dashboard" href="/docs/kagent/resources/cli/kagent-dashboard" />
24-
<QuickLink title="kagent version" description="Print the kagent version information" href="/docs/kagent/resources/cli/kagent-version" />
25-
<QuickLink title="kagent bug-report" description="Generate a bug report for troubleshooting" href="/docs/kagent/resources/cli/kagent-bug-report" />
26-
<QuickLink title="kagent add-mcp" description="Add an MCP server entry to kagent.yaml" href="/docs/kagent/resources/cli/kagent-add-mcp" />
27-
<QuickLink title="kagent run" description="Run an agent project locally with docker-compose and launch chat interface" href="/docs/kagent/resources/cli/kagent-run" />
2827
<QuickLink title="kagent mcp" description="MCP server management commands" href="/docs/kagent/resources/cli/kagent-mcp" />
28+
<QuickLink title="kagent run" description="Run an agent project locally with docker-compose and launch chat interface" href="/docs/kagent/resources/cli/kagent-run" />
29+
<QuickLink title="kagent uninstall" description="Uninstall kagent from a Kubernetes cluster" href="/docs/kagent/resources/cli/kagent-uninstall" />
30+
<QuickLink title="kagent version" description="Print the kagent version information" href="/docs/kagent/resources/cli/kagent-version" />
2931
</div>
3032
</div>
31-

src/app/docs/kagent/resources/helm/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ A Helm chart for kagent, built with Google ADK
9191
| controller.agentImage.registry | string | "" | |
9292
| controller.agentImage.repository | string | "kagent-dev/kagent/app" | |
9393
| controller.agentImage.tag | string | "" | |
94-
| controller.env | list | [] | |
94+
| controller.env | list | [] | Additional environment variables to set on the controller pod. For example, set `KAGENT_CONTROLLER_NAME` to customize the controller service name used for the kagent controller deployments. |
9595
| controller.image.pullPolicy | string | "" | |
9696
| controller.image.registry | string | "" | |
9797
| controller.image.repository | string | "kagent-dev/kagent/controller" | |
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: "kmcp completion"
3+
pageOrder: 30
4+
description: "kmcp completion command"
5+
---
6+
7+
# `kmcp completion`
8+
9+
Generate the autocompletion script for kmcp for the specified shell. See each sub-command's help for details on how to use the generated script.
10+
11+
```bash
12+
kmcp completion [flags]
13+
```
14+
15+
**Subcommands:**
16+
- `bash` - Generate the autocompletion script for bash
17+
- `fish` - Generate the autocompletion script for fish
18+
- `powershell` - Generate the autocompletion script for powershell
19+
- `zsh` - Generate the autocompletion script for zsh
20+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: "kmcp help"
3+
pageOrder: 100
4+
description: "kmcp help command"
5+
---
6+
7+
# `kmcp help`
8+
9+
Help provides help for any command in the `kmcp` CLI.
10+
11+
```bash
12+
kmcp help [command] [flags]
13+
```
14+

0 commit comments

Comments
 (0)