atlas run command builds your project and immediately executes it for local testing and development. This is the fastest way to iterate on your Atlas Engine application.
Usage
atlas.toml is located).
Options
—release, -r
Build and run in release mode with optimizations enabled.0- Debug build (default)1or any non-zero value - Release build
0 (debug mode)
Build and Run Process
The run command performs the following steps:Example Output
Successful Run
Build Error
Runtime Error
Development Workflow
The typical development cycle withatlas run:
Observe results
Your application window opens automatically. Exit the app to return to the terminal.
Debug vs Release Mode
Debug Mode (Default)
- Faster compilation times
- Includes debug symbols
- No optimizations
- Better for development and debugging
- Larger executable size
- Developing new features
- Debugging issues
- Testing frequently
Release Mode
- Slower compilation times
- Optimized machine code
- Smaller executable size
- Better runtime performance
- No debug symbols
- Testing final performance
- Profiling your application
- Verifying release builds
Platform Behavior
The run command works consistently across platforms:macOS
Builds and runs the executable directly (not as a.app bundle):
Linux
Builds and runs the native executable:Windows
Builds and runs the.exe file:
Configuration
The run command respects platform restrictions fromatlas.toml:
Troubleshooting
CMake Not Found
Missing Dependencies
Compilation Errors
Check your C++ code for syntax errors. The full compiler output is displayed during the build. Common issues:- Missing semicolons
- Undefined symbols
- Incorrect include paths
- Type mismatches
No Executable Found
Application Crashes
- Adding print statements
- Checking for null pointers
- Verifying resource paths
- Using a debugger like
lldborgdb
Resource Loading Errors
If your application can’t find assets:assets/ directory relative to your project root.
Quick Tips
- Use
atlas runfrequently during development for rapid iteration - Switch to
atlas run --releasewhen testing performance - Use atlas pack only when ready to distribute
- Check CMake output if builds fail
- Exit your application properly to see success/failure status