Playgrounds
Snippets
Developers
Compiler
All
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
Coffee
CoffeeScript
ColdFusion
Command
CSS
Delphi
Django
ES6
GLSL
Grunt
Gulp
HAML
Haskell
HTML
iOS
Jade
Java
JavaScript
jQuery
JSX
Less
LUA
MDX
MySQL
Objective
Other
Pascal
Perl
PHP
Plain text
PowerShell
Processing
Progress
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
SCSS
SmallBASIC
Smarty
SQL
Stylus
SVG
Swift
TypeScript
VHDL
X++
XHTML
XML
Xojo
XSLT
New snippet
New playground
Sign up
Login
Upload
Playgrounds
Snippets
Developers
Sign up
Login
Codepad is a place for developers to share code snippets (PHP, Java, Bash, C, C++, Python and more). Create your HTML, CSS and JS Demos.
Sign up
Learn more
WP-CLI
46
snippets by
Jesse Graupmann
WP-CLI - List Installed Themes
Bash
0
0
1982
WP-CLI - Install Plugin
Bash
0
0
1625
WP-CLI - List Installed Plugins
Bash
0
0
1919
WP-CLI - Update Plugin
Bash
0
1
1477
WP-CLI - Import and Export Database
Bash
0
0
1599
WP-CLI - Search and Replace Text in the Database
Bash
0
0
1552
WP-CLI - List Rewrite Rules
Bash
0
0
1673
WP-CLI - List All Posts
Bash
0
0
1474
WP-CLI - Regenerate All Thumbnails
Bash
0
0
4943
WP-CLI - Interactive PHP Console
Bash
0
0
1626
WP-CLI - Execute Arbitrary PHP Code
Bash
0
0
2118
WP-CLI - Basic Info
Bash
0
0
1481
WP-CLI - Custom Command
PHP
0
0
2315
WP-CLI - Interactive MySQL Console
Bash
0
0
1433
Bash WP-CLI - Import WordPress Test Data
Bash
0
0
1654
WordPress - MySQL Database Export & WP-CLI Import
Bash
0
0
2108
WP-CLI - Force sudo command
Bash
0
0
1901
Install WP-CLI
Bash
0
0
1548
WP-CLI - List Theme Status of All Sites on a Multisite
Bash
0
0
1499
WP-CLI - Update
Bash
0
2
1502
WP-CLI - Install and Activate multiple plugins
Bash
2
2
2496
WP-CLI - Call Internal Command from PHP
PHP
0
0
1689
Bash - Use ApacheBench to measure the performance of HTTP web servers
Bash
0
8
8925
Bash - CURL a POST with custom UserAgent and follow redirects
Bash
0
6
2154
PHP - Set DateTimeZone of DateTime
PHP
0
4
1677
WP-CLI - Download Wordpress, install, and configure it
Bash
0
3
1659
WP-CLI - Run command as a given WordPress user
Bash
0
1
1519
WP-CLI - Run a command command against multiple sites on WordPress multisite
Bash
0
8
1639
WP-CLI - Update all plugins
Bash
0
1
1610
Bash WP-CLI - Update All Plugins in all grepped Aliases
Bash
0
9
2047
Bash WP-CLI - Prompt to update all plugins on each alias
Bash
0
2
1476
Bash WP-CLI - Update all plugins in @all Aliases
Bash
0
2
1550
Bash WP-CLI - Generate a task list of all WP-CLI commands
Bash
0
1
1971
Bash WP-CLI - Change user password
Bash
0
1
1526
Bash WP-CLI - Set admin user's role to subscriber across all aliases
Bash
0
5
1465
WP-CLI - List All Roles
Bash
0
1
1426
WP-CLI - Detect whether WP-CLI is running
Apache
0
10
1645
WP-CLI - Export GZip Compressed Database
Bash
0
8
4235
WP-CLI - Import GZip Compressed Database
Bash
0
7
3903
WP-CLI - List the MySQL database tables
Bash
0
3
1591
WP-CLI - Export GZip Compressed Database For Single Site
Bash
0
1
1578
Bash WP-CLI - Sort site list alphabetically
Bash
1
5
1558
WP-CLI - Update core, all themes and all plugins
Bash
0
2
1588
WP-CLI - Update one option on multiple sites using xargs
Bash
0
1
1603
WP-CLI - Re-generate all thumbnails that have IDs between 1000 and 2000
Bash
0
4
1579
WP-CLI - Flush rewrite rules for all sites
Bash
0
6
1800