-
Notifications
You must be signed in to change notification settings - Fork 1
CLI Command Usage
Caution
⛔️ THE WIKI IS NO LONGER USED. PLEASE VIEW THE /docs DIRECTORY FOR ANY DOCUMENTATION
build-tools buildRuns the build process.
| Positionals | ||
|---|---|---|
projects |
optional | Comma separated list of projects to build. [usage] |
| Options | |
|---|---|
--once |
Run the build process only once. |
--production |
Compile the assets for production. |
--quiet |
Runs the build process with reduced output. |
You can define a project by using the project positional when using the build command by placing the project name after the build command.
build-tools build my-pluginThe project positional can also take comma separated values if you need to build more than one project at a given time.
build-tools build my-plugin,my-themeNotice that each defined project is not a full path, nor an entry point. We use the directory name as the project and the build tools then look for those as defined in the Structuring Your Project guide, seeking through client-mu-plugins,plugins and themes.
If you need to build an entire sites worth of projects, which will often be the case come deployment, you can build all applicable projects by running the command from within your wp-content directory.
build-tools build