-
Notifications
You must be signed in to change notification settings - Fork 0
/
HostingER-cpl-cli-syntax.txt
54 lines (43 loc) · 2.47 KB
/
HostingER-cpl-cli-syntax.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
CloudPanel CLI
cloudflare
clpctl cloudflare:update:ips
cloudpanel
clpctl cloudpanel:enable:basic-auth --userName=john.doe --password='password123'
clpctl cloudpanel:disable:basic-auth
clpctl cloudpanel:set:release-channel --channel='test'
db
clpctl db:show:master-credentials
clpctl db:add --domainName=www.domain.com --databaseName=my-database --databaseUserName=john --databaseUserPassword='!secretPassword!'
clpctl db:export --databaseName=my-database --file=dump.sql.gz
clpctl db:import --databaseName=my-database --file=dump.sql.gz
clpctl db:delete --databaseName=my-database
lets-encrypt
clpctl lets-encrypt:install:certificate --domainName=www.domain.com --subjectAlternativeName=domain1.com,www.domain1.com
site
// Adding a Node.js Site
clpctl site:add:nodejs --domainName=www.domain.com --nodejsVersion=20 --appPort=3000 --siteUser=john --siteUserPassword='!secretPassword!'
// Adding a Static HTML Site
clpctl site:add:static --domainName=www.domain.com --siteUser=john --siteUserPassword='!secretPassword!'
// Adding a PHP Site
clpctl site:add:php --domainName=www.domain.com --phpVersion=8.3 --vhostTemplate='Generic' --siteUser=john --siteUserPassword='!secretPassword!'
// Adding a Python Site
clpctl site:add:python --domainName=www.domain.com --pythonVersion=3.9 --appPort=8080 --siteUser=john --siteUserPassword='!secretPassword!'
// Adding a Reverse Proxy
clpctl site:add:reverse-proxy --domainName=www.domain.com --reverseProxyUrl='http://127.0.0.1:8000' --siteUser=john --siteUserPassword='!secretPassword!'
clpctl site:delete --domainName=www.domain.com
clpctl site:install:certificate --domainName=www.domain.com --privateKey=/path/to/private.key --certificate=/path/to/certificate.crt --certificateChain=/path/to/chain.crt
system
clpctl system:permissions:reset --directories=770 --files=660 --path=.
user
clpctl user:add --userName='john.doe' --email='john.doe@domain.com' --firstName='John' --lastName='Doe' --password='!password!' --role='user' --sites='domain.com,domain.io' --timezone='Europe/Berlin' --status='1'
clpctl user:delete --userName='john.doe'
clpctl user:list
clpctl user:reset:password --userName='john.doe' --password='!newPassword!'
clpctl user:disable:mfa --userName='john.doe'
vhost-template
clpctl vhost-template:add --name='My Application' --file=/tmp/template.tpl
clpctl vhost-template:delete --name='My Application'
clpctl vhost-template:view --name='My Application'
vhost-templates
clpctl vhost-templates:import
clpctl vhost-templates:list