Skip to content

docs: add verify installation commands#6202

Open
kokatenikita77 wants to merge 1 commit intowp-cli:mainfrom
kokatenikita77:patch-1
Open

docs: add verify installation commands#6202
kokatenikita77 wants to merge 1 commit intowp-cli:mainfrom
kokatenikita77:patch-1

Conversation

@kokatenikita77
Copy link

Adds a small "Verify installation" section with example commands to confirm WP-CLI is installed and available in PATH.

Adds a short section showing how to verify WP-CLI works after install.
@kokatenikita77 kokatenikita77 requested a review from a team as a code owner January 21, 2026 19:16
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @kokatenikita77, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request improves the project's documentation by introducing a dedicated section for verifying the WP-CLI installation. This addition aims to streamline the user onboarding process, allowing new users to quickly and confidently confirm their setup after following the initial installation instructions.

Highlights

  • Documentation Enhancement: A new section titled "Verify installation" has been added to the README.md file. This section provides clear instructions and example commands (wp --info, wp --version) for users to confirm that WP-CLI is correctly installed and accessible in their system's PATH.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a helpful 'Verify installation' section to the README. However, the new documentation has a formatting error with an unclosed code block that will break page rendering. Additionally, the new section is placed in a confusing order, appearing before the instructions to make the wp command globally available. My review includes a fix for the formatting and a recommendation to reorder the sections for better clarity.

Comment on lines +69 to 77
### Verify installation

After moving the executable to your PATH, confirm the `wp` command works:

```bash
wp --info
wp --version


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Thanks for adding this verification step. There are a couple of issues with this new section:

  1. Unclosed Code Block: The bash code block is not closed with backticks (```). This will cause rendering issues for the rest of the document.
  2. Logical Order: This section is placed before the instructions to move the executable to the user's PATH. This is confusing because it asks the user to run the wp command before it has been made available system-wide. This section should be moved after the chmod and mv command examples (currently on lines 78-83).

The suggestion below fixes the unclosed code block. Please also move the corrected block to the right place in the installation flow.

Suggested change
### Verify installation
After moving the executable to your PATH, confirm the `wp` command works:
```bash
wp --info
wp --version
### Verify installation
After moving the executable to your PATH, confirm the `wp` command works:
```bash
wp --info
wp --version

@github-actions github-actions bot added command:cli-info Related to 'cli info' command command:cli-version Related to 'cli version' command labels Jan 21, 2026
@github-actions
Copy link

Hello! 👋

Thanks for opening this pull request! Please check out our contributing guidelines. 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.

Here are some useful Composer commands to get you started:

  • composer install: Install dependencies.
  • composer test: Run the full test suite.
  • composer phpcs: Check for code style violations.
  • composer phpcbf: Automatically fix code style violations.
  • composer phpunit: Run unit tests.
  • composer behat: Run behavior-driven tests.

To run a single Behat test, you can use the following command:

# Run all tests in a single file
composer behat features/some-feature.feature

# Run only a specific scenario (where 123 is the line number of the "Scenario:" title)
composer behat features/some-feature.feature:123

You can find a list of all available Behat steps in our handbook.

@kokatenikita77
Copy link
Author

Hi maintainers, I added a small “Verify installation” section with example commands to help new users confirm WP-CLI is installed correctly. Please let me know if you’d like any adjustments.

@codecov

This comment was marked as resolved.

@swissspidy
Copy link
Member

Thanks for your contribution.

Curious, what prompted this change? I don't think this step was ever a big issue with our users when onboarding to WP-CLI.

IMO, if we want to update this section we also need to look at https://wp-cli.org/ and https://make.wordpress.org/cli/handbook/guides/installing/ which also have installation instructions. They would need to be in sync, but we also shouldn't repeat ourselves everywhere.

My suggestion is to first open an issue to discuss this properly before making any documentation changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:cli-info Related to 'cli info' command command:cli-version Related to 'cli version' command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants