clone - Clone Shop FilesDownload shop files from the target environment to your local development machine.
The clone command downloads the complete shop codebase from your configured PrestaShop Enterprise environment, setting up the local file structure needed for development.
Before running the clone command:
ps-enterprise authps-enterprise configremote-dump to get the database stateps-enterprise clone
# Force overwrite existing local files
ps-enterprise clone --force
| Flag | Short | Description | Required |
|---|---|---|---|
--force |
-f |
Force overwrite existing files without confirmation | No |
--help |
-h |
Show command help | No |
# Set up new project from scratch
mkdir my-prestashop-project
cd my-prestashop-project
# Configure project
ps-enterprise auth
ps-enterprise config
ps-enterprise remote-dump
# Clone files
ps-enterprise clone
# Get latest changes from remote environment
cd existing-project
ps-enterprise clone
# If you have local modifications:
# The command will warn you about overwriting files
# Use --force to proceed or backup your changes first
# Overwrite all local files with remote version
ps-enterprise clone --force
# ⚠️ Warning: This will overwrite local modifications
After successful cloning:
✓ Connected to GitLab repository
✓ Repository cloned successfully
✓ Local file structure created
✓ Files ready for local development
❌ SSH authentication failed: Permission denied (publickey)
Solution:
ssh-keygen -t ed25519 -C "your-email@example.com"~/.ssh/id_ed25519.pub to GitLab SSH keysssh -T git@gitlab.prestashop.com❌ Repository not found or access denied
Solution:
ps-enterprise config⚠️ Local files exist. Overwrite? (y/N)
Options:
y - Overwrite local files with remote versionN - Cancel clone operation--force flag to skip confirmation❌ Clone failed: No space left on device
Solution:
df -hps-enterprise clean on other projectsThe clone command integrates with other CLI commands:
auth) and configuration (config)patch to apply local environment settingsstart command uses cloned files to run local environmentclean command removes cloned filesauth - Required for GitLab accessconfig - Determines which repository to clonepatch - Apply local environment settings after cloningclean - Remove cloned files--force flag will overwrite existing local files without confirmation. Always backup important local changes before using this flag.git status in your project directory to see which files have been modified locally before running clone with --force.ssh -T git@gitlab.prestashop.com.