The STRATUS Command Line Interface (CLI) is available to run cache clearing and other commands for easier management of a Magento deployment
The following commands are accessible via SSH access. See the *SSH > SSH Info* STRATUS Control panel for access parameters.
/usr/share/stratus/cli help for a list of viewable commands with descriptions.
CLI commands are entered as
/usr/share/stratus/cli <command>. For example, to use the command
If autoscaling is enabled, this command will issue a redeploy of PHP-FPM services and update the code copied out to the various physical nodes. This is a rolling redeployment for zero instance downtime and minimal site downtime. The command executes asynchronously and will return before all the redeployment is completed. It is for regular deploys only. This command should not be used if you are using Zero-Downtime Deployment (ZDD)
NOTE: On average a redeployment takes several seconds or more depending on the size of the code base deployed.
Except for Redis or Memcache sessions, this command clears all other caches, including Cloudfront, PHP OpCache, Redis FPC, Redis Config, and Varnish (if enabled).
NOTE: CloudFront may take up to 15 minutes to clear all edge nodes.
Flushes only the PHP OpCache.
Clears the CloudFront CDN cache, and can take up to 15 minutes to complete.
Flushes Redis. Equivalent to running
redis-cli -h redis flushall.
Purges Varnish cache.
Returns the database credentials in JSON format.
Installs the latest Magento 2 code base.
NOTE: this will completely delete all data and replace the code base.
Adds PHP option values, such as "memory_limit." For example, to set the PHP memory limit to 4,096 megabytes, run
Removes PHP option values previously added using
Lists current PHP settings
Reloads nginx configs gracefully
Prepare a deployment for a B/G switch with ZDD
Perform B/G switch with ZDD
Stops crons gracefully (waits 60 seconds for completion before stopping the cron)
See also Zero-Downtime Deploys on STRATUS.