You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every subfolder is a proper clone of the corresponding GitHub repository. This means that you can create new branches, make your changes, commit to the new branch and then submit as pull-request, all from within these folders.
2
2
3
-
As the folders are also symlinked into the Composer `vendor` folder, you will always have the latest changes available when running WP-CLI through the `vendor/bin/wp` executable.
3
+
Unless you have commit access to the repository, you'll need to fork the repository in order to push your feature branch. [GitHub's CLI](https://github.com/cli/cli) is pretty helpful for this:
4
+
5
+
```bash
6
+
cd core-command
7
+
gh repo fork
8
+
```
4
9
10
+
As the folders are also symlinked into the Composer `vendor` folder, you will always have the latest changes available when running WP-CLI through the `vendor/bin/wp` executable.
Clone this repository onto your hard drive and then use Composer to install all dependencies:
1
+
If you normally use WP-CLI on your web host or via Brew, you're most likely using the Phar executable (`wp-cli.phar`). This Phar executable file is the "built", singular version of WP-CLI. It is compiled from a couple dozen repositories in the WP-CLI GitHub organization.
2
2
3
-
```
4
-
git clone https://github.com/wp-cli/wp-cli-dev
5
-
cd wp-cli-dev
6
-
composer install
7
-
```
8
-
9
-
This will:
3
+
In order to make code changes to WP-CLI, you'll need to set up this `wp-cli-dev` development environment on your local machine. The setup process will:
10
4
11
5
1. Clone all relevant packages from the `wp-cli` GitHub organization into the `wp-cli-dev` folder, and
12
6
2. Install all Composer dependencies for a complete `wp-cli-bundle` setup, while symlinking all of the previously cloned packages into the Composer `vendor` folder.
13
7
3. Symlink all folder in `vendor` into corresponding `vendor` folders in each repository, thus making the centralized functionality based on Composer available in each repository subfolder.
8
+
9
+
Before you can proceed further, you'll need to make sure you have [Composer](https://getcomposer.org/), PHP, and a functioning MySQL or MariaDB server on your local machine.
10
+
11
+
Once the prequisites are met, clone the GitHub repository and run the installation process:
Clone this repository onto your hard drive and then use Composer to install all dependencies:
14
+
If you normally use WP-CLI on your web host or via Brew, you're most likely using the Phar executable (`wp-cli.phar`). This Phar executable file is the "built", singular version of WP-CLI. It is compiled from a couple dozen repositories in the WP-CLI GitHub organization.
15
15
16
-
```
17
-
git clone https://github.com/wp-cli/wp-cli-dev
18
-
cd wp-cli-dev
19
-
composer install
20
-
```
21
-
22
-
This will:
16
+
In order to make code changes to WP-CLI, you'll need to set up this `wp-cli-dev` development environment on your local machine. The setup process will:
23
17
24
18
1. Clone all relevant packages from the `wp-cli` GitHub organization into the `wp-cli-dev` folder, and
25
19
2. Install all Composer dependencies for a complete `wp-cli-bundle` setup, while symlinking all of the previously cloned packages into the Composer `vendor` folder.
26
20
3. Symlink all folder in `vendor` into corresponding `vendor` folders in each repository, thus making the centralized functionality based on Composer available in each repository subfolder.
27
21
22
+
Before you can proceed further, you'll need to make sure you have [Composer](https://getcomposer.org/), PHP, and a functioning MySQL or MariaDB server on your local machine.
23
+
24
+
Once the prequisites are met, clone the GitHub repository and run the installation process:
Every subfolder is a proper clone of the corresponding GitHub repository. This means that you can create new branches, make your changes, commit to the new branch and then submit as pull-request, all from within these folders.
31
36
37
+
Unless you have commit access to the repository, you'll need to fork the repository in order to push your feature branch. [GitHub's CLI](https://github.com/cli/cli) is pretty helpful for this:
38
+
39
+
```bash
40
+
cd core-command
41
+
gh repo fork
42
+
```
43
+
32
44
As the folders are also symlinked into the Composer `vendor` folder, you will always have the latest changes available when running WP-CLI through the `vendor/bin/wp` executable.
0 commit comments