Useful CloudPanel Site User Commands (CLI)
Etiketler:uptime
2025-03-22 14:50:11
#1
As a site user on CloudPanel, what useful commands are available to me for managing file permissions, databases, and the Varnish cache?
2025-03-22 14:51:47
#2
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.
Yazdığımız şeyler bizi temsil eder, Efendilik iyidir.
Please Login or Register.
Currently 2 people reading this topic. (2 guest(s))
Currently reading 0
Reacted 1
Rootali