Cloud Db Get
Show details about a specific database
Prerequisites
- Authenticated with
agentuity auth login
Usage
agentuity cloud db get <name> [options]
Arguments
| Argument |
Type |
Required |
Description |
<name> |
string |
Yes |
- |
Options
| Option |
Type |
Required |
Default |
Description |
--showCredentials |
boolean |
Yes |
- |
Show credentials in plain text (default: masked in terminal, unmasked in JSON) |
--showTables |
boolean |
Yes |
- |
Fetch table schemas from the database |
--sql |
boolean |
Yes |
- |
Output table schemas as SQL CREATE statements |
Examples
Get database details:
bunx @agentuity/cli cloud db get my-database
Show database information:
bunx @agentuity/cli cloud db show my-database
Get database with credentials:
bunx @agentuity/cli cloud db get my-database --show-credentials
Get table schemas from the database:
bunx @agentuity/cli cloud db get my-database --show-tables
Get table schemas as SQL CREATE statements:
bunx @agentuity/cli cloud db get my-database --show-tables --sql
Get table schemas as JSON:
bunx @agentuity/cli cloud db get my-database --show-tables --json