Commands Overview
Complete reference for all PhpHive CLI commands.
π Command Categories
PhpHive provides 30+ commands organized into 10 categories:
Workspace Management - Manage monorepo workspaces
Make Commands - Scaffold apps and packages
Composer Commands - Dependency management
Quality Commands - Testing and code quality
Framework Commands - Laravel, Symfony, Magento
Development Commands - Dev server and builds
Deployment Commands - Deploy and publish
Turbo Commands - Turborepo integration
System Commands - Health checks and info
Maintenance Commands - Clean and maintain
Common Options
All commands support these common options:
--workspace, -w=NAME- Target specific workspace--force, -f- Force operation (skip cache)--no-cache- Disable Turbo cache--no-interaction, -n- Run in non-interactive mode--all- Apply operation to all workspaces--json- Output data in JSON format--parallel- Enable parallel execution across workspaces--dry-run- Preview what would happen without executing--help, -h- Display help--quiet, -q- Suppress output--verbose, -v- Verbose output
β See detailed common options documentation
Workspace Management
hive make:workspace
hive make:workspaceInitialize a new monorepo workspace with interactive setup.
Aliases: init, new
Usage:
Options:
--name=NAME- Workspace name--type=TYPE- Workspace type (monorepo, package, app)--no-git- Skip Git initialization--no-interaction, -n- Run without prompts
What it creates:
Root
composer.jsonwith workspace configurationturbo.jsonfor Turborepo configurationpnpm-workspace.yamlfor workspace managementpackage.jsonwith scripts.gitignorewith sensible defaultsREADME.mdwith getting started guideapps/andpackages/directories
hive workspace:list
hive workspace:listList all workspaces in the monorepo.
Aliases: list, ls, workspaces
Usage:
Options:
--type=TYPE- Filter by workspace type (app, package)
Output:
hive workspace:info
hive workspace:infoShow detailed information about a workspace.
Aliases: info, show, details
Usage:
Arguments:
workspace- Workspace name
Options:
--dependencies- Show dependency tree
Make Commands
hive make:app
hive make:appCreate a new application with full scaffolding.
Aliases: create:app, new:app
Usage:
Arguments:
name- Application name (required)
Options:
--type, -t=TYPE- Application type (laravel, symfony, magento, skeleton)
Supported App Types:
Laravel
Multiple versions (10, 11 LTS, 12 Latest)
Starter kits (Breeze, Jetstream)
Database configuration
Optional packages (Horizon, Telescope, Sanctum, Octane)
Symfony
Multiple versions (6.4 LTS, 7.1 LTS, 7.2 Latest)
Project types (webapp, skeleton)
Database configuration
Optional bundles (Maker, Security)
Magento
Versions (2.4.6, 2.4.7)
Database and admin configuration
Sample data installation
Elasticsearch and Redis setup
Skeleton
Minimal PHP application
Composer configuration
PHPUnit setup
Optional quality tools
Example:
hive make:package
hive make:packageCreate a new reusable package.
Aliases: create:package, new:package
Usage:
Arguments:
name- Package name (required)
Options:
--description=TEXT- Package description
What it creates:
composer.jsonwith PSR-4 autoloadingsrc/directory with example classtests/directory with PHPUnit setupphpunit.xmlconfigurationREADME.mdwith usage instructions.gitignorefor package-specific files
Composer Commands
hive composer:install
hive composer:installInstall all dependencies across workspaces.
Aliases: install, i
Usage:
Options:
--no-dev- Skip dev dependencies--update-lock- Update lock file--optimize-autoloader, -o- Optimize autoloader
hive composer:require
hive composer:requireAdd a package dependency.
Aliases: require, req, add
Usage:
Arguments:
package- Package name (required)
Options:
--dev, -D- Add as dev dependency--update-with-dependencies- Update dependencies--workspace, -w=NAME- Target workspace
hive composer:update
hive composer:updateUpdate dependencies.
Aliases: update, up, upgrade
Usage:
Arguments:
package- Package name (optional)
Options:
--with-dependencies- Update with dependencies--prefer-stable- Prefer stable versions--workspace, -w=NAME- Target workspace
hive composer:run
hive composer:runRun arbitrary Composer commands.
Aliases: composer, comp
Usage:
Arguments:
command- Composer command to runargs- Additional arguments (optional)
Quality Commands
hive quality:test
hive quality:testRun PHPUnit tests.
Aliases: test, t, phpunit
Usage:
Options:
--testsuite=SUITE- Test suite to run (Unit, Feature)--coverage- Generate coverage report--filter=PATTERN- Filter tests by pattern--parallel- Run tests in parallel--workspace, -w=NAME- Target workspace
hive quality:lint
hive quality:lintCheck code style with Laravel Pint.
Aliases: lint, pint
Usage:
Options:
--dirty- Only check uncommitted files--workspace, -w=NAME- Target workspace
hive quality:format
hive quality:formatFix code style automatically.
Aliases: format, fmt, fix
Usage:
Options:
--dry-run- Preview changes without applying--dirty- Only fix uncommitted files--workspace, -w=NAME- Target workspace
hive quality:typecheck
hive quality:typecheckRun PHPStan static analysis.
Aliases: typecheck, tc, phpstan, analyse, analyze
Usage:
Options:
--level=LEVEL- Analysis level (0-9)--generate-baseline- Generate baseline file--workspace, -w=NAME- Target workspace
hive quality:refactor
hive quality:refactorRun Rector refactoring.
Aliases: refactor, rector
Usage:
Options:
--fix- Apply refactoring changes--dry-run- Preview changes only (default)--clear-cache- Clear Rector cache--workspace, -w=NAME- Target workspace
hive quality:mutate
hive quality:mutateRun Infection mutation testing.
Aliases: mutate, mutation, infection
Usage:
Options:
--min-msi=SCORE- Minimum MSI score--min-covered-msi=SCORE- Minimum covered MSI score--threads=N- Number of threads--show-mutations- Show all mutations--workspace, -w=NAME- Target workspace
Framework Commands
hive framework:artisan
hive framework:artisanRun Laravel Artisan command in a workspace.
Aliases: artisan, art
Usage:
Arguments:
command- Artisan command to runargs- Additional arguments (optional)
Options:
--workspace, -w=NAME- Target workspace
hive framework:console
hive framework:consoleRun Symfony Console command in a workspace.
Aliases: console, sf, symfony
Usage:
Arguments:
command- Console command to runargs- Additional arguments (optional)
Options:
--workspace, -w=NAME- Target workspace
hive framework:magento
hive framework:magentoRun Magento CLI command in a workspace.
Aliases: magento, mage, bin/magento
Usage:
Arguments:
command- Magento command to runargs- Additional arguments (optional)
Options:
--workspace, -w=NAME- Target workspace
Development Commands
hive dev:start
hive dev:startStart development server with hot reload.
Aliases: dev, serve
Usage:
Options:
--port=PORT- Server port (default: 8000)--host=HOST- Server host (default: localhost)--workspace, -w=NAME- Target workspace
hive dev:build
hive dev:buildBuild for production.
Aliases: build
Usage:
Options:
--production- Production build mode--minify- Minify output--workspace, -w=NAME- Target workspace
Deployment Commands
hive deploy:run
hive deploy:runRun deployment pipeline.
Aliases: deploy
Usage:
Options:
--env=ENV- Target environment--dry-run- Preview deployment steps--workspace, -w=NAME- Target workspace
hive deploy:publish
hive deploy:publishPublish packages to registry.
Aliases: publish
Usage:
Options:
--tag=TAG- Version tag--dry-run- Preview publish--workspace, -w=NAME- Target workspace
Turbo Commands
hive turbo:exec
hive turbo:execDirect access to Turborepo commands.
Aliases: turbo, tb
Usage:
Arguments:
command- Turbo command to runargs- Additional arguments (optional)
hive turbo:run
hive turbo:runRun arbitrary Turbo tasks.
Aliases: run, exec, execute
Usage:
Arguments:
task- Task name to run
Options:
--filter=PATTERN- Filter workspaces--parallel- Run in parallel--no-cache- Skip cache--workspace, -w=NAME- Target workspace
System Commands
hive system:doctor
hive system:doctorSystem health check and diagnostics.
Aliases: doctor, check, health
Usage:
Options:
--check=COMPONENT- Check specific component--verbose, -v- Verbose output
Checks:
PHP version and extensions
Composer installation
Turborepo availability
Workspace configuration
File permissions
hive system:version
hive system:versionShow version information.
Aliases: version, ver, v, --version, -V
Usage:
Options:
--all- Show all component versions
Output:
Maintenance Commands
hive clean:cache
hive clean:cacheClean caches and temporary files.
Aliases: clean, clear
Usage:
Options:
--cache=TYPE- Specific cache to clean (phpstan, phpunit, turbo, pint)--workspace, -w=NAME- Target workspace
What it cleans:
.phpstan.cache- PHPStan cache.phpunit.cache- PHPUnit cache.turbo- Turborepo cache.pint.cache- Pint cachevar/cache- Application cache
hive clean:all
hive clean:allDeep clean (destructive operation).
Aliases: cleanup
Usage:
Options:
--force, -f- Skip confirmation--workspace, -w=NAME- Target workspace
Warning: This removes:
vendor/directoriescomposer.lockfilesnode_modules/directoriesAll cache directories
Build artifacts
Command Cheat Sheet
Quick reference for common commands:
Need more help? Check the Getting Started Guide or open an issue.
Last updated