agentuity-cli-cloud-db-sql
Execute SQL query on a database. Requires authentication. Use for Agentuity cloud platform operations
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
Cloud Db Sql
Execute SQL query on a database
Prerequisites
- Authenticated with
agentuity auth login - Organization context required (
--org-idor default org)
Usage
agentuity cloud db sql <name> <query>
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
<name> |
string | Yes | - |
<query> |
string | Yes | - |
Examples
Execute SQL query:
bunx @agentuity/cli cloud db sql my-database "SELECT * FROM users LIMIT 10"
Execute query with JSON output:
bunx @agentuity/cli cloud db exec my-database "SELECT COUNT(*) FROM orders" --json
Query with filter:
bunx @agentuity/cli cloud db query my-database "SELECT * FROM products WHERE price > 100"
Output
Returns JSON object:
{
"rows": "array",
"rowCount": "number",
"truncated": "boolean"
}
| Field | Type | Description |
|---|---|---|
rows |
array | Query results |
rowCount |
number | Number of rows returned |
truncated |
boolean | Whether results were truncated |
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-20
- Index updated
- 2026-01-26
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!