Download the PHP package electriccitizen/bolt-inspect without Composer
On this page you can find all versions of the php package electriccitizen/bolt-inspect. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download electriccitizen/bolt-inspect
More information about electriccitizen/bolt-inspect
Files in electriccitizen/bolt-inspect
Package bolt-inspect
Short Description Drupal site introspection and test content management for Bolt CLI
License GPL-2.0-or-later
Homepage https://github.com/electriccitizen/bolt-inspect
Informations about the package bolt-inspect
Generated at: 2026-04-27
Bolt Inspect — Documentation
Drupal 11+ module that exposes a site's structure and manages disposable test content for the Bolt CLI test runner. This module is the in-Drupal half of Bolt; the Node.js CLI shells out to it via Drush.
| Item | Value |
|---|---|
| Package | electriccitizen/bolt-inspect |
| Module name | bolt_inspect |
| Version | 0.5.0 |
| Drupal core | ^11 |
| PHP | >=8.1 |
| Drush services | ^13 |
| Required ext | ext-gd (placeholder image generation) |
| License | GPL-2.0-or-later |
What it does
- Profile the site (
drush bolt-inspect:profile) — emits a single JSON document describing content types, paragraph bundles, fields, menus, media types, enabled and custom modules, accessible frontend routes, representative URLs, and sample referenceable entities. This is the contract Bolt's plugins read to decide what to test. - Generate test content (
drush bolt-inspect:generate) — creates one unpublished node per content type, populating required fields (and any field referenced by anauto_entitylabeltoken pattern). Supporting entities (terms, media, files, paragraphs) are created on demand and tracked. - Render-check (
drush bolt-inspect:render-check) — renders each generated test node in isolation and reports per-bundle status. - Cleanup (
drush bolt-inspect:cleanup) — deletes everything that was tracked, in reverse creation order. Uninstalling the module also wipespublic://bolt-test/and the tracking state.
The module is designed to leave no traces: tracked-only deletion, state cleared on uninstall, no config entities, no schema changes.
Documents in this directory
commands.md— Drush command reference and example output.site-profile.md— JSON contract emitted bybolt-inspect:profile, field-by-field.architecture.md— services, classes, file layout, and how Bolt CLI consumes the module.
Install (standalone)
In normal use you never install this module directly — bolt init does
it from the host project. See the Bolt CLI README for the host-side flow.
Uninstall
hook_uninstall() deletes the bolt_inspect.tracked_entities state
key and recursively removes public://bolt-test/. Run
drush bolt-inspect:cleanup first if tracked entities still exist —
once the module is uninstalled, the tracker is gone and stragglers
must be deleted by hand.
Revisions
| Date | Change |
|---|---|
| 2026-04-27 | Initial documentation set for v0.5.0. |