Requirements
Before installing Retina, ensure you have the following installed:PHP 8.1+
Required for running Retina
Composer
For dependency management
Git
For installation script
Retina requires PHP 8.1 or higher. Check your version with
php --versionInstall on macOS and Linux
The easiest way to install Retina on macOS and Linux is using the automated installation script:Run the installation script
Execute the following command in your terminal:This script will:
- Clone the Retina repository
- Install dependencies via Composer
- Add Retina to your system PATH
Install on Windows
Windows users should manually install Retina using the following steps:Install dependencies
Install the required Composer dependencies:
The
--no-dev flag excludes development dependencies, and --optimize-autoloader improves performance.Add to PATH
You have two options to make Retina accessible from anywhere:Option 1: Add bin directory to PATHReplace
- Copy the full path to the
bindirectory (e.g.,C:\retina\bin) - Open System Properties → Advanced → Environment Variables
- Edit the
Pathvariable and add the bin directory path
retina.bat in a directory that’s already in your PATH:C:\path\to\retina with your actual installation path.Manual installation (all platforms)
If you prefer to install Retina manually or the automated scripts don’t work:Troubleshooting
Command not found after installation
Command not found after installation
If you get a “command not found” error:
-
Verify the
bindirectory is in your PATH: -
For shell configuration changes, reload your shell:
-
Try running Retina directly:
Composer autoloader not found
Composer autoloader not found
If you see “Composer autoloader not found”:
-
Ensure you ran
composer installin the Retina directory: -
Verify the
vendordirectory exists and contains anautoload.phpfile
PHP version errors
PHP version errors
If you get PHP version errors:
-
Check your PHP version:
-
Retina requires PHP 8.1 or higher. Update PHP if needed:
- macOS:
brew upgrade php - Linux: Use your package manager (apt, yum, etc.)
- Windows: Download from php.net
- macOS:
Memory limit errors
Memory limit errors
Retina sets a 2GB memory limit by default. If you encounter memory issues:
-
Edit
bin/retinaand increase the limit: -
Or set it via PHP configuration:
Next steps
Quick start guide
Learn how to run your first scan and configure Retina for your project