![]() The shell will replace “wp” with “~/wp-cli.phar”, allowing you to enter “wp” rather than the full path to the executable. To make it easier to use, you can create an alias, a command-line shortcut : alias wp='~/wp-cli.phar’ home/user/public_html/wp-cli.phar config list If you move WP-CLI into the WordPress site’s directory, you don’t have to supply a location with “–path,” but you will need to specify the directory that contains the executable, using “./“ for the current directory. wp-cli.phar config list -path=/home/user/public_html/ To run it from your home directory, you can tell WP-CLI which WordPress site to control with the “–path” option.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |