Repository navigation
Api Wp Cli Reference
Since: 2.1.0 (filter-index commands) — see individual commands for version notes.
DesignSetGo registers its commands under the dsgo top-level namespace. Run any command as:
wp dsgo <subcommand> [options]
Commands are registered in includes/ when WP-CLI is the active SAPI and require a WordPress installation with DesignSetGo active. Most write commands require the same capability as their REST equivalents (manage_options for index operations). The --allow-root flag is needed if you run WP-CLI as the root OS user.
Source: includes/blocks/query/class-query-filter-index-cli.php
Since: 2.1.0
Manages the persistent filter-index table ({prefix}dsgo_query_filter_index) used by the Dynamic Query block to compute per-option post counts for Query Filter blocks.
Drops and rebuilds the full filter index across all registered filters.
Synopsis
wp dsgo query index rebuild [--batch-size=<n>]
Options
| Flag | Default | Description |
|---|---|---|
--batch-size=<n> |
200 |
Posts to process per batch. Minimum 50. |
Example
wp dsgo query index rebuild
wp dsgo query index rebuild --batch-size=500Example output
Success: Indexed 1248 objects (3940 rows).
Rebuilds the index for a single named filter only. Use this for a targeted refresh after adding or changing one filter's registration without paying the cost of a full rebuild.
Synopsis
wp dsgo query index rebuild-filter <filter_key> [--batch-size=<n>]
Arguments
| Argument | Required | Description |
|---|---|---|
<filter_key> |
Yes | The registered filter key to rebuild (e.g. category, post_tag, price). |
Options
| Flag | Default | Description |
|---|---|---|
--batch-size=<n> |
200 |
Posts to process per batch. |
Example
wp dsgo query index rebuild-filter category
wp dsgo query index rebuild-filter price --batch-size=500Example output
Success: Rebuilt filter "category" (1248 objects, 2310 rows).
If the filter key is not registered the command exits with a warning (no error status):
Warning: Filter "unknown" is not registered — nothing to do.
Displays the current health and state of the filter index as a formatted table.
Synopsis
wp dsgo query index status
Example
wp dsgo query index statusExample output
+--------------------+-----------------------+
| last_rebuilt_at | in_progress |
+--------------------+-----------------------+
| 2026-04-24 09:15:00 UTC | no |
+--------------------+-----------------------+
If the index has never been built, last_rebuilt_at shows never.
Destructive. Drops the filter index table and clears all associated options. The table is recreated automatically on the next
admin_init(which firesmaybe_upgrade()), but all indexed data is permanently lost until a rebuild is run.
Synopsis
wp dsgo query index drop [--yes]
Options
| Flag | Description |
|---|---|
--yes |
Skip the confirmation prompt. Use with caution in scripts. |
Example
wp dsgo query index drop
wp dsgo query index drop --yesExample output
Success: Filter index table dropped.
-
docs/api/REST-API-REFERENCE.md— REST endpoints, including the filter-index rebuild routes (/designsetgo/v1/query/filter-rebuild,/filter-status). -
docs/api/MARKDOWN-CONTENT-NEGOTIATION.md— Per-URL Markdown delivery viaAccept: text/markdown. -
docs/blocks/QUERY.md— Dynamic Query block: sources, filters, group-by, and template reference.
Auto-generated from
docs/api/WP-CLI-REFERENCE.md. To update, edit the source file and changes will sync on next push to main.
- Accordion
- Advanced Heading
- Blobs
- Breadcrumbs
- Card
- Chart
- Comparison Table
- Countdown Timer
- Counter Group
- Divider
- Dynamic Image
- Fifty Fifty
- Flip Card
- Form Builder
- Grid
- Hotspot
- Icon
- Icon Button
- Icon List
- Image Accordion
- Map
- Modal
- Modal Api Reference
- Modal Auto Triggers
- Modal Fse Compatibility
- Modal Gallery Navigation
- Modal Trigger
- Pill
- Product Categories Grid
- Product Showcase Hero
- Progress Bar
- Query
- Query Filter
- Query Group Header
- Query No Results
- Query Pagination
- Query Results
- Row
- Scroll Accordion
- Scroll Marquee
- Scroll Slides
- Section
- Section Divider
- Slider
- Star Rating
- Sticky Sections
- Table Of Contents
- Tabs
- Text Path
- Timeline
- Background Video
- Block Animations
- Clickable Group
- Conditional Visibility
- Custom Css
- Draft Mode
- Dynamic Tags
- Expanding Background
- Grid Mobile Order
- Grid Span
- Hover Effects
- Max Width
- Responsive Visibility
- Reveal Control
- Scroll Parallax
- Sticky Header
- Style Binding
- Svg Patterns
- Text Alignment Inheritance
- Text Reveal
- Abilities Api
- Abilities Api Guide
- Block Bindings
- Draft Mode Api
- Form Webhooks
- Generation Contract
- Interactive Blocks
- Layout Flexibility
- Markdown Content Negotiation
- Rest Api Reference
- Wp Cli Reference
- Ai Assisted Development
- Best Practices Summary
- Block Controls Organization
- Block Development Best Practices Comprehensive
- Block Exclusion Guide
- Deploying To Wordpress Org
- Design System
- 2026 04 16 Blocks Editor Ux Design
- 2026 04 17 Theme 3 Inspector Ia
- 2026 04 21 Query Block Onboarding
- 2026 04 21 Query Capable Layout Blocks Design
- 2026 04 27 Block Roadmap Ideas
- 2026 07 01 Shape Divider Theme Inheritance
- 2026 07 02 Icon Block Dynamic Render Pilot
- 2026 07 06 Section Divider Block Design
- 2026 07 06 Section Style Variations Fse Design
- 2026 07 06 Section Styles Editor Preview
- 2026 07 07 Row Grid Overlay Hover Parity Design
- 2026 07 21 Conditional And Dup Label Sourcing
- 2026 07 23 Theme Block Type Animation Defaults
- 2026 08 16 Chart Block
- 2026 08 16 Greenshift Gap Roadmap
- 2026 08 17 Woocommerce Surface
- 2026 08 24 Loop Carousel
- 2026 08 24 Star Rating Block
- 2026 09 17 Abilities Drift Prevention
- 2026 09 17 Abilities Drift Prevention Implementation
- 2026 09 29 Existing User Regression Fixes
- 2026 09 29 Release Preflight Fixes
- Readme
- 2026 07 02 Block Authorability Audit
- 2026 09 29 Regression Fixes
- 2026 09 29 Release 2.9.0
- 2026 09 29 Release Fixes
- 2026 10 19 Bug Hunt
- 2026 10 20 Bug Hunt Round 2