Database CLI Commands
Thepraisonai-ts CLI provides the db command for database adapter management and testing.
Commands Overview
| Command | Description |
|---|---|
db connect <url> | Connect to a database |
db test [url] | Test database operations |
db adapters | List available adapters |
db info | Show database information |
db help | Show help |
Connect to Database
Test database connectivity:Test Database Operations
Run a full database test:List Adapters
View available database adapters:Database Info
Show database feature information:Supported Database URLs
| Database | URL Format |
|---|---|
| SQLite | sqlite:./data.db or sqlite::memory: |
| PostgreSQL | postgres://user:pass@host:5432/db |
| Redis | redis://host:port or rediss://... |

