1.1 KiB
1.1 KiB
Suggested Commands
Dependency & Setup
composer install(installs PHP deps after cloning)composer update(bring composer.lock up-to-date with composer.json changes)
Testing & Verification
vendor\bin\phpunit(runs the full PHPUnit suite on Windows)composer test(alias that executesphpunit)phpunit --colors --coverage-text=tests/coverage.txt --coverage-html=tests/coverage/ -d memory_limit=1024m(generate coverage reports)
Development & Entrypoints
php spark serve(starts CI4 dev server pointing atpublic/)php spark list(see available Spark commands)php spark cache:clear(clear framework caches)php spark migrate/php spark migrate:rollback(apply/rollback database migrations)php spark <command>(General CLI entry for tasks such asdb:seed,routes:list, etc.)
Utility Commands (Windows-friendly)
git status,git add .,git commit -m "message",git push(standard git workflow)dir(list Windows folders;lsalso works via PowerShell)type .env(dump env template)powershell/cmdfor shell access; lean on PowerShell when running scripts