Skip to content

tecking/wp-cli.setup.sh

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

wp-cli.setup.sh

What's this?

"wp-cli.setup.sh" is a shell script to install WP-CLI into common hosting servers.

Requires

A hosting server that SSH access is allowed.

Installation and usage

  1. Connect to hosting server via SSH
  2. Run wget --no-check-certificate https://raw.githubusercontent.com/tecking/wp-cli.setup.sh/master/wp-cli.setup.sh
    (you can download the script)
  3. Run chmod +x wp-cli.setup.sh
  4. Run ./wp-cli.setup.sh
  5. Following the message, run source ~/.cshrc or source ~/.bash_profile

Notice

  • Please use At Your Own Risk
  • Tested environment (hosting servers)
  • WP-CLI (wp-cli.phar) is downloaded in ~/usr/local/bin directory
  • Tab completions file for bash (wp-completion.bash) is downloaded in ~/ directory
  • Once WP-CLI is installed, you can delete the script
  • The script is usable under the following environment, maybe
    • "sh" is available (you can check with which sh command)
    • "wget" is available (the script checks wget is usable or not)
    • Login shell is "bash" or "csh"

Changelog

  • 0.3.0 (2014-12-05)
    • Check existence for wget command
  • 0.2 (2014-11-30)
    • Opening to the public

License

MIT License

About

A shell script to install WP-CLI into general hosting servers.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages