This comprehensive guide explains how to use the PrestaShop Enterprise Developer Tools effectively. Whether you’re setting up your first project or managing multiple environments, this guide will help you master the CLI workflow.
The PrestaShop Enterprise Developer Tools CLI provides two main ways to work:
ps-enterprise without arguments for a complete setupFrom your project directory, simply run:
ps-enterprise
This single command will intelligently execute all necessary steps to get your local environment running.
When you run ps-enterprise without arguments, the tool follows this intelligent workflow:
The automated workflow is designed to be efficient and non-destructive:
| Step | When It Runs | Purpose |
|---|---|---|
auth |
Only if authentication is missing or invalid | Authenticate with PrestaShop Enterprise Platform |
config |
Only if configuration is incomplete | Set up project and environment settings |
remote-dump |
Only if database dump is missing | Create local database backup from remote |
clone |
Only if no shop files exist locally | Download shop files from remote environment |
patch |
Always (if previous steps completed) | Apply local environment configurations |
stop |
Always | Cleanly stop any running containers |
start |
Always | Start the local development environment |
log |
Always (final step) | Display real-time environment logs |
While the automated ps-enterprise command is powerful, you can also execute each step as a separate command. This gives you granular control over your environment.
For a complete list of all available commands and their options, please refer to the Commands Reference page.
# Start your day
cd /path/to/your/project
ps-enterprise start
# Make your changes...
# Edit files, develop features, etc.
# End your day
ps-enterprise stop
# Create project directory
mkdir my-prestashop-project
cd my-prestashop-project
# Complete setup (first time)
ps-enterprise
# The tool will guide you through:
# 1. Authentication
# 2. Project/environment selection
# 3. File cloning
# 4. Database setup
# 5. Environment startup
# Navigate to different project
cd /path/to/other/project
# Clean previous setup
ps-enterprise clean
# Set up new project
ps-enterprise
# Clean environment
ps-enterprise clean
# Start fresh
ps-enterprise
# Monitor for issues
ps-enterprise log
# Set up environment
ps-enterprise
# Develop your module...
# Check compliance
ps-enterprise compliance mymodule
# Test in container
ps-enterprise exec --interactive
# General help
ps-enterprise --help
# Command-specific help
ps-enterprise <command> --help
| Issue | Solution |
|---|---|
| Docker not running | Start Docker Desktop/service |
| SSH key issues | Regenerate and add SSH keys to GitLab |
| Permission errors | Check user permissions for Docker |
| Network issues | Verify internet connection and firewall settings |
The PrestaShop Enterprise Developer Tools provide a powerful, automated workflow for managing local development environments. Whether you prefer the automated approach or individual command control, the tools are designed to streamline your development process and reduce common setup errors.
Key takeaways:
ps-enterprise for automated setup