Skip to content

Commit 3309a23

Browse files
committed
Add missing command to readme
1 parent 945b977 commit 3309a23

2 files changed

Lines changed: 34 additions & 2 deletions

File tree

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff 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

405436
This package is included with WP-CLI itself, no additional installation necessary.

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@
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": {

0 commit comments

Comments
 (0)