# Debug your Postgres from the terminal: a tour of \`neon inspect db\`

DevFeed: [Debug your Postgres from the terminal: a tour of \`neon inspect db\`](<https://devfeed.tech/articles/debug-your-postgres-from-the-terminal-a-tour-of-neon-inspect-db-5643.md>)

Original publisher: [Read original article](<https://neon.com/blog/neon-inspect-db>)

Author: Savannah Longoria

Published: 2026-07-22T18:00:00Z

Content type: article

Language: en

Sources: [Blog -- Neon Docs](<https://devfeed.tech/sources/blog-neon-docs.md>)

Topics: [Database](<https://devfeed.tech/topics/database.md>), [telemetry](<https://devfeed.tech/topics/telemetry.md>), [SDKs](<https://devfeed.tech/topics/sdks.md>)

Tags: [cli](<https://devfeed.tech/tags/cli.md>), [debug](<https://devfeed.tech/tags/debug.md>), [diagnostics](<https://devfeed.tech/tags/diagnostics.md>), [json](<https://devfeed.tech/tags/json.md>), [observability](<https://devfeed.tech/tags/observability.md>), [performance](<https://devfeed.tech/tags/performance.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [product](<https://devfeed.tech/tags/product.md>), [scripting](<https://devfeed.tech/tags/scripting.md>), [sql](<https://devfeed.tech/tags/sql.md>), [statistics](<https://devfeed.tech/tags/statistics.md>), [tooling](<https://devfeed.tech/tags/tooling.md>)

## AI overview

Neon introduces `neon inspect db`, a Neon CLI command suite for read-only Postgres diagnostics. Its subcommands run bounded, versioned queries against Postgres statistics and catalog views, returning tables or JSON/YAML without requiring users to assemble connection strings or write catalog queries.

## Source excerpt

The Neon CLI now ships `neon inspect db`: read-only, high-signal Postgres diagnostics that answer "what is slow?" without leaving the terminal or writing a single catalog query. Each subcommand runs one known-good query against Postgres' own statistics and catalog views and prints a clean table (or JSON/YAML for scripting).