CyberPanel Community

Command to add a Website, User... features of CyberPanel via SSH Terminal

du
duy13 #1

Hi,
What is the command to add a website, user, and features of CyberPanel via the commands in the linux ssh terminal?
Does Cyberpanel support that? Or just support that via WEBGUI?

Thank you for your attention! :*

13 replies
us
usmannasir #2

For now, it’s from GUI only but has planned to add this functionality via command line.

du
duy13 #3

Thanks!

vi
viazra #4

hi bro, it is necessary for development features using composer / git

[x] enable ssh

when creating user, with chroot/jailed
with directory structure as follow;
/home/user/
or /home/user/domain.com/
or /home/user/domain.com/public_html
in /etc/passwd would be
user:x:5001:5001::/home/user:/bin/bash

as currently
mydomain:x:5001:5001::/home/mydomain.com:/bin/bash


as installed on my server vps centos 7, and have a plan to migrate from vestacp/sentora to this CyberPanel (cpanel :smile: ) with no error…

du
duy13 #5

I hope the control commands for Cyberpanel (add, delwebsite, user …) will soon be released. Some Devs can write 3rd party softwares like additional plugins for Cyberpanel :slight_smile:

Cy
CyberPanel #6

We will be doing this shortly.

fa
fahriuzun #7

would be awesome to create users, ftp accounts via terminal

fa
fahriuzun #9
would be awesome to create users, ftp accounts via terminal

https://docs.cyberpanel.net/doku.php?id=cli

Thanks! is it possible to give custom path and other than admin privilege ? Because --owner user throws error of

0,Administrator matching query does not exist

fa
fahriuzun #10

actually on FTPUtilities.submitFTPCreation we can pass path to the function if you add that in createFtpAccount but it won’t via the cli

us
usmannasir #11

I am not sure how you are using the command but this works on my end

cyberpanel createFTPAccount --domainName domain.com --userName cyberpanel --password cyberpanel --owner admin

Please note the --owner parameter, you must give it an existing user from cyberpanel.

fa
fahriuzun #12

above cli command works but can’t specify the path. After looking your repo on github i realized that the class has path args actually but ‘None’ is passing by default

need to do something like:

cyberpanel createFTPAccount --domainName domain.com --userName cyberpanel --password cyberpanel --owner admin -path /some/other/path

Cy
CyberPanel #13

Alright. For now default path of /home/domain.com/ is used.

Sign in to reply