← Projects

Agnostic CLI

Command-line toolkit for WordPress development, deployment, and database operations.

CLI

Automation

WP-CLI

View on GitHub

What is Agnostic CLI?

Agnostic CLI is a command-line toolkit that extends WP-CLI with operations specific to WooCommerce performance optimization. It automates the database cleanup, migration, and deployment tasks that are at the core of every store rebuild.

Core Commands

Database Cleanup

agnostic db:clean --dry-run

Identifies and removes orphaned postmeta, transient bloat, revision accumulation, and abandoned WooCommerce session data. The --dry-run flag shows exactly what would be removed before making changes.

Options Audit

agnostic options:audit

Scans the wp_options table for autoloaded entries, sorted by size. Identifies plugins that are abusing autoload and provides recommendations for moving large entries to transients or object cache.

Migration

agnostic migrate --from=production --to=staging

Handles full database migration with serialization-safe search-replace. Properly handles Gutenberg block content, widget data, and WooCommerce settings that contain serialized URLs.

Why Not Just WP-CLI?

WP-CLI is excellent for general WordPress management. Agnostic CLI adds the domain-specific operations that come up in every WooCommerce performance engagement. Database cleanup that understands WooCommerce table structures, options auditing that knows which plugins typically cause problems, and migration workflows designed for store rebuilds.

Features

  • Database cleanup and optimization
  • Automated deployment workflows
  • Options table auditing
  • Search-replace with serialization support
  • Migration scaffolding

Like what you see?

Rebuild your store

Get a free performance assessment and see how these tools can transform your WooCommerce store.