Más contenido relacionado La actualidad más candente (18) Similar a Plesk CLI Wrapper (20) Plesk CLI Wrapper2. Captain Obvious
A lot of time in console
Completion, aliases, own scripts
Plesk has rich CLI interface
There are some problems with it ;)
3. Not So Obvious
I waste spend
~50% of time at console
typing...
typing...
typing...
4. Typical Commands
mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa
/usr/local/psa/bin/domain ...
/usr/local/psa/bin/sw-engine-pleskrun /usr/local...
tail -f /var/log/sw-cp-server/error_log
...
(taken from history file)
6. Welcome To “plesk”
Plesk CLI Wrapper
One utility named “plesk” for every task
Self-documenting
Manual page (man plesk, right!)
Bundled with Plesk 11.5
One-click installer for older versions
7. Commands vs. Suites
Too much commands
/usr/local/psa/bin/domain
mysql
cat, tail and etc.
Unification
plesk - single command for everything
plesk help subcommand - self documenting
10. Old Way
#
cat
/etc/issue
CentOS
release
5.9
(Final)..
#
cat
/usr/local/psa/version
11.5.22
CentOS
5
115130325.19
#
cat
/usr/local/psa/.revision
319415
#
uname
-‐a
Linux
hp-‐demo.sb.plesk.ru
...
11. New Way
#
plesk
version
Product
version:
11.5.22
Build
date:
2013/03/25
19:00
Build
target:
CentOS
5
Revision:
319415
Architecture:
32-‐bit
Wrapper
version:
1.0
12. Old Way
#
mysql
-‐uadmin
-‐p`cat
/etc/
psa/.psa.shadow`
psa
Welcome
to
the
MySQL
monitor...
...
Type
'help;'
or
'h'
for
help...
mysql>
13. New Way
#
plesk
db
Welcome
to
the
MySQL
monitor...
...
Type
'help;'
or
'h'
for
help...
mysql>
14. Old Way
#
/usr/local/psa/bin/sw-‐engine-‐
pleskrun
/usr/local/psa/bin/client
-‐h
Usage:
client
command
<login_name>
..
Available
commands:
-‐-‐create
or
-‐c
<login_name>
Creates
a
new
customer
account..
#
/usr/local/psa/bin/sw-‐engine-‐
pleskrun
/usr/local/psa/bin/client
-‐-‐
create
...
15. New Way
#
plesk
bin
cl<TAB>
client
client_pref
cloning
#
plesk
bin
client
-‐-‐create<TAB>
-‐-‐create
-‐-‐create-‐gapps-‐account
16. Results
Use it everyday by myself
Save time
Really like it (getting fun :))
Easy to extend with new commands
Integrated into Plesk 11.5
17. Try It!
On your installation of Plesk 11.5
Using one-click installer for older versions