The wp dbtk command group brings WP Debug Toolkit’s (WPDT) debugging, log inspection, query recording, and REST API tools to the terminal, with data commands that support structured JSON output so results can be piped, diffed, or passed directly to an AI coding agent.
This makes wp dbtk the right tool in contexts where a browser panel is not practical; for example, in headless setups, CI pipelines, or AI coding workflows. Data commands return structured output that feeds directly into scripts, test runners, and automation. Command syntax, default output formats, and format options are covered in full in the CLI Command Reference.
There are three groups of developers who reach for wp dbtk regularly:
If you are setting up wp dbtk for the first time, start with CLI Environment Setup. If you already know which command you need, go straight to the CLI Command Reference.
Below, you can learn more about each of our documentation available to help you learn more about the WP-CLI feature:
Not sure if your environment is ready? Confirm WP-CLI is installed, check your path configuration, and clear any blockers before running your first wp dbtk command.
Every wp dbtk command in one place, with flags, default output formats, and annotated examples ready to copy into your terminal.
Discover, search, inspect, and call any REST endpoint on your site from the terminal, with built-in profiling and no browser required.
Learn which commands return JSON by default, which default to table or CSV, and how to switch formats so output lands where your script or pipeline expects it.
How to Use WP Debug Toolkit with AI Coding Assistants →
Install the WPDT skill for your AI coding agent and put wp dbtk to work in automated debugging and endpoint profiling sessions.