CloudPanel provides several helpful CLI commands that can be executed by site users via SSH. Here’s a quick reference to essential site user commands:
📌
System (File Permissions)- Reset Permissions (Directories & Files):
This command resets file and directory permissions recursively.
clpctl system😛ermissions:reset --directories=770 --files=660 --path=.
(Replace --path=. with your desired directory path.)📌
Database Management- Export Database (Backup):
Export your database with optional gzip compression.
# Compressed (.gz)
clpctl db:export --databaseName=my-database --file=dump.sql.gz
# Uncompressed
clpctl db:export --databaseName=my-database --file=dump.sql
- Import Database (Restore):
Import your database from a dump file.
clpctl db:import --databaseName=my-database --file=dump.sql.gz
📌
Varnish Cache Management- Purge Varnish Cache:
[LIST] - Purge entire cache:
CODE_BLOCK_4 - Purge specific cache tags:
CODE_BLOCK_5 - Purge specific URL:
CODE_BLOCK_6
[/LIST]
These commands empower you as a site user to efficiently manage permissions, databases, and caching on your CloudPanel-managed sites.