PHPackages                             wecodemore/wp-cli-composer - 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. [CLI &amp; Console](/categories/cli)
4. /
5. wecodemore/wp-cli-composer

ActiveLibrary[CLI &amp; Console](/categories/cli)

wecodemore/wp-cli-composer
==========================

Adds bash autocompletion for WP-CLI

2.0.0(9y ago)94.2k[1 issues](https://github.com/wecodemore/wp-cli-composer/issues)MITPHPPHP &gt;=5.3.2

Since Oct 15Pushed 9y ago3 watchersCompare

[ Source](https://github.com/wecodemore/wp-cli-composer)[ Packagist](https://packagist.org/packages/wecodemore/wp-cli-composer)[ Docs](https://github.com/wecodemore/wp-cli-composer)[ RSS](/packages/wecodemore-wp-cli-composer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

[![CircleCI Test Status: Master Branch](https://camo.githubusercontent.com/9932c0908b99919a12e9d27cbb05acc494c15dd2078f4412321ad6ff23401e2e/68747470733a2f2f636972636c6563692e636f6d2f67682f7765636f64656d6f72652f77702d636c692d636f6d706f7365722f747265652f6d61737465722e7376673f7374796c653d736869656c6426636972636c652d746f6b656e3d38656437653338363263336161356539623032353538626539363739636338373838316562353964)](https://camo.githubusercontent.com/9932c0908b99919a12e9d27cbb05acc494c15dd2078f4412321ad6ff23401e2e/68747470733a2f2f636972636c6563692e636f6d2f67682f7765636f64656d6f72652f77702d636c692d636f6d706f7365722f747265652f6d61737465722e7376673f7374796c653d736869656c6426636972636c652d746f6b656e3d38656437653338363263336161356539623032353538626539363739636338373838316562353964)

WP-CLI Bash Autocomplete
========================

[](#wp-cli-bash-autocomplete)

Usage as Composer post-package-install script. Adds bash autocompletion when WP-CLI gets installed using Composer. **This package** mostly **is a convenience package that should make the build process easier**.

This package needs 20 seconds to set up. Zero maintenance.

How To
------

[](#how-to)

Install WP-CLI [using Composer](https://github.com/wp-cli/wp-cli/wiki/Alternative-Install-Methods). your project. Simply add [WP-CLI](wp-cli.org) on top of that:

```
"require" : {
	"wp-cli/wp-cli"              : "~1.0",
	"wecodemore/wp-cli-composer" : "~2.0"
},
```

Then setup the script

```
"scripts" : {
	"post-install-cmd" : [
		"WCM\\WPCLI\\Autocomplete\\Setup::install"
	]
},

```

Finally you will need to define a pointer to tell the post package installer where wp-cli was installed to. In most cases this simply will be your users home directory/`~`, but you can define custom locations as well.

```
"extra" : {
	"wordpress-install-dir" : "wp",
	"bash-profile-dir"      : "/home/youruser"
}

```

FAQ
---

[](#faq)

#### **Q:** Shall I install it from GitHub or from Packagist?

[](#q-shall-i-install-it-from-github-or-from-packagist)

**A:** The package is on Packagist and auto updated from GitHub instantly (using WebHooks).

#### **Q:** If I ran this twice by accident, do I then have the scripts appended twice?

[](#q-if-i-ran-this-twice-by-accident-do-i-then-have-the-scripts-appended-twice)

**A:** No, the script is smart enough to care about that and appends itself only once.

#### **Q:** What happens if I'm not sure and the bash profile location is probably wrong?

[](#q-what-happens-if-im-not-sure-and-the-bash-profile-location-is-probably-wrong)

**A:** The script does only check if the directory exists and not if you got a `.bash_profile` file there. If there is none, it will attempt to create one for you.

#### **Q:** What version should I refer to in my `composer.json`?

[](#q-what-version-should-i-refer-to-in-my-composerjson)

**A:** We use [semantic versioning](http://semver.org/), so you will want to stay up to date with major versions.

#### **Q:** Should I visit Vienna?

[](#q-should-i-visit-vienna)

**A:** Yes. You won't regret it. Ping me and I'll grab a coffee with you.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~388 days

Total

3

Last Release

3457d ago

Major Versions

1.1.0 → 2.0.02016-11-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ec7d6330cea83c240e92bf0356e650a0e5f847497c4f3f0e38e16b4b0755b00?d=identicon)[wecodemore](/maintainers/wecodemore)

---

Top Contributors

[![franz-josef-kaiser](https://avatars.githubusercontent.com/u/387666?v=4)](https://github.com/franz-josef-kaiser "franz-josef-kaiser (13 commits)")

---

Tags

composerwordpressprofilewppluginswp-clibash

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wecodemore-wp-cli-composer/health.svg)

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

###  Alternatives

[wpsh/wp-cli-replicator

3581.7k](/packages/wpsh-wp-cli-replicator)[wp-cli/wp-super-cache-cli

Add a `wp super-cache` command to support the WP Super Cache plug-in

5719.9k](/packages/wp-cli-wp-super-cache-cli)[typisttech/image-optimize-command

Easily optimize images using WP CLI

1722.0k](/packages/typisttech-image-optimize-command)[wearerequired/wp-cli-clear-opcache

Use WP-CLI to clear the OPcache for a site via HTTP.

1735.6k](/packages/wearerequired-wp-cli-clear-opcache)[frozzare/wp-cli-media-restore

Restore media attachments using WP CLI

2010.5k](/packages/frozzare-wp-cli-media-restore)

PHPackages © 2026

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