This guide provides comprehensive instructions for setting up the PrestaShop Enterprise Developer Tools on macOS systems. Follow these steps carefully to ensure a proper installation and configuration.
Before installing the Enterprise Developer Tools, you’ll need:
The Xcode Command Line Tools provide essential development utilities for macOS.
Install Command Line Tools:
xcode-select --install
Accept the license agreement when prompted
Verify installation:
xcode-select -p
You should see a path like /Applications/Xcode.app/Contents/Developer or /Library/Developer/CommandLineTools
Homebrew is the most popular package manager for macOS and simplifies software installation.
Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Follow the installation prompts and enter your password when requested
Add Homebrew to your PATH (for Apple Silicon Macs):
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrc
source ~/.zshrc
Verify Homebrew installation:
brew --version
/opt/homebrew on Apple Silicon Macs and /usr/local on Intel Macs. The installer handles this automatically.Docker Desktop provides the containerization platform needed for the Enterprise Developer Tools.
Download Docker Desktop:
Install Docker Desktop:
.dmg fileComplete setup:
Verify Docker installation:
docker --version
docker run --rm hello-world
Open Docker Desktop preferences:
Recommended settings:
Git is essential for source code management and SSH access to repositories.
Install Git:
brew install git
Verify Git installation:
git --version
Download Git for macOS:
Install using the package installer
Set your identity (replace with your information):
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
Configure Git for better collaboration:
# Set default branch name
git config --global init.defaultBranch main
# Set pull behavior to rebase
git config --global pull.rebase true
# Enable credential helper for macOS
git config --global credential.helper osxkeychain
# Improve diff display
git config --global diff.tool vimdiff
SSH keys provide secure authentication to GitLab repositories without passwords.
Create SSH key pair:
ssh-keygen -t ed25519 -C "Mac $(hostname)"
Configure the key generation:
/Users/$USER/.ssh/id_ed25519)Your public key has been saved in /Users/<username>/.ssh/id_ed25519.pub
macOS includes a built-in SSH agent, but you may need to configure it:
Start SSH agent and add your key:
eval "$(ssh-agent -s)"
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
Configure SSH to use the keychain (create or edit ~/.ssh/config):
touch ~/.ssh/config
echo "Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519" >> ~/.ssh/config
Display and copy the public key:
cat ~/.ssh/id_ed25519.pub
Or copy directly to clipboard:
cat ~/.ssh/id_ed25519.pub | pbcopy
Login to GitLab:
Navigate to SSH Keys:
Add the new key:
Test GitLab SSH connection:
ssh -T git@git.hyperlane.co
Expected response: You should see a welcome message from GitLab confirming successful authentication.
These tools can enhance your development experience:
Useful for some PrestaShop development tasks:
# Install Node.js LTS using Homebrew
brew install node
# Verify installation
node --version
npm --version
For code editing and development:
# Install VS Code using Homebrew
brew install --cask visual-studio-code
# Or download from https://code.visualstudio.com/
# Install useful development tools
brew install wget curl jq tree
# Install database clients (optional)
brew install mysql-client postgresql
Create and navigate to your working directory:
mkdir -p ~/prestashop-development
cd ~/prestashop-development
Download the binary:
curl -O "https://assets.prestashop3.com/enterprise/tools/macos/ps-enterprise.zip"
Extract the files:
unzip ps-enterprise.zip
Clean up:
rm ps-enterprise.zip
Make executable and install system-wide:
chmod +x ps-enterprise
./ps-enterprise install
Handle macOS security prompt:
sudo spctl --master-disable (temporarily disable Gatekeeper)Restart your terminal or source your shell profile:
# For zsh (default on macOS)
source ~/.zshrc
# For bash
source ~/.bashrc
Verify installation:
ps-enterprise -v
Navigate to your project directory:
cd ~/prestashop-development
# Or create a new project directory
mkdir MyPrestaShopProject && cd MyPrestaShopProject
Run the initial setup:
ps-enterprise
Web Authentication:
Complete authentication and return to the terminal
Project and Environment Selection:
Local Environment Configuration:
macOS-specific configurations:
Check all components:
# Test ps-enterprise
ps-enterprise -v
# Test Docker
docker --version
docker run --rm hello-world
# Test Git
git --version
# Test Homebrew (if installed)
brew --version
# Check system architecture
uname -m
Verify SSH connection:
ssh -T git@git.hyperlane.co
You should see a welcome message from GitLab.
Test Docker functionality:
# This should work without issues
docker ps
docker images
Problem: “Docker Desktop is not running”
# Solution: Start Docker Desktop
open -a Docker
# Or from command line
open /Applications/Docker.app
Problem: Docker containers running slowly
# Solution: Check Docker Desktop resources
# Go to Docker Desktop > Settings > Resources
# Increase Memory and CPU allocation
Problem: SSH key not being recognized
# Check SSH agent
ssh-add -l
# Add key to agent
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
# Test with verbose output
ssh -vT git@git.hyperlane.co
Problem: “Host key verification failed”
# Add GitLab to known hosts
ssh-keyscan git.hyperlane.co >> ~/.ssh/known_hosts
Problem: “ps-enterprise” command not found after installation
# Check if installation path is in PATH
echo $PATH
# Manually add to PATH (add to ~/.zshrc)
export PATH="$PATH:/usr/local/bin"
Problem: Gatekeeper blocking execution
# Remove quarantine attribute
sudo xattr -r -d com.apple.quarantine /path/to/ps-enterprise
# Or temporarily disable Gatekeeper
sudo spctl --master-disable
Problem: Cannot connect to repositories or download packages
# Check network connectivity
ping google.com
# Check DNS resolution
nslookup git.hyperlane.co
# Reset DNS cache
sudo dscacheutil -flushcache
Optimize Docker performance:
# Enable BuildKit for faster builds
echo 'export DOCKER_BUILDKIT=1' >> ~/.zshrc
echo 'export COMPOSE_DOCKER_CLI_BUILD=1' >> ~/.zshrc
source ~/.zshrc
Increase file descriptor limits:
# Add to ~/.zshrc
echo 'ulimit -n 65536' >> ~/.zshrc
source ~/.zshrc
Configure Git for better performance:
# Enable parallel processing
git config --global core.preloadindex true
git config --global core.fscache true
# Enable file system monitoring
git config --global core.fsmonitor true
Monitor system resources:
# Check CPU and memory usage
top -l 1 | head -20
# Check disk usage
df -h
# Check Docker resource usage
docker system df
Optimize Spotlight indexing (exclude development directories):
After successful installation and configuration:
ps-enterprise --help to see available commandsps-enterprise to clone and configure a shopIf you encounter issues:
Check system logs:
# Check system logs
log show --predicate 'process == "ps-enterprise"' --last 1h
# Check Docker logs
docker system events
Verify prerequisites: Ensure all components are properly installed
Restart services: Try restarting Docker Desktop and your terminal
Contact support: Reach out to your PrestaShop Enterprise support team
Quick reference for common troubleshooting commands:
# System information
sw_vers
uname -a
sysctl hw.memsize hw.ncpu
# Docker information
docker info
docker system df
docker system prune
# Network connectivity
ping -c 4 git.hyperlane.co
curl -I https://assets.prestashop3.com
# Process information
ps aux | grep docker
ps aux | grep ps-enterprise
# File permissions and SSH
ls -la ~/.ssh/
ssh-add -l
# Homebrew information (if installed)
brew doctor
brew list
Development-related shortcuts that can improve your workflow:
# Quick navigation
alias ll='ls -la'
alias la='ls -A'
alias l='ls -CF'
# Git shortcuts
alias gs='git status'
alias ga='git add'
alias gc='git commit'
alias gp='git push'
# Docker shortcuts
alias dps='docker ps'
alias di='docker images'
alias dc='docker compose'
# Add these to your ~/.zshrc file
You now have a complete macOS development environment for PrestaShop Enterprise development. The setup includes:
Your macOS machine is ready for PrestaShop Enterprise development!