qmetrics.net

pgcli

Postgres command-line client with completion and highlighting

DatabasesTerminalsDesktop/CLI app
pgcli screenshot

pgcli is a REPL-style client for PostgreSQL that adds auto-completion and SQL syntax highlighting while you work at the terminal.

Overview

pgcli connects to PostgreSQL databases from the command line and behaves like an interactive shell for running queries. It targets users who want psql-like access with richer editing help at the prompt.

As you type, it can complete SQL keywords and suggest tables and columns from the connected database. Smart completion is on by default so context matters: after SELECT FROM it suggests tables, and after SELECT FROM users WHERE it suggests columns. Syntax highlighting is handled through Pygments, and tabular result sets are formatted for readability.

You can launch it with a database name, a connection URL, or standard host, port, and user flags. It understands many of the same login environment variables as psql, including SSL-related settings, and supports DSN aliases from a user config file stored under ~/.config/pgcli/config.

Install options mentioned in the documentation include pip, distribution packages, Homebrew on macOS, pipx, uvx, and a Docker image for trying the tool without a system-wide install. It also offers an IPython magic extension for embedding a pgcli session inside IPython workflows.

Key features

  • SQL keyword auto-completion
  • Context-sensitive smart completion
  • Pygments syntax highlighting
  • Tabular pretty printing
  • psql back-slash command support
  • Destructive query warnings
  • DSN alias configuration
  • IPython magic integration

Use cases

  • Interactive PostgreSQL querying
  • Exploring schema with completions
  • SSL Postgres connections
  • Trying pgcli via Docker
  • SQL work inside IPython

Tags

Similar software

Oh My Zsh

Community zsh configuration framework with plugins

Oh My Zsh manages zsh setup with bundled plugins, themes, and an installer driven by curl, wget, or fetch.

★ 190.9k⟳ yesterdayMIT
TerminalsDesktop/CLI app

Supabase

Open-source Postgres platform with auth, APIs, and storage

Supabase bundles a dedicated Postgres database with authentication, auto-generated REST and GraphQL APIs, realtime, functions, file storage, and vector tooling.

★ 115.6k⟳ todayApache-2.0
Open Source Alternative to:FirebaseFirebase Realtime Database

Gemini CLI

Terminal AI agent for enterprise Gemini Code Assist

Gemini CLI is an open-source command-line agent for querying and editing codebases, running shell workflows, and connecting MCP tools under Gemini Code Assist on Google Cloud.

★ 109.2k⟳ 2 days agoApache-2.0
AI Assisted CodingDesktop/CLI app

Terminal

Modern tabbed terminal for Windows command-line users

Windows Terminal is a desktop terminal application for Windows with tabs, theming, and rich text. The same codebase includes the classic console host and shared rendering components.

★ 105.5k⟳ 2 days agoMIT
TerminalsDesktop/CLI app

fzf

General-purpose command-line fuzzy finder

Fzf filters lists interactively in the terminal using fuzzy matching. It ships as a single binary with shell and editor integrations.

★ 84.5k⟳ 3 days agoMIT
TerminalsDesktop/CLI app

Lazygit

Terminal user interface for everyday Git workflows

Lazygit wraps common Git operations in a keyboard-driven terminal UI. You can stage partial changes, rebase, cherry-pick, and inspect history without memorizing fragile command sequences.

★ 84.1k⟳ 5 days agoMIT