![]() |
|
Guide clpctl Cheat Sheet: Useful CloudPanel Commands for Everyday Admin - Printable Version +- AdminsForum (https://adminsforum.com) +-- Forum: Free & open-source control panels (https://adminsforum.com/Forum-free-open-source-control-panels) +--- Forum: CloudPanel (https://adminsforum.com/Forum-cloudpanel) +---- Forum: CloudPanel Guides & Tutorials (https://adminsforum.com/Forum-cloudpanel-guides-tutorials) +----- Forum: CloudPanel CLI (clpctl) & Automation Guides (https://adminsforum.com/Forum-cloudpanel-cli-clpctl-automation-guides) +----- Thread: Guide clpctl Cheat Sheet: Useful CloudPanel Commands for Everyday Admin (/Thread-guide-clpctl-cheat-sheet-useful-cloudpanel-commands-for-everyday-admin) |
clpctl Cheat Sheet: Useful CloudPanel Commands for Everyday Admin - JAY - 10-19-2026 clpctl cheat sheet: CloudPanel commands you'll actually use clpctl is CloudPanel's command-line tool. Everything you click in the CloudPanel dashboard, like creating sites, databases and SSL certificates, you can also do with one line in the terminal. That's handy when the panel won't load, when you manage many sites, or when you want to script repeat jobs. This is a practical cheat sheet, grouped by task, with a short explanation for each command. Run them as root unless noted. In every example, replace Code: YOUR-STRONG-PASSWORDTip: to see every option for a command, add Code: --helpCode: clpctl site:add:php --helpLocked out of the panel Reset a CloudPanel user's password Code: clpctl user:reset:password --userName=john.doe --password='YOUR-STRONG-PASSWORD'Code: clpctl user:disable:mfa --userName=john.doeCode: clpctl user:listCreate sites PHP site (use Code: clpctl vhost-templates:listCode: clpctl site:add:php --domainName=www.example.com --phpVersion=8.4 --vhostTemplate='Generic' --siteUser=john --siteUserPassword='YOUR-STRONG-PASSWORD'Code: clpctl site:add:nodejs --domainName=app.example.com --nodejsVersion=22 --appPort=3000 --siteUser=appuser --siteUserPassword='YOUR-STRONG-PASSWORD'Code: clpctl site:add:python --domainName=py.example.com --pythonVersion=3.12 --appPort=8090 --siteUser=pyuser --siteUserPassword='YOUR-STRONG-PASSWORD'Code: clpctl site:add:static --domainName=static.example.com --siteUser=staticuser --siteUserPassword='YOUR-STRONG-PASSWORD'Code: clpctl site:add:reverse-proxy --domainName=tool.example.com --reverseProxyUrl='http://127.0.0.1:8000' --siteUser=tooluser --siteUserPassword='YOUR-STRONG-PASSWORD'Delete a site (asks you to type "yes"; this removes the site's files) Code: clpctl site:delete --domainName=www.example.comSSL certificates Free Let's Encrypt certificate (for www.example.com you automatically get example.com too) Code: clpctl lets-encrypt:install:certificate --domainName=www.example.comCode: clpctl lets-encrypt:install:certificate --domainName=www.example.com --subjectAlternativeName=shop.example.comCode: clpctl site:install:certificate --domainName=www.example.com --privateKey=/root/ssl/key.pem --certificate=/root/ssl/cert.pemDatabases Create a database and user for a site Code: clpctl db:add --domainName=www.example.com --databaseName=shop_db --databaseUserName=shop_user --databaseUserPassword='YOUR-STRONG-PASSWORD'Code: clpctl db:export --databaseName=shop_db --file=shop_db.sql.gzCode: clpctl db:import --databaseName=shop_db --file=shop_db.sql.gzCode: clpctl db:show:master-credentialsProtect the CloudPanel login Add an extra browser password in front of the panel Code: clpctl cloudpanel:enable:basic-auth --userName=john.doe --password='YOUR-STRONG-PASSWORD'Code: clpctl cloudpanel:disable:basic-authCloudflare Refresh Cloudflare's IP list (CloudPanel already does this daily; useful after you start using "Cloudflare only") Code: clpctl cloudflare:update:ipsPanel users Add an admin user Code: clpctl user:add --userName='jane' --email='[email protected]' --firstName='Jane' --lastName='Doe' --password='YOUR-STRONG-PASSWORD' --role='admin' --timezone='UTC' --status='1'Code: clpctl user:add --userName='client1' --email='[email protected]' --firstName='Client' --lastName='One' --password='YOUR-STRONG-PASSWORD' --role='user' --sites='example.com' --timezone='UTC' --status='1'Code: clpctl user:delete --userName='client1'Safety tips
Sources (checked October 2026): CloudPanel CLI: root user commands ยท CloudPanel CLI interface New to clpctl? Start here: Getting started with the clpctl command |