Title: wp package
Published: February 5, 2018
Last modified: April 13, 2026

---

# 󠀁[wp package <command>](https://developer.wordpress.org/cli/commands/package/)󠁿

Lists, installs, and removes WP-CLI packages.

## In this article

 * [Examples](https://developer.wordpress.org/cli/commands/package/?output_format=md#examples)
 * [Subcommands](https://developer.wordpress.org/cli/commands/package/?output_format=md#subcommands)

[ Back to top](https://developer.wordpress.org/cli/commands/package/?output_format=md#wp--skip-link--target)

 [ ⌊GitHub⌉ ](https://github.com/wp-cli/package-command)

 [ View Open Issues (0) ](https://github.com/login?return_to=%2Fissues%3Fq%3Dlabel%3Acommand%3Apackage+sort%3Aupdated-desc+org%3Awp-cli+is%3Aopen)
[ View Closed Issues (107) ](https://github.com/login?return_to=%2Fissues%3Fq%3Dlabel%3Acommand%3Apackage+sort%3Aupdated-desc+org%3Awp-cli+is%3Aclosed)
[Create New Issue](https://github.com/wp-cli/package-command/issues/new)

Unless overridden, these commands run on the `before_wp_load` hook, just before 
the WP load process begins. WP-CLI packages are community-maintained projects built
on WP-CLI. They can contain WP-CLI commands, but they can also just extend WP-CLI
in some way. Learn how to create your own command from the [Commands Cookbook](https://make.wordpress.org/cli/handbook/guides/commands-cookbook/)

### 󠀁[Examples](https://developer.wordpress.org/cli/commands/package/?output_format=md#examples)󠁿

    ```
    # List installed packages.
    $ wp package list
    +-----------------------+------------------+----------+-----------+----------------+
    | name                  | authors          | version  | update    | update_version |
    +-----------------------+------------------+----------+-----------+----------------+
    | wp-cli/server-command | Daniel Bachhuber | dev-main | available | 2.x-dev        |
    +-----------------------+------------------+----------+-----------+----------------+

    # Install the latest development version of the package.
    $ wp package install wp-cli/server-command
    Installing package wp-cli/server-command (dev-main)
    Updating /home/person/.wp-cli/packages/composer.json to require the package...
    Using Composer to install the package...
    ---
    Loading composer repositories with package information
    Updating dependencies
    Resolving dependencies through SAT
    Dependency resolution completed in 0.005 seconds
    Analyzed 732 packages to resolve dependencies
    Analyzed 1034 rules to resolve dependencies
     - Installing package
    Writing lock file
    Generating autoload files
    ---
    Success: Package installed.

    # Uninstall package.
    $ wp package uninstall wp-cli/server-command
    Removing require statement for package 'wp-cli/server-command' from /home/person/.wp-cli/packages/composer.json
    Removing repository details from /home/person/.wp-cli/packages/composer.json
    Removing package directories and regenerating autoloader...
    Success: Uninstalled package.
    ```

### 󠀁[Subcommands](https://developer.wordpress.org/cli/commands/package/?output_format=md#subcommands)󠁿

| Name | Description | 
| [wp package browse](https://developer.wordpress.org/cli/commands/package/browse/) |

Browses WP-CLI packages available for installation.

  | 
| [wp package install](https://developer.wordpress.org/cli/commands/package/install/) |

Installs a WP-CLI package.

  | 
| [wp package list](https://developer.wordpress.org/cli/commands/package/list/) |

Lists installed WP-CLI packages.

  | 
| [wp package path](https://developer.wordpress.org/cli/commands/package/path/) |

Gets the path to an installed WP-CLI package, or the package directory.

  | 
| [wp package uninstall](https://developer.wordpress.org/cli/commands/package/uninstall/) |

Uninstalls a WP-CLI package.

  | 
| [wp package update](https://developer.wordpress.org/cli/commands/package/update/) |

Updates all installed WP-CLI packages to their latest version.

  |

 _Command documentation is regenerated at every release. To add or update an example,
please submit a pull request against the corresponding part of the codebase._