# Installer wp-cli avec Homebrew, dnf, MacPorts, Nix, pacman, zypper, scoop

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de wp-cli pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:wp-cli
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install wp-cli
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install wp-cli
```

  Preuve: MacPorts ports tree: www/wp-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- dnf (92%):

```sh
sudo dnf install wp-cli
```

  Preuve: Fedora Rawhide package metadata: wp-cli from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#wp-cli
```

  Preuve: nixpkgs package indexes: pkgs/by-name/wp/wp-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S wp-cli
```

  Preuve: Arch Linux sync databases: wp-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install wp-cli
```

  Preuve: openSUSE Tumbleweed package metadata: wp-cli from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/wp-cli
```

  Preuve: Scoop official bucket manifest trees: bucket/wp-cli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Faits du paquet

- **Clé du paquet:** brew:wp-cli
- **Gestionnaire de paquets:** Homebrew
- **Version:** 2.12.0
- **Résumé source:** Command-line interface for WordPress
- **Page d'accueil:** <https://wp-cli.org/>
- **Dépôt:** <https://github.com/wp-cli/wp-cli>
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- wp (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 2.12.0
## Historique du projet et usages

WP-CLI is the command-line interface for WordPress: a scriptable way to install, configure, update, inspect, and operate WordPress sites without using the browser admin. WordPress.org describes it as the official command-line tool for interacting with and managing WordPress sites.

### Historique du projet

The WP-CLI GitHub repository was created on 2011-09-10, and the current WordPress.org page says WP-CLI has shipped continuously since 2011. A 2016 project post identifies Andreas Creten as WP-CLI's founder and Daniel Bachhuber as maintainer, capturing the project's mid-2010s concern with reducing its bus factor and strengthening long-term governance.

In late 2016, WP-CLI's sustainability discussion became public. Daniel Bachhuber wrote that WP-CLI had become too large to maintain purely as volunteer work, and an update on 2016-12-28 announced that WP-CLI was now an official WordPress project. The January 2017 follow-up framed this as a continuation plan: development would continue on GitHub, the website would move toward WordPress.org, and responsibility would no longer rest on one maintainer.

### Historique d'adoption

By May 2016, Bachhuber described WP-CLI as hugely important to the WordPress ecosystem, with thousands of regular developers and tens or hundreds of companies integrating it deeply into business processes. That adoption reflected a clear need in WordPress operations: repeatable admin tasks, deployment steps, content imports, database changes, and plugin/theme work are easier to automate from a CLI than through a web UI.

WP-CLI's officialization also reflected WordPress's broader ecosystem model. It remained a community-maintained tool, but with a clearer home under WordPress.org and public governance for releases and contribution.

### Modes d'utilisation

Typical WP-CLI usage starts with the wp command. Developers run commands such as wp core download or update, wp plugin install or activate, wp db export, wp search-replace, wp user, wp cron, and wp media to script site administration. The official command reference lists commands for core, config, database, cron, media, menus, users, posts, and many other WordPress subsystems.

WP-CLI is also extensible: WordPress.org describes custom commands and community packages, and many hosts, deployment scripts, CI jobs, and maintenance playbooks rely on it as the stable automation surface for WordPress.

### Pourquoi les passionnés de paquets s'y intéressent

WP-CLI is significant because it turned a browser-centered CMS into something Unix-shaped: commands, subcommands, config files, exit statuses, and scripts. For package maintainers and operations engineers, it is the standard bridge between WordPress and normal deployment automation.

It is also an example of a community tool becoming official infrastructure after adoption proved its importance. The project did not start as WordPress core, but by 2016-2017 its ecosystem role was large enough that WordPress.org stewardship became the maintenance answer.

### Chronologie

- 2011-09-10: wp-cli/wp-cli GitHub repository is created.
- 2014-03-27: v0.12.0 is published in GitHub releases.
- 2016-05-12: Public GitHub issue discusses WP-CLI's bus factor and organizational stability.
- 2016-12-28: Make WordPress update announces WP-CLI is now an official WordPress project.
- 2017-01-03: Follow-up post explains the official WordPress.org transition.
- 2025-05-07: v2.12.0 is published in GitHub releases.

### Related projects

- WordPress core is the CMS that WP-CLI operates.
- The WP-CLI command reference and Make WordPress CLI handbook are the official documentation surfaces.
- Community WP-CLI packages extend the base command set.

### Sources

- <https://api.github.com/repos/wp-cli/wp-cli>
- <https://api.github.com/repos/wp-cli/wp-cli/releases/latest>
- <https://api.github.com/repos/wp-cli/wp-cli/releases?per_page=100>
- <https://developer.wordpress.org/cli/commands/>
- <https://github.com/wp-cli/wp-cli/issues/2743>
- <https://make.wordpress.org/cli/2016/06/23/future-wp-cli/>
- <https://make.wordpress.org/cli/2016/12/12/the-big-question/>
- <https://make.wordpress.org/cli/2017/01/03/lets-do-this/>
- <https://wordpress.org/cli/>


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: wp-cli.local.yml, wp-cli.yml, ~/.wp-cli/config.yml, ${WP_CLI_CONFIG_PATH}
## Autres enregistrements de gestionnaires de paquets

- Nix - wp-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/wp/wp-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - wp-cli - 2.12.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: wp-cli from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | The command line interface for WordPress | http://wp-cli.org/
- pacman - wp-cli - 2.12.0-1: normalized package name match | Arch Linux sync databases: wp-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A command-line tool for managing WordPress | http://wp-cli.org
- zypper - wp-cli - 2.12.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: wp-cli from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | WordPress command-line interface | https://wp-cli.org/
- MacPorts - wp-cli: normalized package name match | MacPorts ports tree: www/wp-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/wp-cli: normalized package name match | Scoop official bucket manifest trees: bucket/wp-cli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/wp-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/wp-cli.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
