Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WP-CLI for site owners and admins #248

Closed
bph opened this issue Apr 4, 2024 Discussed in #243 · 15 comments
Closed

WP-CLI for site owners and admins #248

bph opened this issue Apr 4, 2024 Discussed in #243 · 15 comments
Assignees

Comments

@bph
Copy link
Collaborator

bph commented Apr 4, 2024

Discussed in #243

Originally posted by zzap March 23, 2024
WP-CLI is still scary to many developers, which is somewhat understandable given that it doesn't play nicely with Windows machines. A lot of developer tools, initially CLIs, have their GUIs today, and people opt to use them (which increases the fear of terminal).

So let's skip the setup part altogether and take a look at WP-CLI possibilities out of the box, i.e., hosting servers. The WP-CLI handbook already has a list of hosting providers with preinstalled WP-CLI and plugins with their custom WP-CLI commands, so we're clear on "not recommending any company or product".

We could go in general here and explain how WP-CLI can be used on the hosting provider's server, provide use cases, etc. If there were fewer providers, it would be beneficial to have a little walkthrough of the dashboard and show where the terminal is and how to start it, but each of them certainly has a guide on their blog, so we could just say, "Find the blog post and follow instructions".

I'd focus here mainly on site owners and administrators and what they can do in specific situations, e.g., manage user access (when the site is hacked or similar), install plugins for debugging and running various scans, switch to the default theme and deactivate all plugins to find the error, move a large number of posts to a different category/tag as a recommendation from an SEO agency, etc.

Goal: empower experienced users to be more advanced; support hosting providers with WP-CLI; support plugin authors who include custom WP-CLI commands; promote the WP-CLI tool as the most powerful and quickest tool for managing a WordPress instance.

The title is debatable. I don't like it, but it describes what the article is about.

@zzap
Copy link
Member

zzap commented Apr 29, 2024

Current state: it's a mess; a pile of research, code samples and ideas. I'll share the draft here as soon as I get some structure at least.

@bph
Copy link
Collaborator Author

bph commented May 7, 2024

@zzap Thanks for the update! Can't wait to read a draft (no pressure of course)

@bph
Copy link
Collaborator Author

bph commented Jun 4, 2024

@zzap Just checking if there are any blockers, I can help remove to get this article over the finish line?

@zzap
Copy link
Member

zzap commented Jul 22, 2024

@bph As promised, here's the draft, ready for review: https://docs.google.com/document/d/15UiITFOZbdT7XLo1eW6m2Ru9Gmc_YtR5oVGcg5CKjJc/edit?usp=sharing

@zzap zzap moved this from In Progress to Needs 1st review in Developer Blog Content Board Jul 23, 2024
@bph
Copy link
Collaborator Author

bph commented Jul 23, 2024

Need to step away and will get back later in the afternoon. This is how far I got.

@zzap
Copy link
Member

zzap commented Jul 23, 2024

@bph I'm thinking that maybe one important detail is missing. Instruction on where to run these commands from - WordPress root, and how to know that you are in that directory (because different hosting providers have different file structures and you almost always have access at least one level above your root folder).

@bph
Copy link
Collaborator Author

bph commented Jul 23, 2024

@zzap of course, you are right:
it needs an additional section on "How to get to the server level of the website with the SSH access, to actually use WP-CLI or how to use them remotely. "

I am through with the first review and left a few more comments.

  • It would be good to have more screenshot or even videos to make things a bit more palatable. You can upload the video right to the site, to add them to the post.
  • Be consistent when using directoryies start with a slash and use inline code formatting. It's not so well done on Google Docs, so you would need to go over it when moving the content to the site.

@bph bph moved this from Needs 1st review to Done w/ 1st Review in Developer Blog Content Board Jul 23, 2024
@zzap
Copy link
Member

zzap commented Jul 25, 2024

@bph I added a bunch of screenshots and one video (which is GIF in draft but will be video in article) and Are you in your WordPress’ root? section.

@zzap
Copy link
Member

zzap commented Jul 25, 2024

"How to get to the server level of the website with the SSH access, to actually use WP-CLI or how to use them remotely. "

Remote use require opening terminal on local machine (a lot of people don't know they even have them), logging in via SSH, which might require them to have SSH Keys and connection with remote server.. that's far beyond what I want to do here. Hosting providers usually have tutorial with screenshots, on how to access their terminal, so I'm counting on that part to be covered by them and take the reader's hand once they are in terminal, logged in.

@bph bph moved this from Done w/ 1st Review to Needs 2nd review in Developer Blog Content Board Jul 31, 2024
@justintadlock
Copy link

I'll get to this today (2nd review).

@justintadlock justintadlock moved this from Needs 2nd review to Done w/ 2nd review in Developer Blog Content Board Sep 3, 2024
@justintadlock
Copy link

Great work, @zzap!!! I learned a lot reading through this. The second review is complete. It's mostly just minor grammatical suggestions.

@bph
Copy link
Collaborator Author

bph commented Sep 4, 2024

Once you are ready to move the article to the Dev blog, here are the current checklists:

Pre-publishing checklist:

  • Post Title and subheaders in sentence case
  • Are Category or Categories selected?
  • Are Tags identifies?
  • Is there an explicit Excerpt?
  • Are all images files uploaded to the media library
  • Do all images have an alt-text?
  • For TOC us the Pattern under Developer Blog > Table of contents
  • Assign or upload a featured image
  • Props added? (See Guidelines)
  • add copy for a social post as comment to this issue (example)
    🙌 Publish! 📗

Post-publishing checklist

  • add Props for reviews to #props channel in WP Slack (Example) (use Slack handles)
  • Add the label "post to social" to the issue
  • close the issue with a comment to link to the published post
  • close the accompanying discussion with the link to the published post.

@zzap
Copy link
Member

zzap commented Sep 9, 2024

Social copy:

As site owners and administrators, you can, and should use WP-CLI to efficiently secure and maintain your WordPress site by managing updates, monitoring changes, and creating backups. This article will teach you how.
https://developer.wordpress.org/news/2024/09/09/website-security-checks-wp-cli-for-site-owners-and-administrators/

@zzap
Copy link
Member

zzap commented Sep 9, 2024

Post is published https://developer.wordpress.org/news/2024/09/09/website-security-checks-wp-cli-for-site-owners-and-administrators/

@zzap zzap closed this as completed Sep 9, 2024
@github-project-automation github-project-automation bot moved this from Done w/ 2nd review to Ready to publish in Developer Blog Content Board Sep 9, 2024
@bph
Copy link
Collaborator Author

bph commented Sep 26, 2024

scheduled for Oct 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Published (Done)
Development

No branches or pull requests

3 participants