Skip to content
terminal

GitHub Action

Install WP-CLI

v1.0.0 Latest version

Install WP-CLI

terminal

Install WP-CLI

Install WP-CLI utility in your GitHub workflow

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Install WP-CLI

uses: holyhope/[email protected]

Learn more about this action in holyhope/install-wp-cli-github-action

Choose a version

install-wp-cli-github-action

Install wp-cli in your GitHub workflow

branding<icon:terminal color:blue> GitHub Action: Install WP-CLI

ReleaseReleaseCommitOpen IssuesDownloads

Install WP-CLI utility in your GitHub workflow.

This action installs the WordPress CLI from GitHub releases. It ensures the integrity and authenticity of the binary by verifying the signature and the checksum.

Usage

- uses: holyhope/install-wp-cli-github-action@main
  with:
    # Description: [Version of WP-CLI](https://github.com/wp-cli/wp-cli/releases) to
    # install. Default: `latest` version
    #
    version: ""

    # Description: True to check the WP-CLI binary's integrity and authenticity. False
    # to skip the checks.
    #
    # Default: true
    verify: ""

Inputs

Input Description Default Required
version Version of WP-CLI to install.
Default: latest version
false
verify True to check the WP-CLI binary's integrity and authenticity. False to skip the checks. true false
Output Description
path Path to the WP-CLI binary.