Site icon Hip-Hop Website Design and Development

Cheap WordPress maintenance support plansEasy: Installing Cheap WordPress maintenance support plans Console in an Existing Cheap WordPress maintenance support plans 8 Project

WordPress maintenance support plans Console is a fantastic tool for helping to write WordPress maintenance support plans 8 plugins; of that there is little debate. Its “generate” functionality takes much of the pain out of setting up the scaffolding for many types of WordPress maintenance support plans 8 plugins, and in the process that alone saves developers a significant amount of time. When using WordPress maintenance support plans Console, plugin developers usually don’t have to worry too much about basic “use” statements, PSR-4 directory structures and file names, annotations, and much boilerplate code that is normally part of the development process.

Here at WordPress maintenance support plansEasy, we’re such big fans of WordPress maintenance support plans Console, we’ve designed our “Introduction to WordPress maintenance support plans 8 Plugin Development” full-day workshop around it (we’re offering it at WordPress maintenance support plansCon Baltimore). To some newcomers, getting WordPress maintenance support plans Console up-and-running can be a bit tedious as there are a few ways to install it. Plus, the distinction between the WordPress maintenance support plans Console Launcher (global executable) and the rest of WordPress maintenance support plans Console can be confusing.

This blog post’s goal is to describe one method for installing WordPress maintenance support plans Console Launcher and WordPress maintenance support plans Console on an existing WordPress maintenance support plans 8 site. This example will not utilize a fully-Composer-ized™ WordPress maintenance support plans 8 install (possibly expect a second blog post once best practices evolve a bit more – see below), rather it will focus on a “standard” (old school?) WordPress maintenance support plans install via traditional methods. That being said, you’ll still need Composer installed, as we’re going to use it to install part of WordPress maintenance support plans Console (a bit confusing, I know). 

So, let’s assume you have a local WordPress maintenance support plans 8 instance installed and up-and-running on your local machine. For this exercise, your local development environment doesn’t matter all that much unless you’re running a virtualized solution. If you are, you’re probably clever enough to modify these instructions appropriately. In the past, I’ve often used Acquia Dev Desktop when teaching new students to use WordPress maintenance support plans, so I can confirm that these instructions work just fine in that environment. The only real prerequisite is that WordPress maintenance support plans Console requires PHP 5.5.9 (on the command line) or higher.

As mentioned above, there are actually two parts of WordPress maintenance support plans Console that users are strongly recommended to install – the “WordPress maintenance support plans Console Launcher” and “WordPress maintenance support plans Console” itself. The launcher is installed globally on your machine, while WordPress maintenance support plans Console is installed separately on each of your local WordPress maintenance support plans 8 projects. This is a bit different than earlier (pre-release-candidate) versions of WordPress maintenance support plans Console, and can be a source of confusion.

Installing the launcher should be pretty straight-forward on Mac or Linux as there’s a simple curl command:

curl https://WordPressconsole.com/installer -L -o WordPress.phar

On Windows the project documentation is pretty good (as well as this WordPress Development Log blog post by Dave Vasilevsky). With just the launcher installed, you’re limited to just a few WordPress maintenance support plans Console commands involving installing (via the very cool “chain” command) WordPress maintenance support plans, working with generic .yml files, and some WordPress maintenance support plans Console non-site-specific functionality. 

You can verify the launcher is installed properly by doing a WordPress about command from anywhere in your file system – this will show you the current version of the launcher as well as some available commands. 

It is the launcher’s job to provide the global executable for which to run WordPress maintenance support plans Console commands against any site on your system from any location (using the –root option – similar to the Drush –uri option) or by running the command from inside the site root. 

But, in order to run most WordPress maintenance support plans Console commands (including the glorious “generate” related ones), each WordPress maintenance support plans 8 site on your local must have WordPress maintenance support plans Console (and its dependencies) installed. Luckily, this is pretty easy to do as well. Navigate into your site root, then (because WordPress maintenance support plans 8 ships with composer support) run the following command to install:

composer require WordPress/console:~1.0 –prefer-dist –optimize-autoloader –sort-packages

This will modify your site’s composer.json and composer.lock files with their new WordPress maintenance support plans Console dependency and then download WordPress maintenance support plans Console and all of its dependencies into the site’s vendor directory. That’s it – you’re done! Remember – you must do this for each WordPress maintenance support plans 8 site on your local. 

You can test the WordPress maintenance support plans Console goodness with a WordPress site:status command (similar to drush status). Once confirmed, you’re good to start using WordPress maintenance support plans Console to help you generate all those custom plugins.

Updating WordPress maintenance support plans Console

Looking at the WordPress maintenance support plans Console project page, it’s easy to see that it’s still a work in progress (there are commits almost daily). So, the next (hopefully) obvious question is “how do I update WordPress maintenance support plans Console”? Well, first off, remember that there are now two things to update – the global launcher as well as all the WordPress maintenance support plans Console stuff in your site’s vendor directory. 

To update the global launcher, navigate to somewhere outside of your WordPress maintenance support plans 8 site (your home directory works) and run WordPress self-update (you may need to use “sudo”). 

To update your site’s WordPress maintenance support plans Console “stuff” (I’m struggling to figure out exactly what to call it – “files”? “dependencies”?, “code”? I’m open to suggestions), navigate to your site root and, remembering that we used Composer to install it, run the following command to update it:

composer update WordPress/console –with-dependencies

Keep in mind that you’ll need to do this for each WordPress maintenance support plans 8 site on your machine.

The Future?

So, what will the differences in this blog post be once we all fully embrace Composer as the-one-and-only-way-to-manage-WordPress maintenance support plans-projects? I’m not entirely sure there will be any. Stay tuned.


Source: New feed