CLI commands
Run commands from the consumer project root. CONTAO_E2E_DIRECTORY overrides its workspace. For all available arguments and options:
vendor/bin/contao-e2e list
vendor/bin/contao-e2e help cache:metadata
| Command | Purpose |
|---|---|
doctor |
Initialize and verify the project-local workspace |
cache:metadata |
Prepare cache-key files and print cache fingerprints and roots as JSON |
cache:clear |
Clear reusable E2E setup caches |
failures:clear |
Clear retained failure artifacts |
database:stop |
Stop all Docker database variants belonging to the project |
server:start <inspection-file> [-d] |
Prepare an application for manual inspection, optionally in the background |
server:status |
Show readiness and URLs for the background inspection session |
server:stop |
Stop the background inspection session and release its leases |
cache:metadata requires the Playwright Node dependencies to have been prepared with vendor/bin/playwright-install. It does not install dependencies or access the network itself. See CI caching.
database:stop refuses to interrupt active tests unless --force is supplied. Cleanup commands act on the project's E2E workspace. See workspace layout.
server:start loads a PHP file returning an application configuration or a preparation factory. It supports Managed Editions, local servers, custom server commands and externally hosted applications. In foreground mode it prints the URLs and waits until you stop the session. With -d, preparation continues in a background worker and server:status shows readiness. See manual inspection for configuration examples and shutdown behavior.
Browser installation is supplied by the Playwright dependency:
vendor/bin/playwright-install firefox
Firefox is the default browser. Pass chromium or webkit instead, or multiple names such as firefox chromium, to match your test suite. Use --with-deps firefox on fresh Linux runners to install system dependencies as well as browser binaries. Explicit browser names replace --browsers, which installs all three. See browser installation.