WP-CLI Commands
WP Sell Services ships a wpss command namespace for site operators and
developers. Run wp wpss to list everything, or add --help to any command for
its full options.
wp wpss demo Manage demo serviceswp wpss preflight Run release-readiness preflight checkswp wpss scale Seed, benchmark and teardown a production-shape datasetwp wpss service Manage services (alias of `demo` -- same subcommands)wp wpss test:flow Run end-to-end data flow testswp wpss validate Validate models and schemaAll commands respect the current site in multisite (--url=).
Demo content
Section titled “Demo content”wp wpss demo and wp wpss service are the same command registered under
two names, so every subcommand below works with either prefix.
wp wpss demo create --count=20 --featured=5 # seed 20 services, 5 featuredwp wpss demo marketplace # seed a FULL demo marketplacewp wpss demo list # list services with statswp wpss demo stats # marketplace statistics summarywp wpss demo regenerate-meta # rebuild computed service metawp wpss demo delete --yes # remove all demo/test contentcreate and marketplace are not the same thing. create seeds service
listings only. marketplace builds a working marketplace: multiple vendors with
profiles and portfolios, buyers, orders across the whole lifecycle, reviews,
buyer requests with proposals, and conversations. Use marketplace for staging
sites, theme testing, and client demos; use create when you just need catalog
volume.
Demo content is flagged internally, so demo delete never touches real customer
data. delete prompts for confirmation – pass --yes in scripts.
Health checks
Section titled “Health checks”wp wpss preflight # verify database tables, settings defaults, page mappingswp wpss validate # validate marketplace data integrityRun preflight after installation, after a migration, and before a release.
Every check prints PASS or FAIL with the reason.
Testing and gap detection
Section titled “Testing and gap detection”wp wpss test:flow # end-to-end data flow testsEarlier documentation listed
wp wpss test run,test tables,test gaps,test seedandtest clean. No barewpss testcommand is registered – those examples fail with “not a registered subcommand”. The only command in this group istest:flow. For seeding and cleanup usewp wpss demo, and for release checkswp wpss preflight.
test:flow walks a complete order lifecycle through the data layer and reports
where a flow breaks. It is the fastest way to confirm a fresh install actually
works end to end.
Scale benchmarking
Section titled “Scale benchmarking”For verifying the marketplace holds up at production shape – 10k vendors with orders and wallet transactions.
wp wpss scale seed # seed a production-shape datasetwp wpss scale bench # time every hot-path query vs its budgetwp wpss scale bench --seed --teardown # seed, bench, teardown in one shot (CI gate)wp wpss scale teardown --yes # remove all benchmark dataEvery seeded row carries a sentinel (a description / vendor_notes prefix plus
a high user-id offset), so teardown removes exactly what seed created and
never touches real marketplace data.
bench measures each hot-path query against a per-query budget, so it fails
loudly when a change makes a list view unusable at scale, rather than leaving you
to discover it on a customer’s site.

