We call this the library or 'gallery' parameter. The first, required, parameter is the type of image that we want to optimize. This will display detailed usage information, and you can use the arrows to scroll, and 'q' to quit/exit from the help screen. That tells us that the parameter is required, since Eewwwio optimize -help Now that we are familiar with WP-CLI, let's move on to the EIf we run it with no options, we'll get some usage information: php wp-cli-phar ewwwio optimize This will output the WordPress core version: php wp-cli.phar -path=/home/user/www/ core version We will also assume that you are running wp-cli from your WordPress root folder, but you can use the -path option to tell wp-cli where your WordPress installation lives. For our purposes, we'll stick with the first example where we assume you have downloaded wp-cli.phar into the "root" of your WordPress folder. If your wp-cli binary is named something else, just substitute it throughout. You can literally name the wp-cli.phar file anything you want, like wapuu or ninjutsu. If your webhost has it pre-installed, you will typically run it the same way: wp -info If you follow the instructions at, this means you can run it by simply typing 'wp -info' at the command line, instead of using php, like we did above. However, if you have root access to your server, you can follow the wp-cli instructions to make the file executable, and to install it in your "path". When you download it, the file is usually named wp-cli.phar, and the most basic usage is to run it as-is: php wp-cli.phar -info In some cases, you will need to install WP-CLI first, if your web host doesn't provide it by default. EThis makes it easy to just get things done.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |