Skip to content

Commit 6579024

Browse files
committed
docs: add missing flags and fix --lines → --limit
- Add -H, --header flag to dev and invoke commands - Add --bearer-token flag to invoke command - Fix --lines → --limit in evals.md logs evals section Confidence: high Scope-risk: narrow
1 parent c8a57f4 commit 6579024

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

docs/commands.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ agentcore dev call-tool --tool myTool --input '{"arg": "value"}'
490490
| `-l, --logs` | Non-interactive stdout logging |
491491
| `--tool <name>` | MCP tool name (with `call-tool` prompt) |
492492
| `--input <json>` | MCP tool arguments as JSON (with `--tool`) |
493+
| `-H, --header <h>` | Custom header (`"Name: Value"`, repeatable) |
493494

494495
### invoke
495496

@@ -506,18 +507,20 @@ agentcore invoke --json # JSON output
506507
agentcore invoke call-tool --tool myTool --input '{"key": "value"}'
507508
```
508509

509-
| Flag | Description |
510-
| ------------------- | -------------------------------------------------------- |
511-
| `[prompt]` | Prompt text (positional argument) |
512-
| `--prompt <text>` | Prompt text (flag, takes precedence over positional) |
513-
| `--runtime <name>` | Specific runtime |
514-
| `--target <name>` | Deployment target |
515-
| `--session-id <id>` | Continue a specific session |
516-
| `--user-id <id>` | User ID for runtime invocation (default: `default-user`) |
517-
| `--stream` | Stream response in real-time |
518-
| `--tool <name>` | MCP tool name (use with `call-tool` prompt) |
519-
| `--input <json>` | MCP tool arguments as JSON (use with `--tool`) |
520-
| `--json` | JSON output |
510+
| Flag | Description |
511+
| -------------------- | -------------------------------------------------------- |
512+
| `[prompt]` | Prompt text (positional argument) |
513+
| `--prompt <text>` | Prompt text (flag, takes precedence over positional) |
514+
| `--runtime <name>` | Specific runtime |
515+
| `--target <name>` | Deployment target |
516+
| `--session-id <id>` | Continue a specific session |
517+
| `--user-id <id>` | User ID for runtime invocation (default: `default-user`) |
518+
| `--stream` | Stream response in real-time |
519+
| `--tool <name>` | MCP tool name (use with `call-tool` prompt) |
520+
| `--input <json>` | MCP tool arguments as JSON (use with `--tool`) |
521+
| `-H, --header <h>` | Custom header (`"Name: Value"`, repeatable) |
522+
| `--bearer-token <t>` | Bearer token for CUSTOM_JWT auth |
523+
| `--json` | JSON output |
521524

522525
---
523526

docs/evals.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,15 +322,15 @@ agentcore logs evals
322322
agentcore logs evals --runtime MyAgent --since 1h
323323

324324
# JSON output
325-
agentcore logs evals --json --lines 100
325+
agentcore logs evals --json --limit 100
326326
```
327327

328328
| Flag | Description |
329329
| ---------------------- | --------------------------------------------- |
330330
| `-r, --runtime <name>` | Filter by runtime |
331331
| `--since <time>` | Start time (e.g. `1h`, `30m`, `2d`, ISO 8601) |
332332
| `--until <time>` | End time (e.g. `now`, ISO 8601) |
333-
| `-n, --lines <count>` | Maximum number of log lines |
333+
| `-n, --limit <count>` | Maximum number of log lines |
334334
| `-f, --follow` | Stream logs in real-time |
335335
| `--json` | JSON Lines output |
336336

0 commit comments

Comments
 (0)