Developer Tools - GreenGeeks Support https://www.greengeeks.com/support/topic/developer-tools/ Wed, 18 Mar 2020 17:10:51 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.4 Getting started with WP-CLI https://www.greengeeks.com/support/article/getting-started-with-wp-cli/ https://www.greengeeks.com/support/article/getting-started-with-wp-cli/#respond Mon, 08 Apr 2019 23:00:14 +0000 https://www.greengeeks.com/support/?p=13560 WP-CLI is the WordPress Command-Line Interface. If you manage multiple WordPress sites and are comfortable with a command line interface, WP-CLI is for you. But even if you’ve never used a CLI before, WP-CLI may still have a place in your life. WP-CLI is installed and ready to use on...

The post Getting started with WP-CLI appeared first on GreenGeeks Support.

]]>
WP-CLI is the WordPress Command-Line Interface. If you manage multiple WordPress sites and are comfortable with a command line interface, WP-CLI is for you. But even if you’ve never used a CLI before, WP-CLI may still have a place in your life.

WP-CLI is installed and ready to use on all of the GreenGeeks web servers, and works on WordPress Version 3.7 or later running on PHP 5.4 or later.

Before we get into what you can do with WP-CLI, we should talk about connecting to your website in a way that allows you to use a CLI. There are a couple of ways to do that. First is a traditional command line shell that you open up on your computer. We have a step by step tutorial to help you get a shell connection up and running.

Note: When you’re first getting started with WP-CLI you may want to set up a test WordPress installation, or even a sandbox or development environment so you are free to experiment and make mistakes without causing problems on a live WordPress website.

Once you’ve established your connection (preferably to a WordPress installation that you can afford to break), here are a few useful WP-CLI commands to try.

wp plugin update –all
Downloads and updates all installed plugins to their latest version. wp plugin update documentation.

wp core update
Update your WordPress installation. Can also be used with a version flag to roll back a minor version update. For example, updated to 5.1 and something’s not quite right? Revert to the previous version with wp core update –version=5.0.4. wp core update documentation.

wp user update admin@ggexample.com –user_pass=naQRqmRa
This example (with the “user_pass” flag) resets a user password. In the example above, “admin@ggexample.com” is being given the “naQRqmRa” password. wp user update documentation.

wp core download
Downloads the latest version of WordPress (for a new installation). Can be used with wp config create, wp db create, and wp core install to do a complete WordPress set up and configuration. wp core download documentation.

wp scaffold child-theme sample-theme –parent_theme=twentysixteen
Creates a child theme folder with functions.php and style.css files. In the example above, “sample-theme” is the name of the child theme, and “twentysixteen” is the parent theme. wp scaffold child-theme documentation.

Finally, here’s a list of all WP-CLI commands.

The post Getting started with WP-CLI appeared first on GreenGeeks Support.

]]>
https://www.greengeeks.com/support/article/getting-started-with-wp-cli/feed/ 0
How to Install Drush https://www.greengeeks.com/support/article/how-do-i-install-drush/ https://www.greengeeks.com/support/article/how-do-i-install-drush/#comments Tue, 21 May 2013 16:14:57 +0000 https://www.greengeeks.com/support/?p=2874 Drush is a command-line utility for advanced users administering Drupal websites. Check the compatibility chart to see which version of Drush is right for your version of Drupal. How to install Drush (dev-master version) on GreenGeeks Request SSH access for your account. SSH to your GreenGeeks Account. Run the following commands in...

The post How to Install Drush appeared first on GreenGeeks Support.

]]>
Drush is a command-line utility for advanced users administering Drupal websites.

Check the compatibility chart to see which version of Drush is right for your version of Drupal.

How to install Drush (dev-master version) on GreenGeeks

  1. Request SSH access for your account.
  2. SSH to your GreenGeeks Account.
  3. Run the following commands in this order:

Go to your home directory:

cd

Create the Drush directory:

mkdir drush

Go to the Drush directory:

cd drush

Download the Drush installer:

curl -sS https://getcomposer.org/installer | php

Install:

./composer.phar require drush/drush:dev-master

Add the alias line to the bottom of your .bashrc file:

