GNU/Linux Yoast WP CLI Indexing Guide
Hi! The Tutorial Shows You Step-by-step How to Index a WordPress Website for Yoast SEO using the WP CLI.
And to Yoast WP CLI Indexing your posts securely you have to make use of the www-data Non Login User.
1. Accessing www-data Shell
Fist, you have to Access www-data Shell
sudo -u www-data sh
2. Indexing Posts
Now to Index WordPress Posts with WP CLI
wp --path='/var/www/[PATH2WPSITE]' yoast indexReplace [PATH2WPSITE] with your current one in the above Command.
So for instance:
wp --path='/var/www/html/tutorialforlinux.com/wordpress' yoast index