WP-CLI: Command line interface for WordPress
-
I posted this awhile ago!
I have a script I wrote that automatically updates my Wordpress sites every 3 hours via cron...
==================================================================================
#!/bin/sh
echoecho The current time and date is: $(date)
echo
cd /var/www/builtbyart.com
pwd | ts
/usr/local/bin/wp core update --allow-root | ts
/usr/local/bin/wp theme update --all --allow-root | ts
/usr/local/bin/wp plugin update --all --allow-root | ts
/usr/local/bin/wp comment delete $(/usr/local/bin/wp comment list --status=spam --format=ids --allow-root) --allow-root | tsecho
cd /var/www/literaryworksbyaj.com
pwd | ts
/usr/local/bin/wp core update --allow-root | ts
/usr/local/bin/wp theme update --all --allow-root | ts
/usr/local/bin/wp plugin update --all --allow-root | ts
/usr/local/bin/wp comment delete $(/usr/local/bin/wp comment list --status=spam --format=ids --allow-root) --allow-root | tsecho
cd /var/www/thanksaj.com
pwd | ts
/usr/local/bin/wp core update --allow-root | ts
/usr/local/bin/wp theme update --all --allow-root | ts
/usr/local/bin/wp plugin update --all --allow-root | ts
/usr/local/bin/wp comment delete $(/usr/local/bin/wp comment list --status=spam --format=ids --allow-root) --allow-root | tsTo use ts, you use
apt-get -y install moreutils
-
I point to the full path because sometimes, via script, it didn't work without it.
-
May God have mercy on us all...
-
-
@thanksajdotcom said:
@tonyshowoff said:
May God have mercy on us all...
For what? ROFL
WordPress is the WIndows 95 of blogging software, and now it's invaded command line, there's no escape from the clutches of one of the worst code bases to ever exist.
-
@tonyshowoff said:
@thanksajdotcom said:
@tonyshowoff said:
May God have mercy on us all...
For what? ROFL
WordPress is the WIndows 95 of blogging software, and now it's invaded command line, there's no escape from the clutches of one of the worst code bases to ever exist.
Wordpress is great! What you smokin'?
-
@thanksajdotcom said:
@tonyshowoff said:
@thanksajdotcom said:
@tonyshowoff said:
May God have mercy on us all...
For what? ROFL
WordPress is the WIndows 95 of blogging software, and now it's invaded command line, there's no escape from the clutches of one of the worst code bases to ever exist.
Wordpress is great! What you smokin'?
The slowest, worst written blogging system in existence is great? Well, I guess some people enjoy herpes too.
-
@tonyshowoff said:
The slowest, worst written blogging system in existence is great? Well, I guess some people enjoy herpes too.
lol, bad experience(s), eh?
Out of genuine interest, what's your favourite? -
@tonyshowoff said:
@thanksajdotcom said:
@tonyshowoff said:
@thanksajdotcom said:
@tonyshowoff said:
May God have mercy on us all...
For what? ROFL
WordPress is the WIndows 95 of blogging software, and now it's invaded command line, there's no escape from the clutches of one of the worst code bases to ever exist.
Wordpress is great! What you smokin'?
The slowest, worst written blogging system in existence is great? Well, I guess some people enjoy herpes too.
You use Ghost?
-
@nadnerB said:
@tonyshowoff said:
The slowest, worst written blogging system in existence is great? Well, I guess some people enjoy herpes too.
lol, bad experience(s), eh?
Out of genuine interest, what's your favourite?Bad experience? I developed on the WordPress code base in the past, it literally is one of the worst code bases there is. It's extremely disorganised, doesn't properly meet any standard in existence, and even today the code is approached as if it's written in PHP 4.1. WordPress has more vulnerabilities than almost any other equally popular piece of software, and also their crappy API leads to crappy plugins which also have tons of vulnerabilities. The key people in WordPress don't know how to program, that's the primary issue.
I don't have a favourite, they're all shit, and ironically WordPress is the best because it's easiest to get going and has so many options available. It's poorly executed. Turn on query log sometime, a regular page load will probably be about 100 database queries, many of them identical, which screams incompetence. It's sort of funny, WordPress attempts to promote caching tools for problems they themselves have created.
Here's some more detail:
-
@scottalanmiller said:
@tonyshowoff said:
@thanksajdotcom said:
@tonyshowoff said:
@thanksajdotcom said:
@tonyshowoff said:
May God have mercy on us all...
For what? ROFL
WordPress is the WIndows 95 of blogging software, and now it's invaded command line, there's no escape from the clutches of one of the worst code bases to ever exist.
Wordpress is great! What you smokin'?
The slowest, worst written blogging system in existence is great? Well, I guess some people enjoy herpes too.
You use Ghost?
Oh please, everything Symantec makes is amazingly great and competent, I'm 100% sure their programmers don't have severe brain damage.
-
@tonyshowoff said:
Oh please, everything Symantec makes is amazingly great and competent, I'm 100% sure their programmers don't have severe brain damage.
Ghost the blogging platform.
-
@scottalanmiller said:
@tonyshowoff said:
Oh please, everything Symantec makes is amazingly great and competent, I'm 100% sure their programmers don't have severe brain damage.
Ghost the blogging platform.
I figured that's what you meant, and no I haven't, but I couldn't resist the opportunity to trash Symantec.
-
@tonyshowoff said:
@scottalanmiller said:
@tonyshowoff said:
Oh please, everything Symantec makes is amazingly great and competent, I'm 100% sure their programmers don't have severe brain damage.
Ghost the blogging platform.
I figured that's what you meant, and no I haven't, but I couldn't resist the opportunity to trash Symantec.
You don't have too, they already trashed themselves.
-
@tonyshowoff said:
@nadnerB said:
@tonyshowoff said:
The slowest, worst written blogging system in existence is great? Well, I guess some people enjoy herpes too.
lol, bad experience(s), eh?
Out of genuine interest, what's your favourite?Bad experience? I developed on the WordPress code base in the past, it literally is one of the worst code bases there is. It's extremely disorganised, doesn't properly meet any standard in existence, and even today the code is approached as if it's written in PHP 4.1. WordPress has more vulnerabilities than almost any other equally popular piece of software, and also their crappy API leads to crappy plugins which also have tons of vulnerabilities. The key people in WordPress don't know how to program, that's the primary issue.
I don't have a favourite, they're all shit, and ironically WordPress is the best because it's easiest to get going and has so many options available. It's poorly executed. Turn on query log sometime, a regular page load will probably be about 100 database queries, many of them identical, which screams incompetence. It's sort of funny, WordPress attempts to promote caching tools for problems they themselves have created.
Here's some more detail:
Righto, well that's a good read
I would imagine a lot of things are just as messed up -
@nadnerB said:
@tonyshowoff said:
@nadnerB said:
@tonyshowoff said:
The slowest, worst written blogging system in existence is great? Well, I guess some people enjoy herpes too.
lol, bad experience(s), eh?
Out of genuine interest, what's your favourite?Bad experience? I developed on the WordPress code base in the past, it literally is one of the worst code bases there is. It's extremely disorganised, doesn't properly meet any standard in existence, and even today the code is approached as if it's written in PHP 4.1. WordPress has more vulnerabilities than almost any other equally popular piece of software, and also their crappy API leads to crappy plugins which also have tons of vulnerabilities. The key people in WordPress don't know how to program, that's the primary issue.
I don't have a favourite, they're all shit, and ironically WordPress is the best because it's easiest to get going and has so many options available. It's poorly executed. Turn on query log sometime, a regular page load will probably be about 100 database queries, many of them identical, which screams incompetence. It's sort of funny, WordPress attempts to promote caching tools for problems they themselves have created.
Here's some more detail:
Righto, well that's a good read
I would imagine a lot of things are just as messed upAll you have to do with a crappy piece of software is add a bunch of themes and then people will accept it.
-
@tonyshowoff said:
@nadnerB said:
@tonyshowoff said:
@nadnerB said:
@tonyshowoff said:
The slowest, worst written blogging system in existence is great? Well, I guess some people enjoy herpes too.
lol, bad experience(s), eh?
Out of genuine interest, what's your favourite?Bad experience? I developed on the WordPress code base in the past, it literally is one of the worst code bases there is. It's extremely disorganised, doesn't properly meet any standard in existence, and even today the code is approached as if it's written in PHP 4.1. WordPress has more vulnerabilities than almost any other equally popular piece of software, and also their crappy API leads to crappy plugins which also have tons of vulnerabilities. The key people in WordPress don't know how to program, that's the primary issue.
I don't have a favourite, they're all shit, and ironically WordPress is the best because it's easiest to get going and has so many options available. It's poorly executed. Turn on query log sometime, a regular page load will probably be about 100 database queries, many of them identical, which screams incompetence. It's sort of funny, WordPress attempts to promote caching tools for problems they themselves have created.
Here's some more detail:
Righto, well that's a good read
I would imagine a lot of things are just as messed upAll you have to do with a crappy piece of software is add a bunch of themes and then people will accept it.
Wait where you talking about wordpress or windows?
-
@thecreativeone91 said:
@tonyshowoff said:
@nadnerB said:
@tonyshowoff said:
@nadnerB said:
@tonyshowoff said:
The slowest, worst written blogging system in existence is great? Well, I guess some people enjoy herpes too.
lol, bad experience(s), eh?
Out of genuine interest, what's your favourite?Bad experience? I developed on the WordPress code base in the past, it literally is one of the worst code bases there is. It's extremely disorganised, doesn't properly meet any standard in existence, and even today the code is approached as if it's written in PHP 4.1. WordPress has more vulnerabilities than almost any other equally popular piece of software, and also their crappy API leads to crappy plugins which also have tons of vulnerabilities. The key people in WordPress don't know how to program, that's the primary issue.
I don't have a favourite, they're all shit, and ironically WordPress is the best because it's easiest to get going and has so many options available. It's poorly executed. Turn on query log sometime, a regular page load will probably be about 100 database queries, many of them identical, which screams incompetence. It's sort of funny, WordPress attempts to promote caching tools for problems they themselves have created.
Here's some more detail:
Righto, well that's a good read
I would imagine a lot of things are just as messed upAll you have to do with a crappy piece of software is add a bunch of themes and then people will accept it.
Wait where you talking about wordpress or windows?
Yes