CyberPanel CLI

User Functions
1. Daftarkan User Baru

cyberpanel createUser --firstName Cyber --lastName Panel --email email@cyberpanel.net --userName cyberpanel --password securepassword --websitesLimit 10 --selectedACL user --securityLevel HIGH

Keterangan
–websitesLimit – untuk Limit Jumlah Website, Seperti jika membuat user dengan tipe reseller.
–selectedACL – untuk menentukan ACL sebagai admin baru, reseller, user, atau Custom ACL yang dibuat di CyberPanel CP
–securityLevel – untuk memilih keamanan HIGH atau LOW

2. Delete User

cyberpanel deleteUser --userName cyberpanel

3. Suspend User
Suspend a user

cyberpanel suspendUser --userName cyberpanel --state SUSPEND

Unsuspend a user

cyberpanel suspendUser --userName cyberpanel --state UNSUSPEND

4. Edit User

cyberpanel editUser --userName cyberpanel --firstName Cyber --lastName Usman --email email@cyberpanel.net --password securepassword --securityLevel HIGH

Understanding Arguments

–securityLevel – Can be either HIGH or LOW

5. List Users

cyberpanel listUsers
Output JSON

{

   "status":1,

   "fetchStatus":1,

   "error_message":"None",

   "data":"[{\"id\": 3, \"name\": \"cyberpanel\", \"owner\": \"admin\", \"acl\": \"user\", \"diskUsage\": \"0MB\", \"websites\": 10, \"state\": \"SUSPENDED\"},{\"id\": 5, \"name\": \"cyberpanel1\", \"owner\": \"admin\", \"acl\": \"user\", \"diskUsage\": \"0MB\", \"websites\": 10, \"state\": \"ACTIVE\"}]"

}

Related

Halo dunia!

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy…

Read More

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan.