Save command output to a file
When running long-running custom WP-CLI commands, or commands that will affect many records, it is recommended to save the output to a file for review.
Ready to get started with WordPress VIP? Contact us
Showing page 10 of 17
When running long-running custom WP-CLI commands, or commands that will affect many records, it is recommended to save the output to a file for review.
By default, Enterprise Search will index all public post types, their statuses and their public taxonomy terms. Use allow lists and indexables to selectively index additional post types, statuses, taxonomies, and post meta.
Environment variables are a method for injecting information into WordPress and Node.js WPVIP Platform environments.
Use VIP-CLI to check if an index is in sync with a database, or to debug issues related to Enterprise Search.
By following best practices when writing a custom WP-CLI command, the command is more likely to be performant, and easier to debug and maintain over time.
On the VIP Platform, WP-CLI commands run in a container that is separate from a site’s web application, but it shares the Memcached and database containers. It is very important to set protections in place to prevent custom WP-CLI commands from inadvertently affecting a site’s performance.
Tokenization applies a more sophisticated set of rules during a search, which eliminate the need for full-text search and also returns more relevant document results. The behavior of tokenization can be customized with filters.
The VIP Code Analysis Bot can be customized by adding configuration options to a JSON file named .vipgoci_options
. The .vipgoci_options
file must be created at the root of a relevant repository.
By default on VIP, PHP_CodeSniffer (PHPCS) analyzes code in all relevant files of a pull request. Additional methods and examples of the options outlined below can be found in the PHP_Codesniffer wiki.
The Network Site launch tool in the VIP Dashboard is strongly recommended for launching sites on a WordPress multisite.