SlideShare una empresa de Scribd logo
1 de 19
Descargar para leer sin conexión
Awesome CLI
Tool for geeky Plesk admins
Unix only
Captain Obvious
A lot of time in console
Completion, aliases, own scripts
Plesk has rich CLI interface
There are some problems with it ;)
Not So Obvious
I waste spend
~50% of time at console
typing...
typing...
typing...
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)
Motivation
Previous problems
Book
Tool for own use
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
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
Command Suites Examples
git
svn
rails
rake
...
Available Commands
plesk help
plesk bin
plesk sbin
plesk db
plesk php
plesk conf
plesk log
plesk version
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	
  ...
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
Old Way
#	
  mysql	
  -­‐uadmin	
  -­‐p`cat	
  /etc/
psa/.psa.shadow`	
  psa
Welcome	
  to	
  the	
  MySQL	
  monitor...
...
Type	
  'help;'	
  or	
  'h'	
  for	
  help...
mysql>	
  
New Way
#	
  plesk	
  db
Welcome	
  to	
  the	
  MySQL	
  monitor...
...
Type	
  'help;'	
  or	
  'h'	
  for	
  help...
mysql>	
  
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	
  ...
New Way
#	
  plesk	
  bin	
  cl<TAB>
client	
  	
  	
  	
  	
  	
  	
  client_pref	
  	
  cloning
#	
  plesk	
  bin	
  client	
  -­‐-­‐create<TAB>
-­‐-­‐create	
  	
  	
  	
  	
  -­‐-­‐create-­‐gapps-­‐account
Results
Use it everyday by myself
Save time
Really like it (getting fun :))
Easy to extend with new commands
Integrated into Plesk 11.5
Try It!
On your installation of Plesk 11.5
Using one-click installer for older versions
Project Repo
https://github.com/sibprogrammer/plesk-ctl
Thank You
Questions & suggestions:
sibprogrammer@gmail.com

Más contenido relacionado

La actualidad más candente

Refactoring.the.ruby.way
Refactoring.the.ruby.wayRefactoring.the.ruby.way
Refactoring.the.ruby.way
Shouichi KAMIYA
 

La actualidad más candente (18)

Refactoring.the.ruby.way
Refactoring.the.ruby.wayRefactoring.the.ruby.way
Refactoring.the.ruby.way
 
Introduction to Ansible
Introduction to AnsibleIntroduction to Ansible
Introduction to Ansible
 
Compcon 2016 Workshop
Compcon 2016 WorkshopCompcon 2016 Workshop
Compcon 2016 Workshop
 
Docker
DockerDocker
Docker
 
Virtual Infrastructure
Virtual InfrastructureVirtual Infrastructure
Virtual Infrastructure
 
Modern Perl toolchain (help building microservices)
Modern Perl toolchain (help building microservices)Modern Perl toolchain (help building microservices)
Modern Perl toolchain (help building microservices)
 
Drupal from scratch
Drupal from scratchDrupal from scratch
Drupal from scratch
 
Installing Drupal 7 in Debian Environment
Installing Drupal 7 in Debian EnvironmentInstalling Drupal 7 in Debian Environment
Installing Drupal 7 in Debian Environment
 
Drupal7 MEMCACHE
Drupal7 MEMCACHE Drupal7 MEMCACHE
Drupal7 MEMCACHE
 
Hadoop presentation
Hadoop presentationHadoop presentation
Hadoop presentation
 
Less
LessLess
Less
 
PowerShell - PowerForensics
PowerShell - PowerForensicsPowerShell - PowerForensics
PowerShell - PowerForensics
 
Ansible basics workshop
Ansible basics workshopAnsible basics workshop
Ansible basics workshop
 
Getting instantly up and running with Docker and Symfony
Getting instantly up and running with Docker and SymfonyGetting instantly up and running with Docker and Symfony
Getting instantly up and running with Docker and Symfony
 
Puppet Intfrastructure as Code
Puppet Intfrastructure as CodePuppet Intfrastructure as Code
Puppet Intfrastructure as Code
 
