File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -400,6 +400,37 @@ Returns exit code 0 when installed, 1 when uninstalled.
400400 $ echo $?
401401 1
402402
403+
404+
405+ ### wp package path
406+
407+ Gets the path to an installed WP-CLI package, or the package directory.
408+
409+ ~~~
410+ wp package path [<name>]
411+ ~~~
412+
413+ If you want to contribute to a package, this is a great way to jump to it.
414+
415+ ** OPTIONS**
416+
417+ [<name>]
418+ Name of the package to get the directory for.
419+
420+ ** EXAMPLES**
421+
422+ # Get package path.
423+ $ wp package path
424+ /home/person/.wp-cli/packages/
425+
426+ # Get path to an installed package.
427+ $ wp package path wp-cli/server-command
428+ /home/person/.wp-cli/packages/vendor/wp-cli/server-command
429+
430+ # Change directory to package path.
431+ $ cd $(wp package path) && pwd
432+ /home/vagrant/.wp-cli/packages
433+
403434## Installing
404435
405436This package is included with WP-CLI itself, no additional installation necessary.
Original file line number Diff line number Diff line change 4040 " package browse" ,
4141 " package get" ,
4242 " package install" ,
43+ " package is-installed" ,
4344 " package list" ,
45+ " package path" ,
4446 " package update" ,
45- " package uninstall" ,
46- " package is-installed"
47+ " package uninstall"
4748 ]
4849 },
4950 "autoload" : {
You can’t perform that action at this time.
0 commit comments