Skip to content

Quick start

Foad Yousefi edited this page Feb 28, 2018 · 6 revisions

Take over FTP WP project and make it git ready with one command.

After you installed package (wp package install front/wp-cli-build), in the root of your Wordpress instance, run

wp build-generate

This will generate two files:

  1. .gitignore (ignore everything, then exclude custom theme/plugins from being ignored).
  2. build.yml (contains plugin/theme name and versions + WP core version and instance lang).

After generating build file, you can commit them to github or simply use build.yml file to control versions across all site instances and team members.

Clone this wiki locally