Drupal cambs ansible for drupal april 2015
Drupal cambs ansible for drupal april 2015Drupal cambs ansible for drupal april 2015
Drupal cambs ansible for drupal april 2015
 
Effective ansible
Effective ansibleEffective ansible
Effective ansible
 
Composer Tutorial (PHP Hampshire Sept 2013)
Composer Tutorial (PHP Hampshire Sept 2013)Composer Tutorial (PHP Hampshire Sept 2013)
Composer Tutorial (PHP Hampshire Sept 2013)
 

Similar a Plesk CLI Wrapper

PM : code faster
PM : code fasterPM : code faster
PM : code faster
PHPPRO
 
Vmware Command Line
Vmware   Command LineVmware   Command Line
Vmware Command Line
lifeit
 
From Dev to DevOps - Codemotion ES 2012
From Dev to DevOps - Codemotion ES 2012From Dev to DevOps - Codemotion ES 2012
From Dev to DevOps - Codemotion ES 2012
Carlos Sanchez
 

Similar a Plesk CLI Wrapper (20)

IT Automation with Ansible
IT Automation with AnsibleIT Automation with Ansible
IT Automation with Ansible
 
PM : code faster
PM : code fasterPM : code faster
PM : code faster
 
How we used ruby to build locaweb's cloud (http://presentations.pothix.com/ru...
How we used ruby to build locaweb's cloud (http://presentations.pothix.com/ru...How we used ruby to build locaweb's cloud (http://presentations.pothix.com/ru...
How we used ruby to build locaweb's cloud (http://presentations.pothix.com/ru...
 
Hadoop meet Rex(How to construct hadoop cluster with rex)
Hadoop meet Rex(How to construct hadoop cluster with rex)Hadoop meet Rex(How to construct hadoop cluster with rex)
Hadoop meet Rex(How to construct hadoop cluster with rex)
 
Vmware Command Line
Vmware   Command LineVmware   Command Line
Vmware Command Line
 
Automating complex infrastructures with Puppet
Automating complex infrastructures with PuppetAutomating complex infrastructures with Puppet
Automating complex infrastructures with Puppet
 
PowerShell Remoting
PowerShell RemotingPowerShell Remoting
PowerShell Remoting
 
Introduction to WP-CLI: Manage WordPress from the command line
Introduction to WP-CLI: Manage WordPress from the command lineIntroduction to WP-CLI: Manage WordPress from the command line
Introduction to WP-CLI: Manage WordPress from the command line
 
From Dev to DevOps - Codemotion ES 2012
From Dev to DevOps - Codemotion ES 2012From Dev to DevOps - Codemotion ES 2012
From Dev to DevOps - Codemotion ES 2012
 
Automating Complex Setups with Puppet
Automating Complex Setups with PuppetAutomating Complex Setups with Puppet
Automating Complex Setups with Puppet
 
J+s
J+sJ+s
J+s
 
Puppet @ Seat
Puppet @ SeatPuppet @ Seat
Puppet @ Seat
 
UnixShells.ppt
UnixShells.pptUnixShells.ppt
UnixShells.ppt
 
Really useful linux commands
Really useful linux commandsReally useful linux commands
Really useful linux commands
 
Ultimate Unix Meetup Presentation
Ultimate Unix Meetup PresentationUltimate Unix Meetup Presentation
Ultimate Unix Meetup Presentation
 
Ansible presentation
Ansible presentationAnsible presentation
Ansible presentation
 
2009 cluster user training
2009 cluster user training2009 cluster user training
2009 cluster user training
 
Automating with Ansible
Automating with AnsibleAutomating with Ansible
Automating with Ansible
 
Testing Wi-Fi with OSS Tools
Testing Wi-Fi with OSS ToolsTesting Wi-Fi with OSS Tools
Testing Wi-Fi with OSS Tools
 
Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)
 

Último

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Último (20)

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

Plesk CLI Wrapper

  • 1. Awesome CLI Tool for geeky Plesk admins Unix only
  • 2. 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
  • 9. Available Commands plesk help plesk bin plesk sbin plesk db plesk php plesk conf plesk log plesk version
  • 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
  • 19. Thank You Questions & suggestions: sibprogrammer@gmail.com