cd
echo "alias drush='~/drush/vendor/bin/drush'" >> .bashrc

Reload your profile:

source .bashrc

To install a specific version of Drush

In this example, we’ll install version 8. The commands that are different from the above installation steps are green.

Go to your home directory:

cd

Create the Drush directory:

mkdir drush8

Go to the Drush directory:

cd drush8

Download the Drush installer:

curl -sS https://getcomposer.org/installer | php

Install:

./composer.phar require "drush/drush:8.*"

Add the alias line to the bottom of your .bashrc file:

cd
echo "alias drush8='~/drush8/vendor/bin/drush'" >> .bashrc

Reload your profile:

source .bashrc

If you encounter errors installing Drush

When you run the last command, you should see Drush running correctly. However, you may encounter shell_exec errors that our support team will need to address for you.

If you have any problems installing Drush—including any shell_exec errors—please contact our support team, and we will be happy to help. Opening a support ticket in GreenGeeks is the best way to reach us.

The post How to Install Drush appeared first on GreenGeeks Support.

]]>
https://www.greengeeks.com/support/article/how-do-i-install-drush/feed/ 13
Using Git to Manage Software https://www.greengeeks.com/support/article/using-git-to-manage-software/ https://www.greengeeks.com/support/article/using-git-to-manage-software/#respond Tue, 21 May 2013 16:14:57 +0000 https://www.greengeeks.com/support/?p=2834 Git is an open source Version Control System. It can track changes in content from external repositories such as GitHub. To use Git commands you will log in to your hosting account using an SSH client such as PuTTY. If you see a message that SSH is not enabled when...

The post Using Git to Manage Software appeared first on GreenGeeks Support.

]]>
Git is an open source Version Control System. It can track changes in content from external repositories such as GitHub.

To use Git commands you will log in to your hosting account using an SSH client such as PuTTY.

If you see a message that SSH is not enabled when you attempt to connect, please contact us to get access.

Cloning a Project

To clone or copy a project, use the following command from your public_html directory.

git clone url directory

For example, if you wanted to clone a copy of the Forget Your Resume script from GitHub, you would do the following.

cd public_html
git clone https://github.com/ebinnion/Forget-Your-Resume.git resume

That will load the software into a /resume folder in public_html and initiate a local copy of the software. From there, follow the developer’s instructions for manual installation.

Updating a Project

To keep your software up to date you have to tell your local copy to update itself. So for our example “Forget Your Resume” installation the commands are:

cd public_html/resume
git pull

That will poll the remote server with the clone command and download and merge any changes. You may want to make a copy of any configuration files before running this command as they will be overwritten.

For more in-depth help regarding Git and all of its commands, you may want to read through the quick reference guide or the official documentation.

The post Using Git to Manage Software appeared first on GreenGeeks Support.

]]>
https://www.greengeeks.com/support/article/using-git-to-manage-software/feed/ 0
Does GreenGeeks Support Git? https://www.greengeeks.com/support/article/does-greengeeks-support-git/ https://www.greengeeks.com/support/article/does-greengeeks-support-git/#respond Tue, 21 May 2013 16:14:57 +0000 https://www.greengeeks.com/support/?p=2848 Yes, GreenGeeks supports GIT on our shared and reseller accounts. What is Git? Git is an open source version control system designed to make version control and the distribution of software quick and easy. How do I use Git? We have written a number of tutorials on installing and using...

The post Does GreenGeeks Support Git? appeared first on GreenGeeks Support.

]]>
Yes, GreenGeeks supports GIT on our shared and reseller accounts.

What is Git?

Git is an open source version control system designed to make version control and the distribution of software quick and easy.

How do I use Git?

We have written a number of tutorials on installing and using Git. The best place to get started is with Git: What it is and How it Works.

What Makes Git Secure at GreenGeeks?

GreenGeeks uses file system isolation tools and container-based technologies to protect your data. Check out our blog post about what makes our servers different to learn how GreenGeeks is unique when it comes to servers and security.

If you have any questions, please open a ticket in GreenGeeks.

The post Does GreenGeeks Support Git? appeared first on GreenGeeks Support.

]]>
https://www.greengeeks.com/support/article/does-greengeeks-support-git/feed/ 0