Skip to content
NewRedesigned blogFeedback
Jigar Karangiya

Check Disk Usage with magento-cloud mount:size Command

Running a store on Adobe Commerce Cloud (Magento Cloud) means working with multiple environments like production , staging , and integration.

Check Disk Usage with magento-cloud mount:size Command
Written by
JKJigar Karangiya
Published
Reading time
2 min read

Jigar Karangiya · · 2 min read

Running a store on Adobe Commerce Cloud (Magento Cloud) means working with multiple environments like production , staging , and integration. Each environment has limited disk space. If storage gets full, deployments may fail or the site may crash.

Luckily, Adobe provides a simple CLI command:

text
magento-cloud mount:size

This command shows the storage usage of different mounts (like var, pub/media, or tmp) in your cloud project. Let’s break it down with examples.

Syntax of the Command

text
magento-cloud mount:size -p <project-id> -e <environment>

Example: Checking Disk Usage in Staging

Suppose you want to check the staging environment of a project with ID phoshzbzzzzvm. Run:

text
magento-cloud mount:size -p phoshzbzzzzvm -e staging

Sample Output:

Figure 01

This helps you see where your storage is being consumed. For example, pub/media often grows large due to product images.

Common Use Cases

  • Before Deployment – Check free space to avoid failed builds.
  • Debugging Issues – Identify if logs, media, or cache are consuming too much space.
  • Proactive Monitoring – Regularly check storage usage in staging/production.

Best Practices

  • Run magento-cloud mount:size weekly for production environments.
  • Clean unused logs and reports if /var is filling up.
  • Use a CDN or remote storage for pub/media if it grows too large.
  • Contact Adobe support if you need more allocated storage.

Conclusion

The magento-cloud mount:size command is a quick and reliable way to check disk usage per environment in Adobe Commerce Cloud. By using the project ID (-p) and environment (-e) flags, you can monitor storage consumption in staging, production, or integration. Regularly running this command helps prevent downtime and keeps your Magento store healthy.

FAQs

Can I runmagento-cloud mount:size without project and environment flags?

Yes, but it will use your default linked project and environment.

How do I find my project ID?

Use magento-cloud project:list to see all available project IDs.

What if I need to increase disk space?

You must request an upgrade from Adobe Commerce Cloud support.

External References

You may also like,

Backups (snapshots) in Magento Commerce Cloud

Securely render Javascript inside Magento 2 template files using…

How to Sync Magento 2 Media Files Using rsync on Adobe…

Thank You.

Keep reading
All posts

01 · 5 min · Shares Adobe Commerce on Cloud, DevOps

Fastly VCL for Adobe Commerce

If you run Adobe Commerce on Cloud, Fastly is already in the path for staging and production. Most of the time you touch cache settings in Admin and never look at VCL.

5 min

02 · 11 min · Shares Adobe Commerce on Cloud, DevOps

Syncing Adobe Commerce catalog to Optimizer with the ACO Connector

If you already read my Adobe Commerce Optimizer overview, you know the pitch: keep Adobe Commerce as your system of record for cart, checkout, and orders, and let Commerce Optimizer handle discovery, search, recommendations, and the headless storefront layer.

11 min

03 · 14 min · Shares Adobe Commerce on Cloud, DevOps

Adobe Commerce Cloud performance optimization for Real

Most Magento 2 performance posts read the same. Enable cache, install Redis, run reindex, the end. Real stores on Adobe Commerce on cloud infrastructure break in messier ways.

14 min

Newsletter

New Magento tutorials, straight to your inbox

Code examples, performance tips, and fixes for common Magento issues. No spam.

Subscribe