Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : Staging from CLI command-line (remote)



Threaded Mode | Print  

 Staging from CLI command-line (remote), When that feature will be available ? (5 Replies, Read 9960 times)
adpgroup
Group: Member
Post Group: Newbie
Posts: 3
Status:
Hello everyone !
I'd like to automate the process of :
  • pushing staging to live
  • deleting staging
  • re-creating a new staging

But as I can see on page softaculous.com/docs/enduser/create-staging/ :
"NOTE : Stage is not supported on Softaculous Remote at the moment. "

Can someone tell me if that's somewhere near on the roadmap ?
Or has any alternative ?

Thanks !
IP: --   

Staging from CLI command-line (remote)
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5652
Status:
Hi,

Sorry for the delay in response.

Softaculous Remote does support Staging and Push to Live. It looks like the docs were not updated. We will update it by EOD today.

Do let us know if you have any questions.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

Staging from CLI command-line (remote)
adpgroup
Group: Member
Post Group: Newbie
Posts: 3
Status:
Well, that's good news !
Thanks @Brijesh !

I'll wait until tomorrow to see how that can be done then.
IP: --   

Staging from CLI command-line (remote)
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5652
Status:
Hi,

It looks like the docs were updated but we forgot to inform you :
https://www.softaculous.com/docs/enduser/create-staging/

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

Staging from CLI command-line (remote)
adpgroup
Group: Member
Post Group: Newbie
Posts: 3
Status:
Hi Brijesh,
Thanks for your answer, but it doesn't help me :

I found how to create a staging environment using API :
https://www.softaculous.com/docs/api/api/#staging-an-installed-script

but there's no documentation about how to create a staging environment using CLI :
https://www.softaculous.com/docs/cli/
https://www.softaculous.com/docs/developers/softaculous-remote/

although there is a command that looks like :
Code
cli.php --staging --insid=26_57850 --ssk=ybRk4UO5rrEGphksZBvMNx2DucXBrFXd --backgrounding=1


Note : I tried :
Code
/usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php --help
Welcome to Softaculous Command-line Interface.
Available Commands :

--install        For Installing an application.
--upgrade        For Upgrading an installed application.
--import        For Importing an installed application in to Softaculous.

For Support Please Contact us at : support@softaculous.com


But as you can see, this is not very helpful either.

Can you please help me finding the way to create a staging using CLI please ?

Thanks !
IP: --   

Staging from CLI command-line (remote)
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5652
Status:
Hi,

Sorry for the delay in response.

At the moment CLI is not available to create a Staging instance. You can use the API.

You can use the root API key and pass and pass the parameter :
&loginAs=USERNAME in the URL which will perform the task on user's session. So you can use the same API credentials for all users just change the username in the parameter.

E.g. :
Code
curl -X POST -d 'softsubmit=1' -d 'softproto=3' -d 'softdomain=example.com' -d 'softdirectory=wpstaging' -d 'softdb=wpstaging' -d 'dbusername=wpstaging' -d 'dbuserpass=wpstaging' -d 'hostname=localhost' https://your.softaculous.com/index.php?api_key=TESTAPIKEY&api_pass=PASSPASSPASSPASSPASSPASSPASSPASS&loginAs=user1&api=json&act=staging&insid=26_12345


-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 23, 2024, 3:43 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.042