azu dev
The azu dev command provides an enhanced development environment with additional tools and features for productive development. It's an alternative to azu serve with extra development capabilities.
Overview
azu dev [options]Basic Usage
Start Development Environment
# Start development environment
azu dev
# Start with custom port
azu dev --port 4000
# Start with specific environment
azu dev --env developmentDevelopment with Hot Reloading
# Start development server with enhanced features
azu dev
# Output:
# π Starting Azu development environment...
# π¦ Compiling application...
# β
Compilation successful!
# π Server running at: http://localhost:4000
# π₯ Hot reloading enabled
# π Watching for file changes...
# π Development dashboard at: http://localhost:4000/dev
# π§ͺ Test runner available
# π Code formatter active
#
# Press Ctrl+C to stop the serverCommand Options
--port <port>
Server port
4000
--host <host>
Server host
localhost
--env <environment>
Environment name
development
--debug
Enable debug mode
true
--dashboard
Enable development dashboard
true
--tests
Enable test runner
true
--format
Enable code formatting
true
--lint
Enable linting
true
--coverage
Enable code coverage
false
--workers <number>
Number of worker processes
1
Development Features
Development Dashboard
Access the development dashboard at http://localhost:4000/dev:
Enhanced File Watching
Automatic Code Formatting
Linting and Code Quality
Test Runner Integration
Development Dashboard
Dashboard Features
Application Status:
Server uptime
Memory usage
CPU usage
Request count
Error rate
Database Information:
Connection status
Migration status
Table count
Query performance
Route Listing:
All registered routes
HTTP methods
Endpoint classes
Route parameters
Performance Metrics:
Response times
Throughput
Memory allocation
Garbage collection
Error Logs:
Recent errors
Stack traces
Error frequency
Error categories
Test Results:
Test status
Coverage reports
Failed tests
Test performance
Accessing Dashboard
Examples
Basic Development
Custom Configuration
Team Development
Development Workflow
1. Start Development
2. Make Changes
3. Monitor Progress
4. Debug Issues
Advanced Features
Code Coverage
Performance Profiling
Database Monitoring
Error Tracking
Configuration
Development Configuration
Dashboard Configuration
Troubleshooting
Dashboard Not Accessible
Tests Not Running
Code Formatting Issues
Performance Issues
Best Practices
1. Development Workflow
2. Dashboard Usage
3. Code Quality
4. Performance Monitoring
Integration with IDEs
VS Code Integration
JetBrains Integration
The azu dev command provides an enhanced development environment with dashboard, testing, formatting, and monitoring capabilities.
Next Steps:
Development Workflows - Learn development patterns
Testing Your Application - Comprehensive testing
Database Commands - Manage your database
Last updated