I wanted to create create a set of tools to be able to create/modify/delete domains from the command line.
This approach will be most practical when doing migrations from other control panels for example, with the list of domains+passwords, you'd be able to replicate the system in a few minutes.
There is some documentation about usage at the dokuwiki
here.
For any suggestions, modifications of the code,etc .. post it here or edit the wiki, so it can be useful for us all
Contributing code
If you want to test and improve the most current code, you can connect to:
http://bitbucket.org/aseques/ispcp-cli/src
UPDATE
Fixed the creation of TXT dns entries
See CHANGELOG to view the full list of changes
It's designed to work at least with the current 1.0.7 (there are older working versions too)
You can call it something like:
php domain.php --action create_domain --created_by "reseller" --domain "example.com" --password "password25" --hosting_plan "FullPlan"
To create the hosting for the domain example.com using the template FullPlan and with the admin password password25, note that when creating a domain, the name of the admin and the domain will be the same (due to the script limitations)
or
php domain.php --action create_ftp --created_by "reseller" --domain "example.com" --password "password25" --hosting_plan "FullPlan" --user "username"
To create the ftp account username@example.com for the previous domain.
To check the usual syntax of many of the commands, you can user the verify_cli.sh that will create a sample domain with most of the features..
It has been extensively tested, and it shouldn't break anything.
For anyone interested in using the script, I'm not a programmer so the code probably will hurt your eyes, any advice will be taken into consideration.
I hope it will be of use to you.
UPDATE: New features are included in every new release of this scripts, acording with the new features in ispcp, but the syntax and the core functionality is basically the same.
There is the version working in ispcp 1.0.3.1
scripts_1_0_3_1.tar.gz (Size: 14.86 KB / Downloads: 24)
There is the version working for ispcp 1.0.4
scripts_1_0_4.tar.gz (Size: 14.89 KB / Downloads: 40)
The version for ispcp 1.0.5 and 1.0.6
scripts_1_0_5.tar.gz (Size: 12.99 KB / Downloads: 35)
The version for 1.0.7 and current trunk
scripts_1_0_7.tar.gz (Size: 14.26 KB / Downloads: 95)
NOTE: For the version working on 1.0.0 systems send me a PM, it's obsoleted and might confuse people.