Getting connected
Before running any maintenance commands, you need access to the OroCloud environment via VPN and SSH.Connect via VPN
Use your
.ovpn configuration file to connect to OroCloud via OpenVPN. See Connect VPN for OS-specific instructions.Connect via SSH
Configure your password and SSH key as described in OroCloud Onboarding, then connect via SSH using:
- The IP address and username provided by Oro Support, or
- The
gcloudCLI tool:gcloud compute ssh ocom-yourproject-prod1-maint1 --internal-ip
Key maintenance commands
Once connected, runorocloud-cli without parameters to list all available commands.
Deploy
To deploy an Oro application with default installation parameters:If the application is already deployed, this command is restricted. Contact Oro Support for a full re-deploy from scratch.
Upgrade
Choose the upgrade mode based on your requirements:- Standard upgrade (with downtime)
- Rolling upgrade (no downtime)
- Source upgrade (no downtime)
- Enables maintenance mode
- Stops services (consumers, cron, websocket)
- Checks out the application code from the specified tag, branch, or commit
- Installs external dependencies via
composer install - Runs
oro:platform:updateincluding assets - Warms up layout caches
Application packages
For Oro applications version 5.0 and above, you can use pre-built application packages to speed up upgrades:| Method | Total time | Maintenance mode |
|---|---|---|
orocloud-cli upgrade | ~1300s | ~800s |
orocloud-cli app:package:upgrade | ~750s | ~230s |
orocloud-cli app:package:deploy (pre-built) | ~400s | ~230s |
Backup
Media files can only be restored via a request to Oro Support.
Sanitized backup
Sanitized backups are useful for sharing data with the Oro Support team, local debugging, or transferring data from production to staging.Cache management
Application commands
Run any Oro application console command via:Any
app:console command has a default timeout of 1 hour and a memory limit of 2 GB. Contact support if you need to exceed these limits.Maintenance mode
Configuration validation
Validate yourorocloud.yaml configuration for syntax errors:
In this section
Before you begin
Prerequisites: VPN, SSH, and SFTP access setup.
Maintenance commands
Full reference for all orocloud-cli maintenance commands.
Advanced configuration
Advanced orocloud.yaml configuration options.
Environment configuration
Configuration differences across environment types.
Pre-built assets
Upgrade using pre-built application packages.
Patches
How to apply patches to your OroCloud environment.
Error processing
Error processing and log monitoring.
Scheduled tasks
Add or remove scheduled tasks.
Environment variables
Add or remove environment variables.
FAQ
Frequently asked questions about maintenance operations.