Skip to main content

Site User Commands

Site User Commands

System

Permissions Reset

To reset the permissions of a file or directories, log in via SSH and modify the command below to your needs:

clpctl system:permissions:reset --directories=770 --files=660 --path=.

Database

Database Export

With the command db:export, you can export a database as dump.

Compression

The database dump will be gzipped if you add .sql.gz at the end of the file name. If you want to export the database uncompressed, use .sql.

clpctl db:export --databaseName=my-database --file=dump.sql.gz

Database Import

To import a database, go to the database dump's directory and use the following command to import.

clpctl db:import --databaseName=my-database --file=dump.sql.gz

Varnish Cache

Purge

With the command varnish-cache:purge, you can purge everything, specific cache tags or a single url.

To purge the entire cache, use the following command:

clpctl varnish-cache:purge --purge=all

Specific cache tags, separated by a comma, can be purged with the following command:

clpctl varnish-cache:purge --purge='tag1,tag2'

In case you want to purge a single url only:

clpctl varnish-cache:purge --purge='https://www.domain.com/site.html'