agentuity-cli-cloud-db-logs
Get query logs for a specific database. Requires authentication. Use for Agentuity cloud platform operations
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Cloud Db Logs
Get query logs for a specific database
Prerequisites
- Authenticated with
agentuity auth login
Usage
agentuity cloud db logs <database> [options]
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
<database> |
string | Yes | - |
Options
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
--startDate |
string | Yes | - | Start date for filtering logs |
--endDate |
string | Yes | - | End date for filtering logs |
--username |
string | Yes | - | Filter by username |
--command |
string | Yes | - | Filter by SQL command type |
--hasError |
boolean | Yes | - | Show only queries with errors |
--sessionId |
string | Yes | - | Filter by session ID (trace ID) |
--showSessionId |
boolean | No | false |
Show session ID column in output |
--showUsername |
boolean | No | false |
Show username column in output |
--pretty |
boolean | No | false |
Show full formatted SQL on separate line |
--limit |
number | No | 100 |
Maximum number of logs to return |
--timestamps |
boolean | No | true |
Show timestamps in output |
Examples
View query logs for database:
bunx @agentuity/cli cloud db logs my-database
Limit to 50 log entries:
bunx @agentuity/cli cloud db logs my-database --limit=50
Show only queries with errors:
bunx @agentuity/cli cloud db logs my-database --has-error
Filter by username:
bunx @agentuity/cli cloud db logs my-database --username=user123
Filter by SQL command type:
bunx @agentuity/cli cloud db logs my-database --command=SELECT
Filter by session ID:
bunx @agentuity/cli cloud db logs my-database --session-id=sess_abc123
Show session ID column:
bunx @agentuity/cli cloud db logs my-database --show-session-id
Show username column:
bunx @agentuity/cli cloud db logs my-database --show-username
Show full formatted SQL on separate lines:
bunx @agentuity/cli cloud db logs my-database --pretty
Output
Returns: array
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!