Logs for WP CLI

When you are ready to start recording a log file, type: script screen.log Now, until you stop the script, all input and output in the Terminal will be stored in screen.log. When you are done, just type: exit Source: Ubuntu Guide – How To Log Terminal Commands

Working with CLI and missing my namespace classes inside

I found the issue, and I discover I missing a “vendor” folder in my root of the plugin and inside composer.json i missing a auto-loader of classes. So what there fix my issue is update my composer.json file and then run a composer install command after inside my plugin folder. { … “require”: { “php”: … Read more

What user should I use for wp-cli on Ubuntu VPS [closed]

I think the error is very clear. The owner of public_html is www-data, you don’t have any permisson to write to that folder. You can use whatever user you want as long as that user have permission to read, write and execute your DOCUMENT_ROOT folder. But you shouldn’t use root user. So, to solve that … Read more

Add passwords to config.yml to manage multiple sites

If you are using SSH to connect to your sites then you can set up SSH aliases in your SSH config file. There are many advantages to doing this, one of them being that you use your SSH key to login to sites rather than having to type passwords. I do this with WP-CLI and … Read more

One-click WP site generation wih wp-cli on Windows

This is the script I use on Windows under XAMPP. It includes a MySQL command to create the database, and a tweak to improve security by nuking user 1 (and all its content) straight after install, resulting in a clean empty database. @echo off set dbName=”wp_yourdbname” set dbPass=”your_random_db_password” set siteUrl=”sitename.localdev.yourdomain.com” set siteName=”Kluwell” set siteDesc=”” set … Read more

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