Prompt user for input in WP CLI

I didn’t find any wp-cli utility either, but readline php function works just fine. PHPStorm warns me that ext-readline must be enabled in order to use it, but it seems like something that is always enabled in cli environment

WP-CLI – Return posts with matching meta key

Managed to figure this out, you can pass –meta_key and –meta_compare arguments like this… wp post list –fields=ID,mycustomfield –meta_key=mycustomfield ‘–meta_compare=active’ ID | mycustomfield ———————– 1 | active 2 | active 4 | active

Export list of users with first and lastname in WP-CLI

According to the documentation for wp user list, the fields argument accepts any valid WP_User_Query field. Thus, you can simply use wp user list –fields=first_name,last_name –format=csv to list all users with their first and last names. Of course you can add any other fields that you need. Note: You can get the documentation for each … Read more

WP-CLI works on non WP-CLI installed WordPress instance?

Yes, of course it does, as long as you also have SSH access to the instance (it won’t work over FTP). There’s nothing special about WordPress instances installed via WP-CLI. Commands such as wp core download and wp core install perform the same actions you would normally do when installing manually.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)