PHPackages                             mehrshaddarzi/wp-cli-reference-command - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. mehrshaddarzi/wp-cli-reference-command

ActiveWp-cli-package

mehrshaddarzi/wp-cli-reference-command
======================================

WordPress Code Reference Package for WP-CLI.

v1.0.3(6y ago)12411MITPHPPHP ^5.5 || ^7.0CI failing

Since Apr 25Pushed 4y ago4 watchersCompare

[ Source](https://github.com/mehrshaddarzi/wp-cli-reference-command)[ Packagist](https://packagist.org/packages/mehrshaddarzi/wp-cli-reference-command)[ Docs](https://github.com/mehrshaddarzi/wp-cli-reference-command)[ RSS](/packages/mehrshaddarzi-wp-cli-reference-command/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (3)Versions (5)Used By (0)

WP-CLI Reference Command
========================

[](#wp-cli-reference-command)

[![Build Status](https://camo.githubusercontent.com/b60024d7628890e7956e8bc0442d5d5f980979ef3f181e73da663ceb0739895c/68747470733a2f2f7472617669732d63692e636f6d2f6d656872736861646461727a692f77702d636c692d7265666572656e63652d636f6d6d616e642e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/mehrshaddarzi/wp-cli-reference-command) [![Packagist Version](https://camo.githubusercontent.com/07b71c6107283a37aecebdf7dac2e168cd5e9edd1d865a569ec8521e358ebc1d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d656872736861646461727a692f77702d636c692d7265666572656e63652d636f6d6d616e64)](https://camo.githubusercontent.com/07b71c6107283a37aecebdf7dac2e168cd5e9edd1d865a569ec8521e358ebc1d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d656872736861646461727a692f77702d636c692d7265666572656e63652d636f6d6d616e64) [![GitHub](https://camo.githubusercontent.com/4b6023059e537b2ff989a1d697f7da001208baca767164ee941855b755c925c4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d656872736861646461727a692f77702d636c692d7265666572656e63652d636f6d6d616e64)](https://camo.githubusercontent.com/4b6023059e537b2ff989a1d697f7da001208baca767164ee941855b755c925c4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d656872736861646461727a692f77702d636c692d7265666572656e63652d636f6d6d616e64)

WordPress Code Reference in WP-CLI.

Quick links: [Installation](#installation) | [Using](#using) | [Contributing](#contributing)

Installation
------------

[](#installation)

You can install this package with:

```
wp package install mehrshaddarzi/wp-cli-reference-command
```

Installing this package requires WP-CLI v2 or greater. Update to the latest stable release with `wp cli update`.

Using
-----

[](#using)

```
NAME

  wp reference

DESCRIPTION

  WordPress Code Reference.

SYNOPSIS

  wp reference

```

### Search and show document

[](#search-and-show-document)

```
wp reference absint
```

result :

[![](https://raw.githubusercontent.com/mehrshaddarzi/wp-cli-reference-command/master/screenshot-1.jpg)](https://raw.githubusercontent.com/mehrshaddarzi/wp-cli-reference-command/master/screenshot-1.jpg)

If your search results from more than one item. for example:

```
wp reference wp_insert_post
```

You will see a list to choose from.

[![](https://raw.githubusercontent.com/mehrshaddarzi/wp-cli-reference-command/master/screenshot-2.jpg)](https://raw.githubusercontent.com/mehrshaddarzi/wp-cli-reference-command/master/screenshot-2.jpg)

### Custom Search

[](#custom-search)

By default WP\_CLI reference package search between all WordPress class and functions.

If you want the custom search:

```
wp reference --class=wp_user
```

```
wp reference --funcion=wp_insert_post
```

```
wp reference --method=get_row
```

```
wp reference --hook=admin_footer
```

### Show in Web Browser

[](#show-in-web-browser)

You can show WordPress code reference in Web browser after search with:

```
wp reference --browser
```

### Cache system

[](#cache-system)

By default, WP-CLI cached `1000` last searches for speed result. if you want to remove reference cache:

```
wp cli cache clear
```

If you want only remove reference cache:

```
wp reference --clear
```

Author
------

[](#author)

- [Mehrshad Darzi](https://www.linkedin.com/in/mehrshaddarzi/) | PHP Full Stack and WordPress Expert

Contributing
------------

[](#contributing)

We appreciate you taking the initiative to contribute to this project.

Contributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.

### Reporting a bug

[](#reporting-a-bug)

Think you’ve found a bug? We’d love for you to help us get it fixed. Before you create a new issue, you should [search existing issues](https://github.com/mehrshaddarzi/wp-cli-reference-command/issues?q=label%3Abug%20) to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version.

### Creating a pull request

[](#creating-a-pull-request)

Want to contribute a new feature? Please first [open a new issue](https://github.com/mehrshaddarzi/wp-cli-reference-command/issues/new) to discuss whether the feature is a good fit for the project.

Once you've decided to commit the time to seeing your pull request through, please follow our guidelines for creating a pull request to make sure it's a pleasant experience:

1. Create a feature branch for each contribution.
2. Submit your pull request early for feedback.
3. Follow [PSR-2 Coding Standards](http://www.php-fig.org/psr/psr-2/).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~100 days

Total

4

Last Release

2275d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b468d7958e961014f669dbba52acfdec695c5c200792c4f4d85f8131d8a99c0c?d=identicon)[mehrshaddarzi](/maintainers/mehrshaddarzi)

---

Top Contributors

[![mehrshaddarzi](https://avatars.githubusercontent.com/u/949491?v=4)](https://github.com/mehrshaddarzi "mehrshaddarzi (22 commits)")

---

Tags

wordpresswordpress-code-referencewordpress-codexwordpress-developmentwp-cliwp-cli-commandwp-cli-package

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mehrshaddarzi-wp-cli-reference-command/health.svg)

```
[![Health](https://phpackages.com/badges/mehrshaddarzi-wp-cli-reference-command/health.svg)](https://phpackages.com/packages/mehrshaddarzi-wp-cli-reference-command)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
