Category: WP CLI

  • Passing a JSON string as a flag value in WP CLI

    You may find at some point that it could be very helpful to pass some data in the form of an array or object as an associated argument into a custom WP CLI command. At least, that is the situation I found myself in recently. To give an example, here’s a demonstration of a CLI…