postgresql-cli - Use psql to connect to and manage PostgreSQL
Provides a reference and usage guide for using psql to connect to PostgreSQL, run queries, inspect objects, transfer data, and script operations.
Tags
Updated: 2026-11-07Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Connect to PostgreSQL
- Execute SQL queries
- Inspect database objects
- Import and export data
- Run SQL scripts
- Customize output formatting
Inputs
- PostgreSQL connection parameters
- SQL queries
- SQL script files
- Database object patterns
- Output formatting options
Outputs
- Query results
- Database object listings
- Imported or exported data
- SQL script execution status
- Formatted terminal output
Requirements
- Installed psql client
- PostgreSQL database access
- Valid connection credentials
- Required database permissions
