dbcli/pgcli

Postgres CLI with autocompletion and syntax highlighting

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 33 minutes ago
Added to GitGenius on September 4th, 2026
Created on October 12th, 2014
Open Issues & Pull Requests: 41 (+0)
GitHub issues: Enabled
Number of forks: 611
Total Stargazers: 13,375 (+0)
Total Subscribers: 139 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 19.2 days
Mean response time: 465.6 days
90th percentile: 1874.3 days
Tracked items: 171

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 7% of issues opened in the past year have been closed. Three people close 94% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 20
New in 7 days: 1
Closed in 7 days: 1
Avg open age: 577 days
Stale 30+ days: 16
Stale 90+ days: 11

Recent activity

Opened in 7 days: 0
Closed in 7 days: 1
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • enhancement (25)
  • bug (20)
  • feature request (8)
  • easy (5)
  • help wanted (5)
  • windows (2)
  • question (1)

Detailed Description

pgcli is a command-line interface for PostgreSQL that provides autocompletion and syntax highlighting.

The tool addresses the friction of working with PostgreSQL from the terminal by enhancing the standard psql experience. It offers intelligent autocompletion for SQL keywords, table names, and column names, along with syntax highlighting to make queries more readable. The interface maintains compatibility with PostgreSQL connection options while adding a more user-friendly layer on top.

Developers should choose pgcli if they spend significant time querying PostgreSQL interactively and want faster query composition through autocompletion. It suits anyone who finds the standard psql experience bare-bones and would benefit from visual feedback while writing queries. The tool supports standard PostgreSQL connection methods including SSL, environment variables like PGHOST and PGUSER, and DSN aliases for managing multiple database connections. It also includes features like automatic vertical output mode for wide result sets and configurable warnings before destructive queries.

The project maintains active development with regular updates and bug fixes. The codebase is written in Python and distributed through standard package managers, making installation straightforward across different operating systems. The maintainers engage with user feedback and continue to refine the tool's functionality based on community needs.