Skip to content

dbshell

Open an interactive database shell for the service

Open an interactive database shell for the linked service.

Connects to the service’s primary database using credentials from the platform. Automatically detects the database type (PostgreSQL, MySQL) and launches the appropriate client (psql, mysql).

ancla dbshell [ws/proj/env/svc] [flags]
ancla dbshell
ancla dbshell my-ws/my-proj/staging/my-svc
-h, --help help for dbshell
--api-key string API key for authentication
--config string config file (default: ~/.ancla/config.yaml)
--json Shorthand for --output json
-o, --output string Output format: table or json (default "table")
-q, --quiet Suppress non-essential output
  • ancla - Ancla CLI — manage your Ancla PaaS deployments