OSDN Git Service

move docs from man-src/ into PHPDoc comments
authorscribu <mail@scribu.net>
Sun, 4 Aug 2013 14:12:08 +0000 (17:12 +0300)
committerscribu <mail@scribu.net>
Sun, 4 Aug 2013 17:58:19 +0000 (20:58 +0300)
121 files changed:
man-src/cache.txt [deleted file]
man-src/cap.txt [deleted file]
man-src/comment-approve.txt [deleted file]
man-src/comment-count.txt [deleted file]
man-src/comment-create.txt [deleted file]
man-src/comment-delete.txt [deleted file]
man-src/comment-last.txt [deleted file]
man-src/comment-spam.txt [deleted file]
man-src/comment-status.txt [deleted file]
man-src/comment-trash.txt [deleted file]
man-src/comment-unapprove.txt [deleted file]
man-src/comment-unspam.txt [deleted file]
man-src/comment-untrash.txt [deleted file]
man-src/core-config.txt [deleted file]
man-src/core-download.txt [deleted file]
man-src/core-init-tests.txt [deleted file]
man-src/core-install.txt [deleted file]
man-src/core-is-installed.txt [deleted file]
man-src/core-multisite-convert.txt [deleted file]
man-src/core-multisite-install.txt [deleted file]
man-src/core-update-db.txt [deleted file]
man-src/core-update.txt [deleted file]
man-src/core-version.txt [deleted file]
man-src/db.txt [deleted file]
man-src/eval-file.txt [deleted file]
man-src/eval.txt [deleted file]
man-src/export.txt [deleted file]
man-src/help.txt [deleted file]
man-src/import.txt [deleted file]
man-src/media-import.txt [deleted file]
man-src/media-regenerate.txt [deleted file]
man-src/network-meta.txt [deleted file]
man-src/option.txt [deleted file]
man-src/plugin-activate.txt [deleted file]
man-src/plugin-deactivate.txt [deleted file]
man-src/plugin-delete.txt [deleted file]
man-src/plugin-install.txt [deleted file]
man-src/plugin-list.txt [deleted file]
man-src/plugin-path.txt [deleted file]
man-src/plugin-status.txt [deleted file]
man-src/plugin-toggle.txt [deleted file]
man-src/plugin-uninstall.txt [deleted file]
man-src/plugin-update-all.txt [deleted file]
man-src/plugin-update.txt [deleted file]
man-src/post-create.txt [deleted file]
man-src/post-delete.txt [deleted file]
man-src/post-edit.txt [deleted file]
man-src/post-generate.txt [deleted file]
man-src/post-get.txt [deleted file]
man-src/post-list.txt [deleted file]
man-src/post-meta.txt [deleted file]
man-src/post-update.txt [deleted file]
man-src/rewrite-dump.txt [deleted file]
man-src/rewrite-flush.txt [deleted file]
man-src/rewrite-structure.txt [deleted file]
man-src/role-create.txt [deleted file]
man-src/role-delete.txt [deleted file]
man-src/role-exists.txt [deleted file]
man-src/role-list.txt [deleted file]
man-src/scaffold-_s.txt [deleted file]
man-src/scaffold-child-theme.txt [deleted file]
man-src/scaffold-plugin-tests.txt [deleted file]
man-src/scaffold-plugin.txt [deleted file]
man-src/scaffold-post-type.txt [deleted file]
man-src/scaffold-taxonomy.txt [deleted file]
man-src/search-replace.txt [deleted file]
man-src/shell.txt [deleted file]
man-src/site-create.txt [deleted file]
man-src/site-delete.txt [deleted file]
man-src/site-empty.txt [deleted file]
man-src/term-create.txt [deleted file]
man-src/term-delete.txt [deleted file]
man-src/term-list.txt [deleted file]
man-src/term-update.txt [deleted file]
man-src/theme-activate.txt [deleted file]
man-src/theme-delete.txt [deleted file]
man-src/theme-install.txt [deleted file]
man-src/theme-list.txt [deleted file]
man-src/theme-path.txt [deleted file]
man-src/theme-status.txt [deleted file]
man-src/theme-update-all.txt [deleted file]
man-src/theme-update.txt [deleted file]
man-src/transient.txt [deleted file]
man-src/user-add-role.txt [deleted file]
man-src/user-create.txt [deleted file]
man-src/user-delete.txt [deleted file]
man-src/user-generate.txt [deleted file]
man-src/user-get.txt [deleted file]
man-src/user-import-csv.txt [deleted file]
man-src/user-list.txt [deleted file]
man-src/user-meta.txt [deleted file]
man-src/user-remove-role.txt [deleted file]
man-src/user-set-role.txt [deleted file]
man-src/user-update.txt [deleted file]
php/commands/cache.php
php/commands/cap.php
php/commands/comment.php
php/commands/core.php
php/commands/db.php
php/commands/eval-file.php
php/commands/eval.php
php/commands/export.php
php/commands/help.php
php/commands/import.php
php/commands/media.php
php/commands/network-meta.php
php/commands/option.php
php/commands/plugin.php
php/commands/post-meta.php
php/commands/post.php
php/commands/rewrite.php
php/commands/role.php
php/commands/scaffold.php
php/commands/search-replace.php
php/commands/shell.php
php/commands/site.php
php/commands/term.php
php/commands/theme.php
php/commands/transient.php
php/commands/user-meta.php
php/commands/user.php

diff --git a/man-src/cache.txt b/man-src/cache.txt
deleted file mode 100644 (file)
index 70856ff..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-## EXAMPLES
-
-       wp cache set my_key my_value my_group 300
-
-       wp cache get my_key my_group
diff --git a/man-src/cap.txt b/man-src/cap.txt
deleted file mode 100644 (file)
index 73b0921..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-## EXAMPLES
-
-       # Add 'spectate' capability to 'author' role  
-       wp cap add 'author' 'spectate'
-
-       # Add all caps from 'editor' role to 'author' role  
-       wp cap list 'editor' | xargs wp cap add 'author'
-
-       # Remove all caps from 'editor' role that also appear in 'author' role  
-       wp cap list 'author' | xargs wp cap remove 'editor'
diff --git a/man-src/comment-approve.txt b/man-src/comment-approve.txt
deleted file mode 100644 (file)
index f703cd0..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## OPTIONS
-
-* `<ID>`:
-
-       The ID of the comment to approve.
-
-## EXAMPLES
-
-       wp comment approve 1337
diff --git a/man-src/comment-count.txt b/man-src/comment-count.txt
deleted file mode 100644 (file)
index 0c595e3..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-## OPTIONS
-
-* `<ID>`:
-
-       The ID of the post to count comments in
-
-## EXAMPLES
-
-       wp comment count
-       wp comment count 42
diff --git a/man-src/comment-create.txt b/man-src/comment-create.txt
deleted file mode 100644 (file)
index 0b093d2..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-## OPTIONS
-
-* `--<field>`=<value>:
-
-       Field values for the new comment. See wp_insert_comment().
-
-* `--porcelain`:
-
-       Output just the new comment id.
-
-## EXAMPLES
-
-       wp comment create --comment_post_ID=15 --comment_content="hello blog"
---comment_author="wp-cli"
diff --git a/man-src/comment-delete.txt b/man-src/comment-delete.txt
deleted file mode 100644 (file)
index bd39300..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-## OPTIONS
-
-* `<ID>`:
-
-       The ID of the comment to delete.
-
-* `--force`:
-
-       Skip the trash bin.
-
-## EXAMPLES
-
-       wp comment delete 1337 --force
diff --git a/man-src/comment-last.txt b/man-src/comment-last.txt
deleted file mode 100644 (file)
index 34504ec..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-## OPTIONS
-
-* `--id`:
-
-       Output just the last comment id.
-
-* `--full`:
-
-       Output complete comment information.
-
-## EXAMPLES
-
-       wp comment last --full
diff --git a/man-src/comment-spam.txt b/man-src/comment-spam.txt
deleted file mode 100644 (file)
index b1a446c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## OPTIONS
-
-* `<ID>`:
-
-       The ID of the comment to mark as spam.
-
-## EXAMPLES
-
-       wp comment spam 1337
diff --git a/man-src/comment-status.txt b/man-src/comment-status.txt
deleted file mode 100644 (file)
index a53c327..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## OPTIONS
-
-* `<ID>`:
-
-       The ID of the comment to check
-
-## EXAMPLES
-
-       wp comment status 1337
diff --git a/man-src/comment-trash.txt b/man-src/comment-trash.txt
deleted file mode 100644 (file)
index 3d13881..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## OPTIONS
-
-* `<ID>`:
-
-       The ID of the comment to trash.
-
-## EXAMPLES
-
-       wp comment trash 1337
diff --git a/man-src/comment-unapprove.txt b/man-src/comment-unapprove.txt
deleted file mode 100644 (file)
index 5569199..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## OPTIONS
-
-* `<ID>`:
-
-       The ID of the comment to unapprove.
-
-## EXAMPLES
-
-       wp comment unapprove 1337
diff --git a/man-src/comment-unspam.txt b/man-src/comment-unspam.txt
deleted file mode 100644 (file)
index 1a055d2..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## OPTIONS
-
-* `<ID>`:
-
-       The ID of the comment to unmark as spam.
-
-## EXAMPLES
-
-       wp comment unspam 1337
diff --git a/man-src/comment-untrash.txt b/man-src/comment-untrash.txt
deleted file mode 100644 (file)
index 54fe15e..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## OPTIONS
-
-* `<ID>`:
-
-       The ID of the comment to untrash.
-
-## EXAMPLES
-
-       wp comment untrash 1337
diff --git a/man-src/core-config.txt b/man-src/core-config.txt
deleted file mode 100644 (file)
index 9945a05..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-## OPTIONS
-
-* `--dbname`=<dbname>:
-
-       Set the database name.
-
-* `--dbuser`=<dbuser>:
-
-       Set the database user.
-
-* `--dbpass`=<dbpass>:
-
-       Set the database user password.
-
-* `--dbhost`=<dbhost>:
-
-       Set the database host. Default: 'localhost'
-
-* `--dbprefix`=<dbprefix>:
-
-       Set the database table prefix. Default: 'wp_'
-
-* `--locale`=<locale>:
-
-       Set the WPLANG constant. Defaults to $wp_local_package variable.
-
-* `--extra-php`:
-
-       If set, the command reads additional PHP code from STDIN.
-
-## EXAMPLES
-
-       # Standard wp-config.php file
-       wp core config --dbname=testing --dbuser=wp --dbpass=securepswd --locale=ro_RO
-
-       # Enable WP_DEBUG and WP_DEBUG_LOG
-       wp core config --dbname=testing --dbuser=wp --dbpass=securepswd --extra-php <<PHP
-       define( 'WP_DEBUG', true );
-       define( 'WP_DEBUG_LOG', true );
-       PHP
diff --git a/man-src/core-download.txt b/man-src/core-download.txt
deleted file mode 100644 (file)
index a72ecc6..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-## OPTIONS
-
-* `--locale`=<locale>:
-
-       Select which language you want to download. The --version parameter is
-ignored in this case.
-
-* `--version`=<version>:
-
-       Select which version you want to download.
-
-* `--force`:
-
-       Overwrites existing files, if present.
-
-## EXAMPLES
-
-       wp core download --version=3.3
diff --git a/man-src/core-init-tests.txt b/man-src/core-init-tests.txt
deleted file mode 100644 (file)
index 55d72ea..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-## OPTIONS
-
-* `<path>`:
-
-       The directory in which to download the testing suite files. (Optional)
-
-* `--dbname`=<dbname>:
-
-       Set the database name. **WARNING**: The database will be whipped every time
-you run the tests.
-
-* `--dbuser`=<dbuser>:
-
-       Set the database user.
-
-* `--dbpass`=<dbpass>:
-
-       Set the database user password.
-
-## EXAMPLE
-
-       wp core init-tests ~/svn/wp-tests --dbname=wp_test --dbuser=wp_test
diff --git a/man-src/core-install.txt b/man-src/core-install.txt
deleted file mode 100644 (file)
index 711410e..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-## OPTIONS
-
-* `--url`=<url>:
-
-       The address of the new site.
-
-* `--title`=<site-title>:
-
-       The title of the new site.
-
-* `--admin_name`=<username>:
-
-       The name of the admin user. Default: 'admin'
-
-* `--admin_password`=<password>:
-
-       The password for the admin user.
-
-* `--admin_email`=<email>:
-
-       The email address for the admin user.
diff --git a/man-src/core-is-installed.txt b/man-src/core-is-installed.txt
deleted file mode 100644 (file)
index afccd6c..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-## EXAMPLES
-
-       if ! $(wp core is-installed); then
-               wp core install
-       fi
diff --git a/man-src/core-multisite-convert.txt b/man-src/core-multisite-convert.txt
deleted file mode 100644 (file)
index 24494f1..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-## OPTIONS
-
-* `--title`=<site-title>:
-
-       The title of the new network.
-
-* `--base`=<url-path>:
-
-       Base path after the domain name that each site url will start with.
-Default: '/'
-
-* `--subdomains`:
-
-       If passed, the network will use subdomains, instead of subdirectories.
diff --git a/man-src/core-multisite-install.txt b/man-src/core-multisite-install.txt
deleted file mode 100644 (file)
index eb9d7bd..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-## OPTIONS
-
-* `--url`=<url>:
-
-       The address of the new site.
-
-* `--base`=<url-path>:
-
-       Base path after the domain name that each site url in the network will start with.
-Default: '/'
-
-* `--subdomains`:
-
-       If passed, the network will use subdomains, instead of subdirectories.
-
-* `--title`=<site-title>:
-
-       The title of the new site.
-
-* `--admin_name`=<username>:
-
-       The name of the admin user. Default: 'admin'
-
-* `--admin_password`=<password>:
-
-       The password for the admin user.
-
-* `--admin_email`=<email>:
-
-       The email address for the admin user.
diff --git a/man-src/core-update-db.txt b/man-src/core-update-db.txt
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/man-src/core-update.txt b/man-src/core-update.txt
deleted file mode 100644 (file)
index 50caa5f..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-## OPTIONS
-
-* `--version=`<new_version> [package/zip]:
-
-       When passed, updates to new_version, optionally using package/zip as
-input.
-
-* `--force`:
-       Will update even when current WP version < passed version. Use with
-caution.
-
-## EXAMPLES
-
-       wp core update
-
-       wp core update --version=3.4 ../latest.zip
-
-       wp core update --version=3.1 --force
diff --git a/man-src/core-version.txt b/man-src/core-version.txt
deleted file mode 100644 (file)
index d1c5d6a..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-## OPTIONS
-
-* `--extra`:
-
-       Show extended version information.
diff --git a/man-src/db.txt b/man-src/db.txt
deleted file mode 100644 (file)
index d7ccfb7..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-## OPTIONS
-
-* `--yes`:
-
-       Answer yes to the confirmation message.
-
-* `<file>`:
-
-       The name of the export file. If omitted, it will be '{dbname}.sql'
-
-* `<SQL>`:
-
-       A SQL query.
-
-## EXAMPLES
-
-       # execute a query stored in a file
-       wp db query < debug.sql
diff --git a/man-src/eval-file.txt b/man-src/eval-file.txt
deleted file mode 100644 (file)
index 57a808c..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-## EXAMPLES
-
-       wp eval-file my-code.php
diff --git a/man-src/eval.txt b/man-src/eval.txt
deleted file mode 100644 (file)
index 699b93f..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-## EXAMPLES
-
-       wp eval 'echo WP_CONTENT_DIR;'
diff --git a/man-src/export.txt b/man-src/export.txt
deleted file mode 100644 (file)
index dcb8ea4..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-## OPTIONS
-
-* `--dir`=<dirname>:
-
-       Full path to directory where WXR export files should be stored. Defaults
-to current working directory.
-
-* `--skip_comments`:
-
-       Don't export comments.
-
-* `--file_item_count`=<count>:
-
-       Break export into files with N posts.
-
-* `--verbose`:
-
-       Show more information about the process on STDOUT.
-
-## FILTERS
-
-* `--start_date`=<date>:
-
-       Export only posts newer than this date, in format YYYY-MM-DD.
-
-* `--end_date`=<date>:
-
-       Export only posts older than this date, in format YYYY-MM-DD.
-
-* `--post_type`=<post_type>:
-
-       Export only posts with this post_type.
-
-* `--post__in`=<pid>:
-
-       Export all posts specified as a comma-separated list of IDs.
-
-* `--author`=<login/id>:
-
-       Export only posts by this author.
-
-* `--category`=<category-id>:
-
-       Export only posts in this category.
-
-* `--post_status`=<status>:
-
-       Export only posts with this status.
-
-## EXAMPLES
-
-       wp export --dir=/tmp/ --user=admin --post_type=post --start_date=2011-01-01 --end_date=2011-12-31
-
-       wp export --dir=/tmp/ --post__in=123,124,125
diff --git a/man-src/help.txt b/man-src/help.txt
deleted file mode 100644 (file)
index 19e660f..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-## EXAMPLES
-
-       # get help for `core` command
-       wp help core
-
-       # get help for `core download` subcommand
-       wp help core download
diff --git a/man-src/import.txt b/man-src/import.txt
deleted file mode 100644 (file)
index 5f4e3de..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-## OPTIONS
-
-* `<file>`:
-
-       Path to a valid WXR file for importing.
-
-* `--authors=<authors>`:
-
-       How the author mapping should be handled. Options are 'create', 'mapping.csv', or 'skip'. The first will create any non-existent users from the WXR file. The second will read author mapping associations from a CSV, or create a CSV for editing if the file path doesn't exist. The last option will skip any author mapping.
-
-* `--skip=<data-type>`:
-
-       Skip importing specific data. Supported option is 'attachment'.
diff --git a/man-src/media-import.txt b/man-src/media-import.txt
deleted file mode 100644 (file)
index 5f7e7d1..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-## OPTIONS
-
-* `<file>`:
-
-       Path to file or files to be imported. Supports the glob(3) capabilities of the current shell.
-       If file is recognized as a URL (for example, with a scheme of http or ftp), the file will be 
-       downloaded to a temp file before being sideloaded.
-
-* `--post_id=<post_id>`
-
-       ID of the post to attach the imported files to
-
-* `--title=<title>`
-
-       Attachment title (post title field)
-
-* `--caption=<caption>`
-
-       Caption for attachent (post excerpt field)
-
-* `--alt=<alt_text>`
-
-       Alt text for image (saved as post meta)
-
-* `--desc=<description>`
-
-       "Description" field (post content) of attachment post
-
-* `--featured_image`
-
-       If set, set the imported image as the Featured Image of the post its attached to.
-
-
-## EXAMPLES
-
-       # Import all jpgs in the current user's "Pictures" directory, not attached to any post
-       wp media import ~/Pictures/**/*.jpg
-
-       # Import a local image and set it to be the post thumbnail for a post
-       wp media import ~/Downloads/image.png --post_id=123 --title="A downloaded picture" --featured_image
-
-       # Import an image from the web
-       wp media import http://s.wordpress.org/style/images/wp-header-logo.png --title='The WordPress logo' --alt="Semantic personal publishing"
-
-
diff --git a/man-src/media-regenerate.txt b/man-src/media-regenerate.txt
deleted file mode 100644 (file)
index f873f53..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-## OPTIONS
-
-* `--yes`:
-
-       Answer yes to the confirmation message.
-
-* `<attachment-id>`:
-
-       One or more IDs of the attachments to regenerate.
-
-## EXAMPLES
-
-       wp media regenerate 123 1337
-
-       wp media regenerate --yes
\ No newline at end of file
diff --git a/man-src/network-meta.txt b/man-src/network-meta.txt
deleted file mode 100644 (file)
index c1899f2..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-## OPTIONS
-
-* `<id>`:
-
-       The network id (usually 1).
-
-* `--format=json`:
-
-       Encode/decode values as JSON.
-
-## EXAMPLES
-
-       # get a list of super-admins
-       wp network-meta get 1 site_admins
diff --git a/man-src/option.txt b/man-src/option.txt
deleted file mode 100644 (file)
index 99c8aab..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-## OPTIONS
-
-* `--format=json`:
-
-       Encode/decode values as JSON.
-
-## EXAMPLES
-
-       wp option get siteurl
-
-       wp option add my_option foobar
-
-       wp option update my_option '{"foo": "bar"}' --format=json
-
-       wp option delete my_option
diff --git a/man-src/plugin-activate.txt b/man-src/plugin-activate.txt
deleted file mode 100644 (file)
index 5558338..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## OPTIONS
-
-* `<plugin>`:
-
-       The plugin to activate.
-
-* `--network`:
-
-       If set, the plugin will be activated for the entire multisite network.
diff --git a/man-src/plugin-deactivate.txt b/man-src/plugin-deactivate.txt
deleted file mode 100644 (file)
index 12be808..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## OPTIONS
-
-* `<plugin>`:
-
-       The plugin to deactivate.
-
-* `--network`:
-
-       If set, the plugin will be deactivated for the entire multisite network.
diff --git a/man-src/plugin-delete.txt b/man-src/plugin-delete.txt
deleted file mode 100644 (file)
index 111865f..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## OPTIONS
-
-* <plugin>:
-
-       The plugin to delete.
-
-## EXAMPLES
-
-       wp plugin delete hello
diff --git a/man-src/plugin-install.txt b/man-src/plugin-install.txt
deleted file mode 100644 (file)
index e896cca..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-## OPTIONS
-
-* <plugin|zip|url>:
-
-       A plugin slug, the path to a local zip file, or URL to a remote zip file.
-
-* `--version`=<version>:
-
-       If set, get that particular version from wordpress.org, instead of the
-stable version.
-
-* `--force`:
-
-       If set, the command will overwrite any installed version of the plugin, without prompting
-for confirmation.
-
-* `--activate`:
-
-       If set, the plugin will be activated immediately after install.
-
-## EXAMPLES
-
-       # Install the latest version from wordpress.org and activate
-       wp plugin install bbpress --activate
-
-       # Install the development version from wordpress.org
-       wp plugin install bbpress --version=dev
-
-       # Install from a local zip file
-       wp plugin install ../my-plugin.zip
-
-       # Install from a remote zip file
-       wp plugin install http://s3.amazonaws.com/bucketname/my-plugin.zip?AWSAccessKeyId=123&Expires=456&Signature=abcdef
diff --git a/man-src/plugin-list.txt b/man-src/plugin-list.txt
deleted file mode 100644 (file)
index 8d2344d..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## OPTIONS
-
-* `--format`=<format>:
-
-  Output list as table, CSV or JSON. Defaults to table.
-
-## EXAMPLES
-
-  wp plugin list --format=json
diff --git a/man-src/plugin-path.txt b/man-src/plugin-path.txt
deleted file mode 100644 (file)
index a190a77..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-## OPTIONS
-
-* `<plugin>`:
-
-       The plugin to get the path to. If not set, will return the path to the
-plugins directory.
-
-* `--dir`:
-
-       If set, get the path to the closest parent directory, instead of the
-plugin file.
-
-## EXAMPLES
-
-       cd $(wp theme path)
diff --git a/man-src/plugin-status.txt b/man-src/plugin-status.txt
deleted file mode 100644 (file)
index 6902ac2..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-## OPTIONS
-
-* `<plugin>`:
-
-       A particular plugin to show the status for.
\ No newline at end of file
diff --git a/man-src/plugin-toggle.txt b/man-src/plugin-toggle.txt
deleted file mode 100644 (file)
index 97e284a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## OPTIONS
-
-* `<plugin>`:
-
-       The plugin to toggle.
-
-* `--network`:
-
-       If set, the plugin will be toggled for the entire multisite network.
diff --git a/man-src/plugin-uninstall.txt b/man-src/plugin-uninstall.txt
deleted file mode 100644 (file)
index ea41bcb..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-## OPTIONS
-
-* <plugin>:
-
-       The plugin to uninstall.
-
-* `--no-delete`:
-
-       If set, the plugin files will not be deleted. Only the uninstall procedure
-will be run.
-
-## EXAMPLES
-
-       wp plugin uninstall hello
diff --git a/man-src/plugin-update-all.txt b/man-src/plugin-update-all.txt
deleted file mode 100644 (file)
index 8ba4aaa..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## OPTIONS
-
-* `--dry-run`:
-
-       Pretend to do the updates, to see what would happen.
-
-## EXAMPLES
-
-       wp plugin update-all
diff --git a/man-src/plugin-update.txt b/man-src/plugin-update.txt
deleted file mode 100644 (file)
index 563c303..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-## OPTIONS
-
-* <plugin>:
-
-       The plugin to update.
-
-* `--version=dev`:
-
-       If set, the plugin will be updated to the latest development version,
-regardless of what version is currently installed.
-
-## EXAMPLES
-
-       wp plugin update bbpress --version=dev
diff --git a/man-src/post-create.txt b/man-src/post-create.txt
deleted file mode 100644 (file)
index 770713c..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-## OPTIONS
-
-* `<filename>`:
-
-       Read post content from <filename>. If this value is present, the 
-       `--post_content` argument will be ignored.
-
-       Passing `-` as the filename will cause post content to
-       be read from STDIN.
-
-* `--<field>`=<value>:
-
-       Field values for the new post. See wp_insert_post().
-
-* `--edit`:
-
-       Immediately open system's editor to write or edit post content. 
-       
-       (If content is read from a file, from STDIN, or from the `--post_content`
-       argument, that text will be loaded into the editor; otherwise, an empty
-       file will be opened.) 
-
-* `--porcelain`:
-
-       Output just the new post id.
-
-## EXAMPLES
-
-       wp post create --post_type=page --post_status=publish --post_title='A future post' --post-status=future --post_date='2020-12-01 07:00:00'
-
-       wp post create page.txt --post_type=page --post_title='Page from file'
diff --git a/man-src/post-delete.txt b/man-src/post-delete.txt
deleted file mode 100644 (file)
index d2a614b..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-## OPTIONS
-
-* `<ID>`:
-
-       The ID of the post to delete.
-
-* `--force`:
-
-       Skip the trash bin.
-
-## EXAMPLES
-
-       wp post delete 123 --force
-
-       wp post delete $(wp post list --post_type='page' --format=ids)
diff --git a/man-src/post-edit.txt b/man-src/post-edit.txt
deleted file mode 100644 (file)
index 6e36079..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## OPTIONS
-
-* `<id>`:
-
-       The ID of the post to edit.
-
-## EXAMPLES
-
-       wp post edit 123
diff --git a/man-src/post-generate.txt b/man-src/post-generate.txt
deleted file mode 100644 (file)
index 7dba04a..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-## OPTIONS
-
-* `--count`=<number>:
-
-       How many posts to generate. Default: 100
-
-* `--post_type`=<type>:
-
-       The type of the generated posts. Default: 'post'
-
-* `--post_status`=<status>:
-
-       The status of the generated posts. Default: 'publish'
-
-* `--post_author`=<login>:
-
-       The author of the generated posts. Default: none
-
-* `--post_date`=<yyyy-mm-dd>:
-
-       The date of the generated posts. Default: current date
-
-* `--max_depth`=<number>:
-
-       For hierarchical post types, generate child posts down to a certain depth. Default: 1
-
-## EXAMPLES
-
-       wp post generate --count=10 --post_type=page --post_date=1999-01-04
diff --git a/man-src/post-get.txt b/man-src/post-get.txt
deleted file mode 100644 (file)
index 9b79b9c..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-## OPTIONS
-
-* `[--format=<format>]`:
-
-       The format to use when printing the post, acceptable values:
-
-       **content**: Outputs only the post's content.
-
-       **table**: Outputs all fields of the post as a table. Note that the
-       post_content field is omitted so that the table is readable.
-
-       **json**: Outputs all fields in JSON format.
-
-* `<id>`:
-
-       The ID of the post to get.
-
-## EXAMPLES
-
-       wp post get 12 --format=content
-
-       wp post get 12 > file.txt
diff --git a/man-src/post-list.txt b/man-src/post-list.txt
deleted file mode 100644 (file)
index 098d41c..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-## OPTIONS
-
-* `--<field>`=<value>:
-
-       One or more args to pass to WP_Query.
-
-* `--fields`=<fields>:
-
-       Limit the output to specific object fields. Defaults to ID,post_title,post_name,post_date,post_status.
-
-* `--format`=<format>:
-
-       Output list as table, CSV, JSON, or simply IDs. Defaults to table.
-
-## EXAMPLES
-
-       wp post list --format=ids
-
-       wp post list --post_type=post --posts_per_page=5 --format=json
-
-       wp post list --post_type=page --fields=post_title,post_status
diff --git a/man-src/post-meta.txt b/man-src/post-meta.txt
deleted file mode 100644 (file)
index eeadc60..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## OPTIONS
-
-* `--format=json`:
-
-       Encode/decode values as JSON.
-
-## EXAMPLES
-
-       wp post-meta set 123 _wp_page_template about.php
diff --git a/man-src/post-update.txt b/man-src/post-update.txt
deleted file mode 100644 (file)
index 0fd825e..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-## OPTIONS
-
-* `<ID>`:
-
-       The ID of the post to update.
-
-* `--<field>`=<value>:
-
-       One or more fields to update. See wp_update_post().
-
-## EXAMPLES
-
-       wp post update 123 --post_name=something --post_status=draft
diff --git a/man-src/rewrite-dump.txt b/man-src/rewrite-dump.txt
deleted file mode 100644 (file)
index f15473d..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-## OPTIONS
-
-* `--format=json`:
-
-       Output rules in JSON format.
diff --git a/man-src/rewrite-flush.txt b/man-src/rewrite-flush.txt
deleted file mode 100644 (file)
index 60ae94a..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-## OPTIONS
-
-* `--soft`:
-
-       Perform a soft flush - do not overwrite `.htaccess`. The default is to update
-       `.htaccess` rules as well as rewrite rules in database.
-
diff --git a/man-src/rewrite-structure.txt b/man-src/rewrite-structure.txt
deleted file mode 100644 (file)
index 9dec9d8..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-## OPTIONS
-
-* <permastruct>:
-
-       The new permalink structure to apply; like "/%year%/%monthnum%/%postname%".
-
-* `--category-base`=<categorybase>:
-
-       Set the base for category permalinks, ie '/category/'.
-
-* `--tag-base`=<tagbase>:
-
-       Set the base for tag permalinks, ie '/tag/'.
-
diff --git a/man-src/role-create.txt b/man-src/role-create.txt
deleted file mode 100644 (file)
index dde7db5..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-## OPTIONS
-
-* <role-key>:
-
-    The internal name of the role, e.g. editor
-
-* <role-name>:
-
-    The publically visible name of the role, e.g. Editor
-
-## EXAMPLES
-
-    wp role create approver Approver
-
-    wp role create productadmin "Product Administrator"
diff --git a/man-src/role-delete.txt b/man-src/role-delete.txt
deleted file mode 100644 (file)
index f851924..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-## OPTIONS
-
-* <role-key>:
-
-    The internal name of the role, e.g. editor
-
-## EXAMPLES
-
-    wp role delete approver
-
-    wp role delete productadmin
-
diff --git a/man-src/role-exists.txt b/man-src/role-exists.txt
deleted file mode 100644 (file)
index 28a8ee0..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-## OPTIONS
-
-* <role-key>:
-
-    The internal name of the role, e.g. editor
-
-
-##DESCRIPTION
-
-Will exit with status 0 if the role exists, 1 if it does not.
-
-
-## EXAMPLES
-
-    wp role exists editor
-
diff --git a/man-src/role-list.txt b/man-src/role-list.txt
deleted file mode 100644 (file)
index 2b79401..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-## OPTIONS
-
-* `--fields`=<fields>:
-
-       Limit the output to specific object fields. Defaults to name,role.
-
-* `--format`=<format>:
-
-       Output list as table, CSV or JSON. Defaults to table.
-
-## EXAMPLES
-
-    wp role list --fields=role --format=csv
diff --git a/man-src/scaffold-_s.txt b/man-src/scaffold-_s.txt
deleted file mode 100644 (file)
index 82c57a8..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-## OPTIONS
-
-* <slug>:
-
-       The slug for the new theme, used for prefixing functions.
-
-* `--activate`:
-
-       Activate the newly downloaded theme.
-
-* `--theme_name=<title>`:
-
-       What to put in the 'Theme Name:' header in style.css
-
-* `--author=<full name>`:
-
-       What to put in the 'Author:' header in style.css
-
-* `--author_uri=<http url>`:
-
-       What to put in the 'Author URI:' header in style.css
\ No newline at end of file
diff --git a/man-src/scaffold-child-theme.txt b/man-src/scaffold-child-theme.txt
deleted file mode 100644 (file)
index 2f05ab2..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-## OPTIONS
-
-* <slug>:
-
-       The slug for the new child theme.
-
-* `--parent_theme=<slug>`:
-
-       What to put in the 'Template:' header in style.css
-
-* `--theme_name=<title>`:
-
-       What to put in the 'Theme Name:' header in style.css
-
-* `--author=<full name>`:
-
-       What to put in the 'Author:' header in style.css
-
-* `--author_uri=<http url>`:
-
-       What to put in the 'Author URI:' header in style.css
-
-* `--theme_uri=<http url>`:
-
-       What to put in the 'Theme URI:' header in style.css
-
-* `--activate`:
-
-       Activate the newly created child theme.
diff --git a/man-src/scaffold-plugin-tests.txt b/man-src/scaffold-plugin-tests.txt
deleted file mode 100644 (file)
index 7224977..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-## DESCRIPTION
-
-These are the files that are generated:
-
-* `phpunit.xml` is the configuration file for PHPUnit
-* `.travis.yml` is the configuration file for Travis CI
-* `tests/bootstrap.php` is the file that makes the current plugin active when running the test suite
-* `tests/test-sample.php` is a sample file containing the actual tests
-
-## ENVIRONMENT
-
-The `tests/bootstrap.php` file looks for the WP_TESTS_DIR environment
-variable.
-
-## EXAMPLE
-
-       wp scaffold plugin-tests hello
diff --git a/man-src/scaffold-plugin.txt b/man-src/scaffold-plugin.txt
deleted file mode 100644 (file)
index bea18ef..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## OPTIONS
-
-* `--activate`:
-
-       Activate the newly generated plugin.
-
-* `--plugin_name=<title>`:
-
-       What to put in the 'Plugin Name:' header
diff --git a/man-src/scaffold-post-type.txt b/man-src/scaffold-post-type.txt
deleted file mode 100644 (file)
index e164c1f..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-## OPTIONS
-
-* `--label=<label>`:
-
-       The text used to translate the update messages
-
-* `--textdomain=<textdomain>`:
-
-       The textdomain to use for the labels.
-
-* `--theme`:
-
-       Create a file in the active theme directory, instead of sending to
-STDOUT. Specify a theme with `--theme=<theme>` to have the file placed in that theme.
-
-* `--plugin=<plugin>`:
-
-       Create a file in the given plugin's directory, instead of sending to
-STDOUT.
-
-* `--raw`:
-
-       Just generate the `register_post_type()` call and nothing else.
diff --git a/man-src/scaffold-taxonomy.txt b/man-src/scaffold-taxonomy.txt
deleted file mode 100644 (file)
index 1015bf5..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-## OPTIONS
-
-* `--post_types=<post_types>`:
-
-       Post types to register for use with the taxonomy.
-
-* `--label=<label>`:
-
-       The text used to translate the update messages
-
-* `--textdomain=<textdomain>`:
-
-       The textdomain to use for the labels.
-
-* `--theme`:
-
-       Create a file in the active theme directory, instead of sending to
-STDOUT. Specify a theme with `--theme=<theme>` to have the file placed in that theme.
-
-* `--plugin=<plugin>`:
-
-       Create a file in the given plugin's directory, instead of sending to
-STDOUT.
-
-* `--raw`:
-
-       Just generate the `register_taxonomy()` call and nothing else.
-
-## EXAMPLES
-
-       wp scaffold taxonomy venue --post_types=event,presentation
diff --git a/man-src/search-replace.txt b/man-src/search-replace.txt
deleted file mode 100644 (file)
index 812dfcc..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-## DESCRIPTION
-
-This command will go through all rows in all tables and will replace all appearances of the old string with the new one.
-
-It will correctly handle serialized values, and will not change primary key values.
-
-## OPTIONS
-
-* `--network`:
-
-       Search/replace through all the tables in a multisite install.
-
-* `--skip-columns=<columns>`:
-
-       Do not perform the replacement in the comma-separated columns.
-
-* `--dry-run`:
-
-       Show report, but don't perform the changes.
-
-## EXAMPLES
-
-       wp search-replace 'http://example.dev' 'http://example.com' --skip-columns=guid
-
-       wp search-replace 'foo' 'bar' wp_posts wp_postmeta wp_terms --dry-run
diff --git a/man-src/shell.txt b/man-src/shell.txt
deleted file mode 100644 (file)
index 7dd583a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## DESCRIPTION
-
-`wp shell` allows you to evaluate PHP statements and expressions interactively, from within a WordPress environment. This means that you have access to all the functions, classes and globals that you would have access to from inside a WordPress plugin, for example.
-
-## OPTIONS
-
-* `--basic`:
-
-       Start in fail-safe mode, even if Boris is available.
diff --git a/man-src/site-create.txt b/man-src/site-create.txt
deleted file mode 100644 (file)
index 84c3df9..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-## OPTIONS
-
-* `--slug`=<slug>:
-
-       Path for the new site. Subdomain on subdomain installs, directory on subdirectory installs.
-
-* `--title`=<title&gt;:
-
-       Title of the new site. Default: prettified slug.
-
-* `--email`=<email>:
-
-       Email for Admin user. User will be created if none exists. Assignement to Super Admin if not included.
-
-* `--network_id`=<network-id>:
-
-       Network to associate new site with. Defaults to current network (typically 1).
-
-* `--private`:
-
-       If set, the new site will be non-public (not indexed)
-
-* `--porcelain`:
-
-       If set, only the site id will be output on success.
diff --git a/man-src/site-delete.txt b/man-src/site-delete.txt
deleted file mode 100644 (file)
index f119826..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-## OPTIONS
-
-* `<blog-id>`:
-
-       The id of the blog to delete. If not provided, you must set the --slug parameter.
-
-* `--slug`=<slug>:
-
-       Path of the blog to be deleted. Subdomain on subdomain installs, directory on subdirectory installs.
-
-* `--yes`:
-
-       Answer yes to the confirmation message.
-
-* `--keep-tables`:
-
-       Delete the blog from the list, but don't drop it's tables.
diff --git a/man-src/site-empty.txt b/man-src/site-empty.txt
deleted file mode 100644 (file)
index bbb41c5..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-## OPTIONS
-
-* `--yes`:
-
-       Proceed to empty the site without a confirmation prompt.
\ No newline at end of file
diff --git a/man-src/term-create.txt b/man-src/term-create.txt
deleted file mode 100644 (file)
index 46b85b9..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-## OPTIONS
-
-* `<term>`:
-
-       A name for the new term.
-
-* `<taxonomy>`:
-
-       Taxonomy for the new term.
-
-* `--slug`=<slug>:
-
-       A unique slug for the new term. Defaults to sanitized version of name.
-
-* `--description`=<description>:
-
-       A description for the new term.
-
-* `--parent`=<term-id>:
-
-       A parent for the new term.
-
-* `--porcelain`:
-
-       Output just the new term id.
-
-## EXAMPLES
-
-       wp term create Apple category --description="A type of fruit"
diff --git a/man-src/term-delete.txt b/man-src/term-delete.txt
deleted file mode 100644 (file)
index 03f2309..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-## OPTIONS
-
-* `<term-id>`:
-
-       ID for the term to delete.
-
-* `<taxonomy>`:
-
-       Taxonomy of the term to delete.
-
-## EXAMPLES
-
-       wp term delete 15 category
\ No newline at end of file
diff --git a/man-src/term-list.txt b/man-src/term-list.txt
deleted file mode 100644 (file)
index 18cd0a4..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-## OPTIONS
-
-* `<taxonomy>`:
-
-       List terms of a given taxonomy.
-
-* `--fields`=<fields>:
-
-       Limit the output to specific object fields. Defaults to all of the term object fields.
-
-* `--format`=<format>:
-
-       Output list as table, CSV, JSON, or simply IDs. Defaults to table.
-
-## EXAMPLES
-
-       wp term list category --format=csv
-
-       wp term list post_tag --fields=name,slug
diff --git a/man-src/term-update.txt b/man-src/term-update.txt
deleted file mode 100644 (file)
index cc6bc6c..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-## OPTIONS
-
-* `<term-id>`:
-
-       ID for the term to update.
-
-* `<taxonomy>`:
-
-       Taxonomy of the term to update.
-
-* `--name`=<name>:
-
-       A new name for the term.
-
-* `--slug`=<slug>:
-
-       A new slug for the term.
-
-* `--description`=<description>:
-
-       A new description for the term.
-
-* `--parent`=<term-id>:
-
-       A new parent for the term.
-
-## EXAMPLES
-
-       wp term update 15 category --name=Apple
diff --git a/man-src/theme-activate.txt b/man-src/theme-activate.txt
deleted file mode 100644 (file)
index c740472..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-## OPTIONS
-
-* `<theme>`:
-
-       The theme to activate.
diff --git a/man-src/theme-delete.txt b/man-src/theme-delete.txt
deleted file mode 100644 (file)
index 030f781..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## OPTIONS
-
-* `<theme>`:
-
-       The theme to delete.
-
-## EXAMPLES
-
-       wp theme delete twentyeleven
diff --git a/man-src/theme-install.txt b/man-src/theme-install.txt
deleted file mode 100644 (file)
index b8eced7..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-## OPTIONS
-
-* `<theme|zip|url>`:
-
-       A theme slug, the path to a local zip file, or URL to a remote zip file.
-
-* `--force`:
-
-       If set, the command will overwrite any installed version of the theme, without prompting
-for confirmation.
-
-* `--activate`:
-
-       If set, the theme will be activated immediately after install.
-
-## EXAMPLES
-
-       # Install the latest version from wordpress.org and activate
-       wp theme install twentytwelve --activate
-
-       # Install from a local zip file
-       wp theme install ../my-theme.zip
-
-       # Install from a remote zip file
-       wp theme install http://s3.amazonaws.com/bucketname/my-theme.zip?AWSAccessKeyId=123&Expires=456&Signature=abcdef
diff --git a/man-src/theme-list.txt b/man-src/theme-list.txt
deleted file mode 100644 (file)
index b875cae..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## OPTIONS
-
-* `--format`=<format>:
-
-  Output list as table, CSV or JSON. Defaults to table.
-
-## EXAMPLES
-
-  wp theme list --format=csv
diff --git a/man-src/theme-path.txt b/man-src/theme-path.txt
deleted file mode 100644 (file)
index d54cec5..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-## OPTIONS
-
-* `<theme>`:
-
-       The theme to get the path to. If not set, will return the path to the
-themes directory.
-
-* `--dir`:
-
-       If set, get the path to the closest parent directory, instead of the
-theme file.
-
-## EXAMPLES
-
-       cd $(wp theme path)
diff --git a/man-src/theme-status.txt b/man-src/theme-status.txt
deleted file mode 100644 (file)
index f4aa713..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-## OPTIONS
-
-* `<theme>`:
-
-       A particular theme to show the status for.
diff --git a/man-src/theme-update-all.txt b/man-src/theme-update-all.txt
deleted file mode 100644 (file)
index 5d24e29..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## OPTIONS
-
-* `--dry-run`:
-
-       Pretend to do the updates, to see what would happen.
-
-## EXAMPLES
-
-       wp theme update-all
diff --git a/man-src/theme-update.txt b/man-src/theme-update.txt
deleted file mode 100644 (file)
index b7e6109..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-## OPTIONS
-
-* `<theme>`:
-
-       The theme to update.
-
-* `--version=dev`:
-
-       If set, the theme will be updated to the latest development version,
-regardless of what version is currently installed.
-
-## EXAMPLES
-
-       wp theme update twentytwelve
diff --git a/man-src/transient.txt b/man-src/transient.txt
deleted file mode 100644 (file)
index 64dcebe..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-## EXAMPLES
-
-       wp transient set my_key my_value 300
diff --git a/man-src/user-add-role.txt b/man-src/user-add-role.txt
deleted file mode 100644 (file)
index b6e5ab4..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-## OPTIONS
-
-* `<user>`:
-
-       User ID or user login.
-
-* `<role>`:
-
-       Add the specified role to the user.
-
-## EXAMPLES
-
-       wp user set-role bob author
-       wp user set-role 12 author
diff --git a/man-src/user-create.txt b/man-src/user-create.txt
deleted file mode 100644 (file)
index 8b86009..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-## OPTIONS
-
-* `<user-login>`:
-
-       The login of the user to create.
-
-* `<user-email>`:
-
-       The email address of the user to create.
-
-* `--role`=<role>:
-
-       The role of the user to create. Default: default role
-
-* `--user_pass`=<password>:
-
-       The user password. Default: randomly generated
-
-* `--user_registered`=<yyyy-mm-dd>:
-
-       The date the user registered. Default: current date
-
-* `--display_name`=<name>:
-
-       The display name.
-
-* `--porcelain`:
-
-       Output just the new user id.
-
-## EXAMPLES
-
-       wp user create bob bob@example.com --role=author
diff --git a/man-src/user-delete.txt b/man-src/user-delete.txt
deleted file mode 100644 (file)
index 88d8966..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-## OPTIONS
-
-* `<user>`:
-
-       The user login or ID of the user to delete.
-
-* `--reassign`=<ID>:
-
-       User to reassign the posts to.
-
-## EXAMPLES
-
-       wp user delete 123 --reassign=567
diff --git a/man-src/user-generate.txt b/man-src/user-generate.txt
deleted file mode 100644 (file)
index a2467ab..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## OPTIONS
-
-* `--count`=<number>:
-
-       How many users to generate. Default: 100
-
-* `--role`=<role>:
-
-       The role of the generated users. Default: default role from WP
diff --git a/man-src/user-get.txt b/man-src/user-get.txt
deleted file mode 100644 (file)
index 9493599..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-## OPTIONS
-
-* `[--format=<format>]`:
-
-       The format to use when printing the user; acceptable values:
-
-       **table**: Outputs all fields of the user as a table.
-
-       **json**: Outputs all fields in JSON format.
-
-* `<user>`:
-
-       User ID or user login.
-
-## EXAMPLES
-
-       wp user get 12
-
-       wp user get bob --format=json > bob.json
diff --git a/man-src/user-import-csv.txt b/man-src/user-import-csv.txt
deleted file mode 100644 (file)
index e896337..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-## OPTIONS
-
-* `<file>`:
-
-       The CSV file of users to import.
-
-## EXAMPLES
-
-       wp user import-csv /path/to/users.csv
-
-       Sample users.csv file:
-
-       user_login,user_email,display_name,role
-       bobjones,bobjones@domain.com,Bob Jones,contributor
-       newuser1,newuser1@domain.com,New User,author
-       existinguser,existinguser@domain.com,Existing User,administrator
diff --git a/man-src/user-list.txt b/man-src/user-list.txt
deleted file mode 100644 (file)
index 0aa7951..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-## OPTIONS
-
-* `--role`=<role>:
-
-       Only display users with a certain role.
-
-* `--fields`=<fields>:
-
-       Limit the output to specific object fields. Defaults to ID,user_login,display_name,user_email,user_registered,roles
-
-* `--format`=<format>:
-
-       Output list as table, CSV, JSON, or simply IDs. Defaults to table.
-
-## EXAMPLES
-
-       wp user list --format=ids
-
-       wp user list --role=administrator --format=csv
-
-       wp user list --fields=display_name,user_email
diff --git a/man-src/user-meta.txt b/man-src/user-meta.txt
deleted file mode 100644 (file)
index 94d507c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## OPTIONS
-
-* `--format=json`:
-
-       Encode/decode values as JSON.
-
-## EXAMPLES
-
-       wp user-meta set 123 description "Mary is a WordPress developer."
diff --git a/man-src/user-remove-role.txt b/man-src/user-remove-role.txt
deleted file mode 100644 (file)
index b4a77e4..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-## OPTIONS
-
-* `<user>`:
-
-       User ID or user login.
-
-## EXAMPLES
-
-       wp user remove-role bob
-       wp user remove-role 12
diff --git a/man-src/user-set-role.txt b/man-src/user-set-role.txt
deleted file mode 100644 (file)
index 4817f74..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-## OPTIONS
-
-* `<user>`:
-
-       User ID or user login.
-
-* `[<role>]`:
-
-       Make the user have the specified role. If not passed, the default role is
-used.
-
-## EXAMPLES
-
-       wp user set-role bob author
-       wp user set-role 12 author
diff --git a/man-src/user-update.txt b/man-src/user-update.txt
deleted file mode 100644 (file)
index 092ab8b..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-## OPTIONS
-
-* `<user>`:
-
-       The user login or ID of the user to update.
-
-* `--<field>`=<value>:
-
-       One or more fields to update. For accepted fields, see wp_update_user().
-
-## EXAMPLES
-
-       wp user update 123 --user_login=mary --display_name=Mary
-
-       wp user update mary --user_pass=marypass
index 4516e7e..e522c4b 100644 (file)
@@ -3,7 +3,11 @@
 /**
  * Manage the object cache.
  *
- * @package wp-cli
+ * ## EXAMPLES
+ *
+ *     wp cache set my_key my_value my_group 300
+ *
+ *     wp cache get my_key my_group
  */
 class Cache_Command extends WP_CLI_Command {
 
index 3100428..97d8411 100644 (file)
@@ -3,7 +3,16 @@
 /**
  * Manage user capabilities.
  *
- * @package wp-cli
+ * ## EXAMPLES
+ *
+ *     # Add 'spectate' capability to 'author' role
+ *     wp cap add 'author' 'spectate'
+ *
+ *     # Add all caps from 'editor' role to 'author' role
+ *     wp cap list 'editor' | xargs wp cap add 'author'
+ *
+ *     # Remove all caps from 'editor' role that also appear in 'author' role
+ *     wp cap list 'author' | xargs wp cap remove 'editor'
  */
 class Capabilities_Command extends WP_CLI_Command {
 
index dd5442c..179b08a 100644 (file)
@@ -10,6 +10,18 @@ class Comment_Command extends WP_CLI_Command {
        /**
         * Insert a comment.
         *
+        * ## OPTIONS
+        *
+        * --<field>=<value>
+        * : Field values for the new comment. See wp_insert_comment().
+        *
+        * --porcelain
+        * : Output just the new comment id.
+        *
+        * ## EXAMPLES
+        *
+        *     wp comment create --comment_post_ID=15 --comment_content="hello blog" --comment_author="wp-cli"
+        *
         * @synopsis --<field>=<value> [--porcelain]
         */
        public function create( $args, $assoc_args ) {
@@ -34,6 +46,18 @@ class Comment_Command extends WP_CLI_Command {
        /**
         * Delete a comment.
         *
+        * ## OPTIONS
+        *
+        * <ID>
+        * : The ID of the comment to delete.
+        *
+        * --force
+        * : Skip the trash bin.
+        *
+        * ## EXAMPLES
+        *
+        *     wp comment delete 1337 --force
+        *
         * @synopsis <id> [--force]
         */
        public function delete( $args, $assoc_args ) {
@@ -73,6 +97,15 @@ class Comment_Command extends WP_CLI_Command {
        /**
         * Trash a comment.
         *
+        * ## OPTIONS
+        *
+        * <ID>
+        * : The ID of the comment to trash.
+        *
+        * ## EXAMPLES
+        *
+        *     wp comment trash 1337
+        *
         * @synopsis <id>
         */
        public function trash( $args, $assoc_args ) {
@@ -82,6 +115,15 @@ class Comment_Command extends WP_CLI_Command {
        /**
         * Untrash a comment.
         *
+        * ## OPTIONS
+        *
+        * <ID>
+        * : The ID of the comment to untrash.
+        *
+        * ## EXAMPLES
+        *
+        *     wp comment untrash 1337
+        *
         * @synopsis <id>
         */
        public function untrash( $args, $assoc_args ) {
@@ -91,6 +133,15 @@ class Comment_Command extends WP_CLI_Command {
        /**
         * Spam a comment.
         *
+        * ## OPTIONS
+        *
+        * <ID>
+        * : The ID of the comment to mark as spam.
+        *
+        * ## EXAMPLES
+        *
+        *     wp comment spam 1337
+        *
         * @synopsis <id>
         */
        public function spam( $args, $assoc_args ) {
@@ -100,6 +151,14 @@ class Comment_Command extends WP_CLI_Command {
        /**
         * Unspam a comment.
         *
+        * ## OPTIONS
+        *
+        * <ID>
+        * : The ID of the comment to unmark as spam.
+        *
+        * ## EXAMPLES
+        *
+        *     wp comment unspam 1337
         * @synopsis <id>
         */
        public function unspam( $args, $assoc_args ) {
@@ -109,6 +168,15 @@ class Comment_Command extends WP_CLI_Command {
        /**
         * Approve a comment.
         *
+        * ## OPTIONS
+        *
+        * <ID>
+        * : The ID of the comment to approve.
+        *
+        * ## EXAMPLES
+        *
+        *     wp comment approve 1337
+        *
         * @synopsis <id>
         */
        public function approve( $args, $assoc_args ) {
@@ -118,6 +186,15 @@ class Comment_Command extends WP_CLI_Command {
        /**
         * Unapprove a comment.
         *
+        * ## OPTIONS
+        *
+        * <ID>
+        * : The ID of the comment to unapprove.
+        *
+        * ## EXAMPLES
+        *
+        *     wp comment unapprove 1337
+        *
         * @synopsis <id>
         */
        public function unapprove( $args, $assoc_args ) {
@@ -127,6 +204,16 @@ class Comment_Command extends WP_CLI_Command {
        /**
         * Count comments, on whole blog or on a given post.
         *
+        * ## OPTIONS
+        *
+        * <ID>
+        * : The ID of the post to count comments in
+        *
+        * ## EXAMPLES
+        *
+        *     wp comment count
+        *     wp comment count 42
+        *
         * @synopsis [<post-id>]
         */
        public function count( $args, $assoc_args ) {
@@ -147,6 +234,15 @@ class Comment_Command extends WP_CLI_Command {
        /**
         * Get status of a comment.
         *
+        * ## OPTIONS
+        *
+        * <ID>
+        * : The ID of the comment to check
+        *
+        * ## EXAMPLES
+        *
+        *     wp comment status 1337
+        *
         * @synopsis <id>
         */
        public function status( $args, $assoc_args ) {
@@ -164,6 +260,18 @@ class Comment_Command extends WP_CLI_Command {
        /**
         * Get last approved comment.
         *
+        * ## OPTIONS
+        *
+        * --id
+        * : Output just the last comment id.
+        *
+        * --full
+        * : Output complete comment information.
+        *
+        * ## EXAMPLES
+        *
+        *     wp comment last --full
+        *
         * @synopsis [--id] [--full]
         */
        function last( $args = array(), $assoc_args = array() ) {
index eaa2901..5d21f82 100644 (file)
@@ -12,6 +12,22 @@ class Core_Command extends WP_CLI_Command {
        /**
         * Download core WordPress files.
         *
+        * ## OPTIONS
+        *
+        * --locale=<locale>
+        * : Select which language you want to download. The --version parameter is
+        * ignored in this case.
+        *
+        * --version=<version>
+        * : Select which version you want to download.
+        *
+        * --force
+        * : Overwrites existing files, if present.
+        *
+        * ## EXAMPLES
+        *
+        *     wp core download --version=3.3
+        *
         * @synopsis [--locale=<locale>] [--version=<version>] [--path=<path>] [--force]
         *
         * @when before_wp_load
@@ -75,6 +91,40 @@ class Core_Command extends WP_CLI_Command {
        /**
         * Set up a wp-config.php file.
         *
+        * ## OPTIONS
+        *
+        * --dbname=<dbname>
+        * : Set the database name.
+        *
+        * --dbuser=<dbuser>
+        * : Set the database user.
+        *
+        * --dbpass=<dbpass>
+        * : Set the database user password.
+        *
+        * --dbhost=<dbhost>
+        * : Set the database host. Default: 'localhost'
+        *
+        * --dbprefix=<dbprefix>
+        * : Set the database table prefix. Default: 'wp_'
+        *
+        * --locale=<locale>
+        * : Set the WPLANG constant. Defaults to $wp_local_package variable.
+        *
+        * --extra-php
+        * : If set, the command reads additional PHP code from STDIN.
+        *
+        * ## EXAMPLES
+        *
+        *     # Standard wp-config.php file
+        *     wp core config --dbname=testing --dbuser=wp --dbpass=securepswd --locale=ro_RO
+        *
+        *     # Enable WP_DEBUG and WP_DEBUG_LOG
+        *     wp core config --dbname=testing --dbuser=wp --dbpass=securepswd --extra-php <<PHP
+        *     define( 'WP_DEBUG', true );
+        *     define( 'WP_DEBUG_LOG', true );
+        *     PHP
+        *
         * @synopsis --dbname=<name> --dbuser=<user> [--dbpass=<password>] [--dbhost=<host>] [--dbprefix=<prefix>] [--locale=<locale>] [--extra-php]
         */
        public function config( $_, $assoc_args ) {
@@ -118,6 +168,12 @@ class Core_Command extends WP_CLI_Command {
        /**
         * Determine if the WordPress tables are installed.
         *
+        * ## EXAMPLES
+        *
+        *     if ! $(wp core is-installed); then
+        *         wp core install
+        *     fi
+        *
         * @subcommand is-installed
         */
        public function is_installed() {
@@ -131,6 +187,23 @@ class Core_Command extends WP_CLI_Command {
        /**
         * Create the WordPress tables in the database.
         *
+        * ## OPTIONS
+        *
+        * --url=<url>
+        * : The address of the new site.
+        *
+        * --title=<site-title>
+        * : The title of the new site.
+        *
+        * --admin_name=<username>
+        * : The name of the admin user. Default: 'admin'
+        *
+        * --admin_password=<password>
+        * : The password for the admin user.
+        *
+        * --admin_email=<email>
+        * : The email address for the admin user.
+        *
         * @synopsis --url=<url> --title=<site-title> [--admin_name=<username>] --admin_email=<email> --admin_password=<password>
         */
        public function install( $args, $assoc_args ) {
@@ -144,6 +217,18 @@ class Core_Command extends WP_CLI_Command {
        /**
         * Transform a single-site install into a multi-site install.
         *
+        * ## OPTIONS
+        *
+        * --title=<site-title>
+        * : The title of the new network.
+        *
+        * --base=<url-path>
+        * : Base path after the domain name that each site url will start with.
+        * Default: '/'
+        *
+        * --subdomains
+        * : If passed, the network will use subdomains, instead of subdirectories.
+        *
         * @subcommand multisite-convert
         * @alias install-network
         * @synopsis [--title=<network-title>] [--base=<url-path>] [--subdomains]
@@ -165,6 +250,30 @@ class Core_Command extends WP_CLI_Command {
        /**
         * Install multisite from scratch.
         *
+        * ## OPTIONS
+        *
+        * --url=<url>
+        * : The address of the new site.
+        *
+        * --base=<url-path>
+        * : Base path after the domain name that each site url in the network will start with.
+        * Default: '/'
+        *
+        * --subdomains
+        * : If passed, the network will use subdomains, instead of subdirectories.
+        *
+        * --title=<site-title>
+        * : The title of the new site.
+        *
+        * --admin_name=<username>
+        * : The name of the admin user. Default: 'admin'
+        *
+        * --admin_password=<password>
+        * : The password for the admin user.
+        *
+        * --admin_email=<email>
+        * : The email address for the admin user.
+        *
         * @subcommand multisite-install
         * @synopsis --url=<url> --title=<site-title> [--base=<url-path>] [--subdomains] [--admin_name=<username>] --admin_email=<email> --admin_password=<password>
         */
@@ -374,6 +483,11 @@ define('BLOG_ID_CURRENT_SITE', 1);
        /**
         * Display the WordPress version.
         *
+        * ## OPTIONS
+        *
+        * --extra
+        * : Show extended version information.
+        *
         * @synopsis [--extra]
         */
        public function version( $args = array(), $assoc_args = array() ) {
@@ -399,6 +513,24 @@ define('BLOG_ID_CURRENT_SITE', 1);
        /**
         * Update WordPress.
         *
+        * ## OPTIONS
+        *
+        * --version=<new_version> [package/zip]
+        * : When passed, updates to new_version, optionally using package/zip as
+        * input.
+        *
+        * --force
+        * : Will update even when current WP version < passed version. Use with
+        * caution.
+        *
+        * ## EXAMPLES
+        *
+        *     wp core update
+        *
+        *     wp core update --version=3.4 ../latest.zip
+        *
+        *     wp core update --version=3.1 --force
+        *
         * @alias upgrade
         *
         * @synopsis [<zip>] [--version=<version>] [--force]
@@ -480,6 +612,25 @@ define('BLOG_ID_CURRENT_SITE', 1);
         *
         * @subcommand init-tests
         *
+        * ## OPTIONS
+        *
+        * <path>
+        * : The directory in which to download the testing suite files. (Optional)
+        *
+        * --dbname=<dbname>
+        * : Set the database name. **WARNING**: The database will be whipped every time
+        * you run the tests.
+        *
+        * --dbuser=<dbuser>
+        * : Set the database user.
+        *
+        * --dbpass=<dbpass>
+        * : Set the database user password.
+        *
+        * ## EXAMPLE
+        *
+        *     wp core init-tests ~/svn/wp-tests --dbname=wp_test --dbuser=wp_test
+        *
         * @synopsis [<path>] --dbname=<name> --dbuser=<user> [--dbpass=<password>] [--dbhost=<host>]
         */
        function init_tests( $args, $assoc_args ) {
index 662306d..66ed93d 100644 (file)
@@ -5,7 +5,21 @@ use \WP_CLI\Utils;
 /**
  * Perform basic database operations.
  *
- * @package wp-cli
+ * ## OPTIONS
+ *
+ * --yes
+ * : Answer yes to the confirmation message.
+ *
+ * <file>
+ * : The name of the export file. If omitted, it will be '{dbname}.sql'
+ *
+ * <SQL>
+ * : A SQL query.
+ *
+ * ## EXAMPLES
+ *
+ *     # execute a query stored in a file
+ *     wp db query < debug.sql
  */
 class DB_Command extends WP_CLI_Command {
 
index e1c60b9..330c384 100644 (file)
@@ -5,6 +5,10 @@ class EvalFile_Command extends WP_CLI_Command {
        /**
         * Load and execute a PHP file after loading WordPress.
         *
+        * ## EXAMPLES
+        *
+        *     wp eval-file my-code.php
+        *
         * @synopsis <path>
         */
        public function __invoke( $args, $assoc_args ) {
index 02b97c6..782752b 100644 (file)
@@ -5,6 +5,10 @@ class Eval_Command extends WP_CLI_Command {
        /**
         * Execute arbitrary PHP code after loading WordPress.
         *
+        * ## EXAMPLES
+        *
+        *     wp eval 'echo WP_CONTENT_DIR;'
+        *
         * @synopsis <php-code>
         */
        public function __invoke( $args, $assoc_args ) {
index 3bde8c3..173ad2d 100644 (file)
@@ -11,6 +11,50 @@ class Export_Command extends WP_CLI_Command {
        /**
         * Export content to a WXR file.
         *
+        * ## OPTIONS
+        *
+        * --dir=<dirname>
+        * : Full path to directory where WXR export files should be stored. Defaults
+        * to current working directory.
+        *
+        * --skip_comments
+        * : Don't export comments.
+        *
+        * --file_item_count=<count>
+        * : Break export into files with N posts.
+        *
+        * --verbose
+        * : Show more information about the process on STDOUT.
+        *
+        * ## FILTERS
+        *
+        * --start_date=<date>
+        * : Export only posts newer than this date, in format YYYY-MM-DD.
+        *
+        * --end_date=<date>
+        * : Export only posts older than this date, in format YYYY-MM-DD.
+        *
+        * --post_type=<post_type>
+        * : Export only posts with this post_type.
+        *
+        * --post__in=<pid>
+        * : Export all posts specified as a comma-separated list of IDs.
+        *
+        * --author=<login/id>
+        * : Export only posts by this author.
+        *
+        * --category=<category-id>
+        * : Export only posts in this category.
+        *
+        * --post_status=<status>
+        * : Export only posts with this status.
+        *
+        * ## EXAMPLES
+        *
+        *     wp export --dir=/tmp/ --user=admin --post_type=post --start_date=2011-01-01 --end_date=2011-12-31
+        *
+        *     wp export --dir=/tmp/ --post__in=123,124,125
+        *
         * @synopsis [--dir=<dir>] [--start_date=<date>] [--end_date=<date>] [--post_type=<ptype>] [--post_status=<status>] [--post__in=<pids>] [--author=<login>] [--category=<cat>] [--skip_comments] [--file_item_count=<count>] [--verbose]
         */
        public function __invoke( $_, $assoc_args ) {
index 0e074f0..93fc6ab 100644 (file)
@@ -8,6 +8,14 @@ class Help_Command extends WP_CLI_Command {
        /**
         * Get help on a certain command.
         *
+        * ## EXAMPLES
+        *
+        *     # get help for `core` command
+        *     wp help core
+        *
+        *     # get help for `core download` subcommand
+        *     wp help core download
+        *
         * @synopsis [<command>]
         */
        function __invoke( $args, $assoc_args ) {
index 1f2dc08..d114d4f 100644 (file)
@@ -5,6 +5,17 @@ class Import_Command extends WP_CLI_Command {
        /**
         * Import content from a WXR file.
         *
+        * ## OPTIONS
+        *
+        * <file>
+        * : Path to a valid WXR file for importing.
+        *
+        * --authors=<authors>
+        * : How the author mapping should be handled. Options are 'create', 'mapping.csv', or 'skip'. The first will create any non-existent users from the WXR file. The second will read author mapping associations from a CSV, or create a CSV for editing if the file path doesn't exist. The last option will skip any author mapping.
+        *
+        * --skip=<data-type>
+        * : Skip importing specific data. Supported option is 'attachment'.
+        *
         * @synopsis <file> --authors=<authors> [--skip=<data-type>]
         */
        public function __invoke( $args, $assoc_args ) {
index 22cae68..dfb188d 100644 (file)
@@ -10,6 +10,20 @@ class Media_Command extends WP_CLI_Command {
        /**
         * Regenerate thumbnail(s).
         *
+        * ## OPTIONS
+        *
+        * --yes
+        * : Answer yes to the confirmation message.
+        *
+        * <attachment-id>
+        * : One or more IDs of the attachments to regenerate.
+        *
+        * ## EXAMPLES
+        *
+        *     wp media regenerate 123 1337
+        *
+        *     wp media regenerate --yes
+        *
         * @synopsis <attachment-id>... [--yes]
         */
        function regenerate( $args, $assoc_args = array() ) {
@@ -59,6 +73,45 @@ class Media_Command extends WP_CLI_Command {
        /**
         * Create attachments from local files or from URLs.
         *
+        * ## OPTIONS
+        *
+        * <file>
+        * : Path to file or files to be imported. Supports the glob(3) capabilities of the current shell.
+        *     If file is recognized as a URL (for example, with a scheme of http or ftp), the file will be
+        *     downloaded to a temp file before being sideloaded.
+        *
+        * --post_id=<post_id>
+        * : ID of the post to attach the imported files to
+        *
+        * --title=<title>
+        * : Attachment title (post title field)
+        *
+        * --caption=<caption>
+        * : Caption for attachent (post excerpt field)
+        *
+        * --alt=<alt_text>
+        * : Alt text for image (saved as post meta)
+        *
+        * --desc=<description>
+        * : "Description" field (post content) of attachment post
+        *
+        * --featured_image
+        * : If set, set the imported image as the Featured Image of the post its attached to.
+        *
+        *
+        * ## EXAMPLES
+        *
+        *     # Import all jpgs in the current user's "Pictures" directory, not attached to any post
+        *     wp media import ~/Pictures/**/*.jpg
+        *
+        *     # Import a local image and set it to be the post thumbnail for a post
+        *     wp media import ~/Downloads/image.png --post_id=123 --title="A downloaded picture" --featured_image
+        *
+        *     # Import an image from the web
+        *     wp media import http://s.wordpress.org/style/images/wp-header-logo.png --title='The WordPress logo' --alt="Semantic personal publishing"
+        *
+        *
+        *
         * @synopsis <file>... [--post_id=<id>] [--title=<title>] [--caption=<caption>] [--alt=<text>] [--desc=<description>] [--featured_image]
         */
        function import( $args, $assoc_args = array() ) {
index c7a603a..181d229 100644 (file)
@@ -3,7 +3,18 @@
 /**
  * Manage network custom fields.
  *
- * @package wp-cli
+ * ## OPTIONS
+ *
+ * <id>
+ * : The network id (usually 1).
+ *
+ * --format=json
+ * : Encode/decode values as JSON.
+ *
+ * ## EXAMPLES
+ *
+ *     # get a list of super-admins
+ *     wp network-meta get 1 site_admins
  */
 class Network_Meta_Command extends \WP_CLI\CommandWithMeta {
        protected $meta_type = 'site';
index da3f3ce..ccefe5b 100644 (file)
@@ -3,7 +3,20 @@
 /**
  * Manage options.
  *
- * @package wp-cli
+ * ## OPTIONS
+ *
+ * --format=json
+ * : Encode/decode values as JSON.
+ *
+ * ## EXAMPLES
+ *
+ *     wp option get siteurl
+ *
+ *     wp option add my_option foobar
+ *
+ *     wp option update my_option '{"foo": "bar"}' --format=json
+ *
+ *     wp option delete my_option
  */
 class Option_Command extends WP_CLI_Command {
 
index e95c568..8f01209 100644 (file)
@@ -32,6 +32,11 @@ class Plugin_Command extends \WP_CLI\CommandWithUpgrade {
        /**
         * See the status of one or all plugins.
         *
+        * ## OPTIONS
+        *
+        * <plugin>
+        * : A particular plugin to show the status for.
+        *
         * @synopsis [<plugin>]
         */
        function status( $args ) {
@@ -78,6 +83,14 @@ class Plugin_Command extends \WP_CLI\CommandWithUpgrade {
        /**
         * Activate a plugin.
         *
+        * ## OPTIONS
+        *
+        * <plugin>
+        * : The plugin to activate.
+        *
+        * --network
+        * : If set, the plugin will be activated for the entire multisite network.
+        *
         * @synopsis <plugin> [--network]
         */
        function activate( $args, $assoc_args = array() ) {
@@ -98,6 +111,14 @@ class Plugin_Command extends \WP_CLI\CommandWithUpgrade {
        /**
         * Deactivate a plugin.
         *
+        * ## OPTIONS
+        *
+        * <plugin>
+        * : The plugin to deactivate.
+        *
+        * --network
+        * : If set, the plugin will be deactivated for the entire multisite network.
+        *
         * @synopsis <plugin> [--network]
         */
        function deactivate( $args, $assoc_args = array() ) {
@@ -118,6 +139,14 @@ class Plugin_Command extends \WP_CLI\CommandWithUpgrade {
        /**
         * Toggle a plugin's activation state.
         *
+        * ## OPTIONS
+        *
+        * <plugin>
+        * : The plugin to toggle.
+        *
+        * --network
+        * : If set, the plugin will be toggled for the entire multisite network.
+        *
         * @synopsis <plugin> [--network]
         */
        function toggle( $args, $assoc_args = array() ) {
@@ -136,6 +165,20 @@ class Plugin_Command extends \WP_CLI\CommandWithUpgrade {
        /**
         * Get the path to a plugin or to the plugin directory.
         *
+        * ## OPTIONS
+        *
+        * <plugin>
+        * : The plugin to get the path to. If not set, will return the path to the
+        * plugins directory.
+        *
+        * --dir
+        * : If set, get the path to the closest parent directory, instead of the
+        * plugin file.
+        *
+        * ## EXAMPLES
+        *
+        *     cd $(wp theme path)
+        *
         * @synopsis [<plugin>] [--dir]
         */
        function path( $args, $assoc_args ) {
@@ -182,6 +225,19 @@ class Plugin_Command extends \WP_CLI\CommandWithUpgrade {
        /**
         * Update a plugin.
         *
+        * ## OPTIONS
+        *
+        * <plugin>
+        * : The plugin to update.
+        *
+        * --version=dev
+        * : If set, the plugin will be updated to the latest development version,
+        * regardless of what version is currently installed.
+        *
+        * ## EXAMPLES
+        *
+        *     wp plugin update bbpress --version=dev
+        *
         * @synopsis <plugin> [--version=<version>]
         */
        function update( $args, $assoc_args ) {
@@ -214,6 +270,15 @@ class Plugin_Command extends \WP_CLI\CommandWithUpgrade {
        /**
         * Update all plugins.
         *
+        * ## OPTIONS
+        *
+        * --dry-run
+        * : Pretend to do the updates, to see what would happen.
+        *
+        * ## EXAMPLES
+        *
+        *     wp plugin update-all
+        *
         * @subcommand update-all
         * @synopsis [--dry-run]
         */
@@ -240,6 +305,36 @@ class Plugin_Command extends \WP_CLI\CommandWithUpgrade {
        /**
         * Install a plugin.
         *
+        * ## OPTIONS
+        *
+        * <plugin|zip|url>
+        * : A plugin slug, the path to a local zip file, or URL to a remote zip file.
+        *
+        * --version=<version>
+        * : If set, get that particular version from wordpress.org, instead of the
+        * stable version.
+        *
+        * --force
+        * : If set, the command will overwrite any installed version of the plugin, without prompting
+        * for confirmation.
+        *
+        * --activate
+        * : If set, the plugin will be activated immediately after install.
+        *
+        * ## EXAMPLES
+        *
+        *     # Install the latest version from wordpress.org and activate
+        *     wp plugin install bbpress --activate
+        *
+        *     # Install the development version from wordpress.org
+        *     wp plugin install bbpress --version=dev
+        *
+        *     # Install from a local zip file
+        *     wp plugin install ../my-plugin.zip
+        *
+        *     # Install from a remote zip file
+        *     wp plugin install http://s3.amazonaws.com/bucketname/my-plugin.zip?AWSAccessKeyId=123&Expires=456&Signature=abcdef
+        *
         * @synopsis <plugin|zip|url> [--version=<version>] [--force] [--activate]
         */
        function install( $args, $assoc_args ) {
@@ -249,6 +344,19 @@ class Plugin_Command extends \WP_CLI\CommandWithUpgrade {
        /**
         * Uninstall a plugin.
         *
+        * ## OPTIONS
+        *
+        * <plugin>
+        * : The plugin to uninstall.
+        *
+        * --no-delete
+        * : If set, the plugin files will not be deleted. Only the uninstall procedure
+        * will be run.
+        *
+        * ## EXAMPLES
+        *
+        *     wp plugin uninstall hello
+        *
         * @synopsis <plugin> [--no-delete]
         */
        function uninstall( $args, $assoc_args = array() ) {
@@ -272,6 +380,15 @@ class Plugin_Command extends \WP_CLI\CommandWithUpgrade {
        /**
         * Delete plugin files.
         *
+        * ## OPTIONS
+        *
+        * <plugin>
+        * : The plugin to delete.
+        *
+        * ## EXAMPLES
+        *
+        *     wp plugin delete hello
+        *
         * @synopsis <plugin>
         */
        function delete( $args, $assoc_args = array() ) {
@@ -286,6 +403,16 @@ class Plugin_Command extends \WP_CLI\CommandWithUpgrade {
        /**
         * Get a list of plugins.
         *
+        * ## OPTIONS
+        *
+        * * `--format`=<format>:
+        *
+        *     Output list as table, CSV or JSON. Defaults to table.
+        *
+        * ## EXAMPLES
+        *
+        *     wp plugin list --format=json
+        *
         * @subcommand list
         * @synopsis [--format=<format>]
         */
index 08a1052..31cf757 100644 (file)
@@ -3,7 +3,14 @@
 /**
  * Manage post custom fields.
  *
- * @package wp-cli
+ * ## OPTIONS
+ *
+ * --format=json
+ * : Encode/decode values as JSON.
+ *
+ * ## EXAMPLES
+ *
+ *     wp post-meta set 123 _wp_page_template about.php
  */
 class Post_Meta_Command extends \WP_CLI\CommandWithMeta {
        protected $meta_type = 'post';
index 1792830..f8f7a9b 100644 (file)
@@ -20,6 +20,33 @@ class Post_Command extends \WP_CLI\CommandWithDBObject {
        /**
         * Create a post.
         *
+        * ## OPTIONS
+        *
+        * <filename>
+        * : Read post content from <filename>. If this value is present, the
+        *     `--post_content` argument will be ignored.
+        *
+        *   Passing `-` as the filename will cause post content to
+        *   be read from STDIN.
+        *
+        * --<field>=<value>
+        * : Field values for the new post. See wp_insert_post().
+        *
+        * --edit
+        * : Immediately open system's editor to write or edit post content.
+        *
+        *   If content is read from a file, from STDIN, or from the `--post_content`
+        *   argument, that text will be loaded into the editor.
+        *
+        * --porcelain
+        * : Output just the new post id.
+        *
+        * ## EXAMPLES
+        *
+        *     wp post create --post_type=page --post_status=publish --post_title='A future post' --post-status=future --post_date='2020-12-01 07:00:00'
+        *
+        *     wp post create page.txt --post_type=page --post_title='Page from file'
+        *
         * @synopsis [<filename>] --<field>=<value> [--edit] [--porcelain]
         */
        public function create( $args, $assoc_args ) {
@@ -56,6 +83,18 @@ class Post_Command extends \WP_CLI\CommandWithDBObject {
        /**
         * Update one or more posts.
         *
+        * ## OPTIONS
+        *
+        * <ID>
+        * : The ID of the post to update.
+        *
+        * --<field>=<value>
+        * : One or more fields to update. See wp_update_post().
+        *
+        * ## EXAMPLES
+        *
+        *     wp post update 123 --post_name=something --post_status=draft
+        *
         * @synopsis <id>... --<field>=<value>
         */
        public function update( $args, $assoc_args ) {
@@ -69,6 +108,15 @@ class Post_Command extends \WP_CLI\CommandWithDBObject {
        /**
         * Launch system editor to edit post content.
         *
+        * ## OPTIONS
+        *
+        * <id>
+        * : The ID of the post to edit.
+        *
+        * ## EXAMPLES
+        *
+        *     wp post edit 123
+        *
         * @synopsis <id>
         */
        public function edit( $args, $_ ) {
@@ -91,7 +139,28 @@ class Post_Command extends \WP_CLI\CommandWithDBObject {
        /**
         * Get a post's content by ID.
         *
-        * @synopsis [--format=<format>] <id>
+        * ## OPTIONS
+        *
+        * <ID>
+        * : The ID of the post to get.
+        *
+        * --format=<format>
+        * : The format to use when printing the post, acceptable values:
+        *
+        *   - **content**: Outputs only the post's content.
+        *
+        *   - **table**: Outputs all fields of the post as a table. Note that the
+        *     post_content field is omitted so that the table is readable.
+        *
+        *   - **json**: Outputs all fields in JSON format.
+        *
+        * ## EXAMPLES
+        *
+        *     wp post get 12 --format=content
+        *
+        *     wp post get 12 > file.txt
+        *
+        * @synopsis [--format=<format>] <ID>
         */
        public function get( $args, $assoc_args ) {
                $assoc_args = wp_parse_args( $assoc_args, array(
@@ -130,6 +199,20 @@ class Post_Command extends \WP_CLI\CommandWithDBObject {
        /**
         * Delete a post by ID.
         *
+        * ## OPTIONS
+        *
+        * <ID>
+        * : The ID of the post to delete.
+        *
+        * --force
+        * : Skip the trash bin.
+        *
+        * ## EXAMPLES
+        *
+        *     wp post delete 123 --force
+        *
+        *     wp post delete $(wp post list --post_type='page' --format=ids)
+        *
         * @synopsis <id>... [--force]
         */
        public function delete( $args, $assoc_args ) {
@@ -155,6 +238,25 @@ class Post_Command extends \WP_CLI\CommandWithDBObject {
        /**
         * Get a list of posts.
         *
+        * ## OPTIONS
+        *
+        * --<field>=<value>
+        * : One or more args to pass to WP_Query.
+        *
+        * --fields=<fields>
+        * : Limit the output to specific object fields. Defaults to ID,post_title,post_name,post_date,post_status.
+        *
+        * --format=<format>
+        * : Output list as table, CSV, JSON, or simply IDs. Defaults to table.
+        *
+        * ## EXAMPLES
+        *
+        *     wp post list --format=ids
+        *
+        *     wp post list --post_type=post --posts_per_page=5 --format=json
+        *
+        *     wp post list --post_type=page --fields=post_title,post_status
+        *
         * @subcommand list
         * @synopsis [--<field>=<value>] [--fields=<fields>] [--format=<format>]
         */
@@ -195,6 +297,30 @@ class Post_Command extends \WP_CLI\CommandWithDBObject {
        /**
         * Generate some posts.
         *
+        * ## OPTIONS
+        *
+        * --count=<number>
+        * : How many posts to generate. Default: 100
+        *
+        * --post_type=<type>
+        * : The type of the generated posts. Default: 'post'
+        *
+        * --post_status=<status>
+        * : The status of the generated posts. Default: 'publish'
+        *
+        * --post_author=<login>
+        * : The author of the generated posts. Default: none
+        *
+        * --post_date=<yyyy-mm-dd>
+        * : The date of the generated posts. Default: current date
+        *
+        * --max_depth=<number>
+        * : For hierarchical post types, generate child posts down to a certain depth. Default: 1
+        *
+        * ## EXAMPLES
+        *
+        *     wp post generate --count=10 --post_type=page --post_date=1999-01-04
+        *
         * @synopsis [--count=<number>] [--post_type=<type>] [--post_status=<status>] [--post_author=<login>] [--post_date=<yyyy-mm-dd>] [--max_depth=<number>]
         */
        public function generate( $args, $assoc_args ) {
index 71538d2..b1c5a51 100644 (file)
@@ -10,6 +10,11 @@ class Rewrite_Command extends WP_CLI_Command {
        /**
         * Flush rewrite rules.
         *
+        * ## OPTIONS
+        *
+        * --hard
+        * : Perform a hard flush - do not overwrite `.htaccess`. The default is to update `.htaccess` rules as well as rewrite rules in database.
+        *
         * @synopsis [--hard]
         */
        public function flush( $args, $assoc_args ) {
@@ -21,6 +26,21 @@ class Rewrite_Command extends WP_CLI_Command {
        /**
         * Update the permalink structure.
         *
+        * ## OPTIONS
+        *
+        * <permastruct>
+        * : The new permalink structure to apply.
+        *
+        * --category-base=<categorybase>
+        * : Set the base for category permalinks, i.e. '/category/'.
+        *
+        * --tag-base=<tagbase>
+        * : Set the base for tag permalinks, i.e. '/tag/'.
+        *
+        * ## EXAMPLES
+        *
+        *     wp rewrite structure '/%year%/%monthnum%/%postname%'
+        *
         * @synopsis <permastruct> [--category-base=<base>] [--tag-base=<base>] [--hard]
         */
        public function structure( $args, $assoc_args ) {
@@ -72,10 +92,14 @@ class Rewrite_Command extends WP_CLI_Command {
        /**
         * Print current rewrite rules.
         *
-        * @synopsis [--json]
+        * ## OPTIONS
+        *
+        * --format=json
+        * : Output rules in JSON format.
+        *
+        * @synopsis [--format=<format>]
         */
        public function dump( $args, $assoc_args ) {
-
                $rules = get_option( 'rewrite_rules' );
                if ( ! $rules ) {
                        $rules = array();
@@ -88,7 +112,6 @@ class Rewrite_Command extends WP_CLI_Command {
                        foreach ( $rules as $route => $rule )
                                WP_CLI::line( $route . "\t" . $rule );
                }
-
        }
 
        /**
@@ -125,7 +148,6 @@ class Rewrite_Command extends WP_CLI_Command {
                        }
                }
        }
-
 }
 
 WP_CLI:: add_command( 'rewrite', 'Rewrite_Command' );
index bfd974b..3c032e8 100644 (file)
@@ -15,6 +15,18 @@ class Role_Command extends WP_CLI_Command {
        /**
         * List all roles.
         *
+        * ## OPTIONS
+        *
+        * --fields=<fields>
+        * : Limit the output to specific object fields. Defaults to name,role.
+        *
+        * --format=<format>
+        * : Output list as table, CSV or JSON. Defaults to table.
+        *
+        * ## EXAMPLES
+        *
+        *     wp role list --fields=role --format=csv
+        *
         * @subcommand list
         * @synopsis [--fields=<fields>] [--format=<format>]
         */
@@ -45,7 +57,20 @@ class Role_Command extends WP_CLI_Command {
 
        /**
         * Check if a role exists.
-        * Will return 0 if the role exists, 1 if it does not.
+        *
+        * ##DESCRIPTION
+        *
+        * Will exit with status 0 if the role exists, 1 if it does not.
+        *
+        * ## OPTIONS
+        *
+        * * <role-key>:
+        *
+        *     The internal name of the role, e.g. editor
+        *
+        * ## EXAMPLES
+        *
+        *     wp role exists editor
         *
         * @synopsis <role-key>
         */
@@ -60,6 +85,22 @@ class Role_Command extends WP_CLI_Command {
        /**
         * Create a new role.
         *
+        * ## OPTIONS
+        *
+        * * <role-key>:
+        *
+        *     The internal name of the role, e.g. editor
+        *
+        * * <role-name>:
+        *
+        *     The publically visible name of the role, e.g. Editor
+        *
+        * ## EXAMPLES
+        *
+        *     wp role create approver Approver
+        *
+        *     wp role create productadmin "Product Administrator"
+        *
         * @synopsis <role-key> <role-name>
         */
        public function create( $args ) {
@@ -75,12 +116,23 @@ class Role_Command extends WP_CLI_Command {
                        WP_CLI::error( "Role couldn't be created." );
                else
                        WP_CLI::success( sprintf( "Role with key %s created.", $role_key ) );
-
        }
 
        /**
         * Delete an existing role.
         *
+        * ## OPTIONS
+        *
+        * * <role-key>:
+        *
+        *     The internal name of the role, e.g. editor
+        *
+        * ## EXAMPLES
+        *
+        *     wp role delete approver
+        *
+        *     wp role delete productadmin
+        *
         * @synopsis <role-key>
         */
        public function delete( $args ) {
index 2428339..bdf3435 100644 (file)
@@ -16,6 +16,25 @@ class Scaffold_Command extends WP_CLI_Command {
        /**
         * Generate PHP code for registering a custom post type.
         *
+        * ## OPTIONS
+        *
+        * --label=<label>
+        * : The text used to translate the update messages
+        *
+        * --textdomain=<textdomain>
+        * : The textdomain to use for the labels.
+        *
+        * --theme
+        * : Create a file in the active theme directory, instead of sending to
+        * STDOUT. Specify a theme with `--theme=<theme>` to have the file placed in that theme.
+        *
+        * --plugin=<plugin>
+        * : Create a file in the given plugin's directory, instead of sending to
+        * STDOUT.
+        *
+        * --raw
+        * : Just generate the `register_post_type()` call and nothing else.
+        *
         * @subcommand post-type
         *
         * @alias cpt
@@ -36,6 +55,32 @@ class Scaffold_Command extends WP_CLI_Command {
        /**
         * Generate PHP code for registering a custom taxonomy.
         *
+        * ## OPTIONS
+        *
+        * --post_types=<post_types>
+        * : Post types to register for use with the taxonomy.
+        *
+        * --label=<label>
+        * : The text used to translate the update messages
+        *
+        * --textdomain=<textdomain>
+        * : The textdomain to use for the labels.
+        *
+        * --theme
+        * : Create a file in the active theme directory, instead of sending to
+        * STDOUT. Specify a theme with `--theme=<theme>` to have the file placed in that theme.
+        *
+        * --plugin=<plugin>
+        * : Create a file in the given plugin's directory, instead of sending to
+        * STDOUT.
+        *
+        * --raw
+        * : Just generate the `register_taxonomy()` call and nothing else.
+        *
+        * ## EXAMPLES
+        *
+        *     wp scaffold taxonomy venue --post_types=event,presentation
+        *
         * @subcommand taxonomy
         *
         * @alias tax
@@ -112,6 +157,23 @@ class Scaffold_Command extends WP_CLI_Command {
        /**
         * Generate starter code for a theme.
         *
+        * ## OPTIONS
+        *
+        * <slug>
+        * : The slug for the new theme, used for prefixing functions.
+        *
+        * --activate
+        * : Activate the newly downloaded theme.
+        *
+        * --theme_name=<title>
+        * : What to put in the 'Theme Name:' header in style.css
+        *
+        * --author=<full name>
+        * : What to put in the 'Author:' header in style.css
+        *
+        * --author_uri=<http url>
+        * : What to put in the 'Author URI:' header in style.css
+        *
         * @synopsis <slug> [--theme_name=<title>] [--author=<full-name>] [--author_uri=<http-url>] [--activate]
         */
        function _s( $args, $assoc_args ) {
@@ -154,6 +216,29 @@ class Scaffold_Command extends WP_CLI_Command {
        /**
         * Generate empty child theme.
         *
+        * ## OPTIONS
+        *
+        * <slug>
+        * : The slug for the new child theme.
+        *
+        * --parent_theme=<slug>
+        * : What to put in the 'Template:' header in style.css
+        *
+        * --theme_name=<title>
+        * : What to put in the 'Theme Name:' header in style.css
+        *
+        * --author=<full name>
+        * : What to put in the 'Author:' header in style.css
+        *
+        * --author_uri=<http url>
+        * : What to put in the 'Author URI:' header in style.css
+        *
+        * --theme_uri=<http url>
+        * : What to put in the 'Theme URI:' header in style.css
+        *
+        * --activate
+        * : Activate the newly created child theme.
+        *
         * @subcommand child-theme
         *
         * @synopsis <slug> --parent_theme=<slug> [--theme_name=<title>] [--author=<full-name>] [--author_uri=<http-url>] [--theme_uri=<http-url>] [--activate]
@@ -206,6 +291,14 @@ class Scaffold_Command extends WP_CLI_Command {
        /**
         * Generate starter code for a plugin.
         *
+        * ## OPTIONS
+        *
+        * --activate
+        * : Activate the newly generated plugin.
+        *
+        * --plugin_name=<title>
+        * : What to put in the 'Plugin Name:' header
+        *
         * @synopsis <slug> [--plugin_name=<title>] [--activate]
         */
        function plugin( $args, $assoc_args ) {
@@ -233,6 +326,24 @@ class Scaffold_Command extends WP_CLI_Command {
        /**
         * Generate files needed for running PHPUnit tests.
         *
+        * ## DESCRIPTION
+        *
+        * These are the files that are generated:
+        *
+        * * `phpunit.xml` is the configuration file for PHPUnit
+        * * `.travis.yml` is the configuration file for Travis CI
+        * * `tests/bootstrap.php` is the file that makes the current plugin active when running the test suite
+        * * `tests/test-sample.php` is a sample file containing the actual tests
+        *
+        * ## ENVIRONMENT
+        *
+        * The `tests/bootstrap.php` file looks for the WP_TESTS_DIR environment
+        * variable.
+        *
+        * ## EXAMPLE
+        *
+        *     wp scaffold plugin-tests hello
+        *
         * @subcommand plugin-tests
         *
         * @synopsis <plugin>
index 1eee976..4185598 100644 (file)
@@ -10,6 +10,29 @@ class Search_Replace_Command extends WP_CLI_Command {
        /**
         * Search/replace strings in the database.
         *
+        * ## DESCRIPTION
+        *
+        * This command will go through all rows in all tables and will replace all appearances of the old string with the new one.
+        *
+        * It will correctly handle serialized values, and will not change primary key values.
+        *
+        * ## OPTIONS
+        *
+        * --network
+        * : Search/replace through all the tables in a multisite install.
+        *
+        * --skip-columns=<columns>
+        * : Do not perform the replacement in the comma-separated columns.
+        *
+        * --dry-run
+        * : Show report, but don't perform the changes.
+        *
+        * ## EXAMPLES
+        *
+        *     wp search-replace 'http://example.dev' 'http://example.com' --skip-columns=guid
+        *
+        *     wp search-replace 'foo' 'bar' wp_posts wp_postmeta wp_terms --dry-run
+        *
         * @synopsis <old> <new> [<table>...] [--skip-columns=<columns>] [--dry-run] [--network]
         */
        public function __invoke( $args, $assoc_args ) {
index 4fbf4bb..ef0869e 100644 (file)
@@ -5,6 +5,15 @@ class Shell_Command extends \WP_CLI_Command {
        /**
         * Interactive PHP console.
         *
+        * ## DESCRIPTION
+        *
+        * `wp shell` allows you to evaluate PHP statements and expressions interactively, from within a WordPress environment. This means that you have access to all the functions, classes and globals that you would have access to from inside a WordPress plugin, for example.
+        *
+        * ## OPTIONS
+        *
+        * --basic
+        * : Start in fail-safe mode, even if Boris is available.
+        *
         * @synopsis [--basic]
         */
        public function __invoke( $_, $assoc_args ) {
index f1208a1..1fd1ffa 100644 (file)
@@ -110,6 +110,11 @@ class Site_Command extends WP_CLI_Command {
        /**
         * Empty a site of its content (posts, comments, and terms).
         *
+        * ## OPTIONS
+        *
+        * --yes
+        * : Proceed to empty the site without a confirmation prompt.
+        *
         * @subcommand empty
         * @synopsis [--yes]
         */
@@ -128,6 +133,20 @@ class Site_Command extends WP_CLI_Command {
        /**
         * Delete a site in a multisite install.
         *
+        * ## OPTIONS
+        *
+        * <blog-id>
+        * : The id of the blog to delete. If not provided, you must set the --slug parameter.
+        *
+        * --slug=<slug>
+        * : Path of the blog to be deleted. Subdomain on subdomain installs, directory on subdirectory installs.
+        *
+        * --yes
+        * : Answer yes to the confirmation message.
+        *
+        * --keep-tables
+        * : Delete the blog from the list, but don't drop it's tables.
+        *
         * @synopsis [<site-id>] [--slug=<slug>] [--yes] [--keep-tables]
         */
        function delete( $args, $assoc_args ) {
@@ -179,6 +198,26 @@ class Site_Command extends WP_CLI_Command {
        /**
         * Create a site in a multisite install.
         *
+        * ## OPTIONS
+        *
+        * --slug=<slug>
+        * : Path for the new site. Subdomain on subdomain installs, directory on subdirectory installs.
+        *
+        * --title=<title&gt;
+        * : Title of the new site. Default: prettified slug.
+        *
+        * --email=<email>
+        * : Email for Admin user. User will be created if none exists. Assignement to Super Admin if not included.
+        *
+        * --network_id=<network-id>
+        * : Network to associate new site with. Defaults to current network (typically 1).
+        *
+        * --private
+        * : If set, the new site will be non-public (not indexed)
+        *
+        * --porcelain
+        * : If set, only the site id will be output on success.
+        *
         * @synopsis --slug=<slug> [--title=<title>] [--email=<email>] [--network_id=<network-id>] [--private] [--porcelain]
         */
        public function create( $_, $assoc_args ) {
index 5cbaf0a..2b400c8 100644 (file)
@@ -19,6 +19,23 @@ class Term_Command extends WP_CLI_Command {
        /**
         * List terms in a taxonomy.
         *
+        * ## OPTIONS
+        *
+        * <taxonomy>
+        * : List terms of a given taxonomy.
+        *
+        * --fields=<fields>
+        * : Limit the output to specific object fields. Defaults to all of the term object fields.
+        *
+        * --format=<format>
+        * : Output list as table, CSV, JSON, or simply IDs. Defaults to table.
+        *
+        * ## EXAMPLES
+        *
+        *     wp term list category --format=csv
+        *
+        *     wp term list post_tag --fields=name,slug
+        *
         * @subcommand list
         * @synopsis <taxonomy> [--fields=<fields>] [--format=<format>]
         */
@@ -47,6 +64,30 @@ class Term_Command extends WP_CLI_Command {
        /**
         * Create a term.
         *
+        * ## OPTIONS
+        *
+        * <term>
+        * : A name for the new term.
+        *
+        * <taxonomy>
+        * : Taxonomy for the new term.
+        *
+        * --slug=<slug>
+        * : A unique slug for the new term. Defaults to sanitized version of name.
+        *
+        * --description=<description>
+        * : A description for the new term.
+        *
+        * --parent=<term-id>
+        * : A parent for the new term.
+        *
+        * --porcelain
+        * : Output just the new term id.
+        *
+        * ## EXAMPLES
+        *
+        *     wp term create Apple category --description="A type of fruit"
+        *
         * @synopsis <term> <taxonomy> [--slug=<slug>] [--description=<description>] [--parent=<term-id>] [--porcelain]
         */
        public function create( $args, $assoc_args ) {
@@ -82,6 +123,30 @@ class Term_Command extends WP_CLI_Command {
        /**
         * Update a term.
         *
+        * ## OPTIONS
+        *
+        * <term-id>
+        * : ID for the term to update.
+        *
+        * <taxonomy>
+        * : Taxonomy of the term to update.
+        *
+        * --name=<name>
+        * : A new name for the term.
+        *
+        * --slug=<slug>
+        * : A new slug for the term.
+        *
+        * --description=<description>
+        * : A new description for the term.
+        *
+        * --parent=<term-id>
+        * : A new parent for the term.
+        *
+        * ## EXAMPLES
+        *
+        *     wp term update 15 category --name=Apple
+        *
         * @synopsis <term-id> <taxonomy> [--name=<name>] [--slug=<slug>] [--description=<description>] [--parent=<term-id>]
         */
        public function update( $args, $assoc_args ) {
@@ -112,6 +177,18 @@ class Term_Command extends WP_CLI_Command {
        /**
         * Delete a term.
         *
+        * ## OPTIONS
+        *
+        * <term-id>
+        * : ID for the term to delete.
+        *
+        * <taxonomy>
+        * : Taxonomy of the term to delete.
+        *
+        * ## EXAMPLES
+        *
+        *     wp term delete 15 category
+        *
         * @synopsis <term-id> <taxonomy>
         */
        public function delete( $args ) {
index 8db618b..33d8041 100644 (file)
@@ -25,6 +25,11 @@ class Theme_Command extends \WP_CLI\CommandWithUpgrade {
        /**
         * See the status of one or all themes.
         *
+        * ## OPTIONS
+        *
+        * <theme>
+        * : A particular theme to show the status for.
+        *
         * @synopsis [<theme>]
         */
        function status( $args ) {
@@ -60,6 +65,11 @@ class Theme_Command extends \WP_CLI\CommandWithUpgrade {
        /**
         * Activate a theme.
         *
+        * ## OPTIONS
+        *
+        * <theme>
+        * : The theme to activate.
+        *
         * @synopsis <theme>
         */
        public function activate( $args = array() ) {
@@ -83,6 +93,20 @@ class Theme_Command extends \WP_CLI\CommandWithUpgrade {
        /**
         * Get the path to a theme or to the theme directory.
         *
+        * ## OPTIONS
+        *
+        * <theme>
+        * : The theme to get the path to. If not set, will return the path to the
+        * themes directory.
+        *
+        * --dir
+        * : If set, get the path to the closest parent directory, instead of the
+        * theme file.
+        *
+        * ## EXAMPLES
+        *
+        *     cd $(wp theme path)
+        *
         * @synopsis [<theme>] [--dir]
         */
        function path( $args, $assoc_args ) {
@@ -149,6 +173,29 @@ class Theme_Command extends \WP_CLI\CommandWithUpgrade {
        /**
         * Install a theme.
         *
+        * ## OPTIONS
+        *
+        * <theme|zip|url>
+        * : A theme slug, the path to a local zip file, or URL to a remote zip file.
+        *
+        * --force
+        * : If set, the command will overwrite any installed version of the theme, without prompting
+        * for confirmation.
+        *
+        * --activate
+        * : If set, the theme will be activated immediately after install.
+        *
+        * ## EXAMPLES
+        *
+        *     # Install the latest version from wordpress.org and activate
+        *     wp theme install twentytwelve --activate
+        *
+        *     # Install from a local zip file
+        *     wp theme install ../my-theme.zip
+        *
+        *     # Install from a remote zip file
+        *     wp theme install http://s3.amazonaws.com/bucketname/my-theme.zip?AWSAccessKeyId=123&Expires=456&Signature=abcdef
+        *
         * @synopsis <theme|zip|url> [--version=<version>] [--force] [--activate]
         */
        function install( $args, $assoc_args ) {
@@ -158,6 +205,19 @@ class Theme_Command extends \WP_CLI\CommandWithUpgrade {
        /**
         * Update a theme.
         *
+        * ## OPTIONS
+        *
+        * <theme>
+        * : The theme to update.
+        *
+        * --version=dev
+        * : If set, the theme will be updated to the latest development version,
+        * regardless of what version is currently installed.
+        *
+        * ## EXAMPLES
+        *
+        *     wp theme update twentytwelve
+        *
         * @synopsis <theme> [--version=<version>]
         */
        function update( $args, $assoc_args ) {
@@ -171,6 +231,15 @@ class Theme_Command extends \WP_CLI\CommandWithUpgrade {
        /**
         * Update all themes.
         *
+        * ## OPTIONS
+        *
+        * --dry-run
+        * : Pretend to do the updates, to see what would happen.
+        *
+        * ## EXAMPLES
+        *
+        *     wp theme update-all
+        *
         * @subcommand update-all
         * @synopsis [--dry-run]
         */
@@ -181,6 +250,15 @@ class Theme_Command extends \WP_CLI\CommandWithUpgrade {
        /**
         * Delete a theme.
         *
+        * ## OPTIONS
+        *
+        * <theme>
+        * : The theme to delete.
+        *
+        * ## EXAMPLES
+        *
+        *     wp theme delete twentyeleven
+        *
         * @synopsis <theme>
         */
        function delete( $args ) {
@@ -203,6 +281,16 @@ class Theme_Command extends \WP_CLI\CommandWithUpgrade {
        /**
         * Get a list of themes.
         *
+        * ## OPTIONS
+        *
+        * * `--format`=<format>:
+        *
+        *     Output list as table, CSV or JSON. Defaults to table.
+        *
+        * ## EXAMPLES
+        *
+        *     wp theme list --format=csv
+        *
         * @subcommand list
         * @synopsis [--format=<format>]
         */
index 6294a79..0691b5f 100644 (file)
@@ -3,7 +3,9 @@
 /**
  * Manage transients.
  *
- * @package wp-cli
+ * ## EXAMPLES
+ *
+ *     wp transient set my_key my_value 300
  */
 class Transient_Command extends WP_CLI_Command {
 
index 59b4b73..1e2dda0 100644 (file)
@@ -3,7 +3,14 @@
 /**
  * Manage user custom fields.
  *
- * @package wp-cli
+ * ## OPTIONS
+ *
+ * --format=json
+ * : Encode/decode values as JSON.
+ *
+ * ## EXAMPLES
+ *
+ *     wp user-meta set 123 description "Mary is a WordPress developer."
  */
 class User_Meta_Command extends \WP_CLI\CommandWithMeta {
        protected $meta_type = 'user';
index 7a874a0..8f1a633 100644 (file)
@@ -21,6 +21,25 @@ class User_Command extends \WP_CLI\CommandWithDBObject {
        /**
         * List users.
         *
+        * ## OPTIONS
+        *
+        * --role=<role>
+        * : Only display users with a certain role.
+        *
+        * --fields=<fields>
+        * : Limit the output to specific object fields. Defaults to ID,user_login,display_name,user_email,user_registered,roles
+        *
+        * --format=<format>
+        * : Output list as table, CSV, JSON, or simply IDs. Defaults to table.
+        *
+        * ## EXAMPLES
+        *
+        *     wp user list --format=ids
+        *
+        *     wp user list --role=administrator --format=csv
+        *
+        *     wp user list --fields=display_name,user_email
+        *
         * @subcommand list
         * @synopsis [--role=<role>] [--fields=<fields>] [--format=<format>]
         */
@@ -59,6 +78,24 @@ class User_Command extends \WP_CLI\CommandWithDBObject {
        /**
         * Get a single user.
         *
+        * ## OPTIONS
+        *
+        * <user>
+        * : User ID or user login.
+        *
+        * --format=<format>
+        * : The format to use when printing the user; acceptable values:
+        *
+        *     **table**: Outputs all fields of the user as a table.
+        *
+        *     **json**: Outputs all fields in JSON format.
+        *
+        * ## EXAMPLES
+        *
+        *     wp user get 12
+        *
+        *     wp user get bob --format=json > bob.json
+        *
         * @synopsis [--format=<format>] <user>
         */
        public function get( $args, $assoc_args ) {
@@ -96,6 +133,18 @@ class User_Command extends \WP_CLI\CommandWithDBObject {
        /**
         * Delete one or more users.
         *
+        * ## OPTIONS
+        *
+        * <user>
+        * : The user login or ID of the user to delete.
+        *
+        * --reassign=<ID>
+        * : User to reassign the posts to.
+        *
+        * ## EXAMPLES
+        *
+        *     wp user delete 123 --reassign=567
+        *
         * @synopsis <user>... [--reassign=<id>]
         */
        public function delete( $args, $assoc_args ) {
@@ -126,6 +175,33 @@ class User_Command extends \WP_CLI\CommandWithDBObject {
        /**
         * Create a user.
         *
+        * ## OPTIONS
+        *
+        * <user-login>
+        * : The login of the user to create.
+        *
+        * <user-email>
+        * : The email address of the user to create.
+        *
+        * --role=<role>
+        * : The role of the user to create. Default: default role
+        *
+        * --user_pass=<password>
+        * : The user password. Default: randomly generated
+        *
+        * --user_registered=<yyyy-mm-dd>
+        * : The date the user registered. Default: current date
+        *
+        * --display_name=<name>
+        * : The display name.
+        *
+        * --porcelain
+        * : Output just the new user id.
+        *
+        * ## EXAMPLES
+        *
+        *     wp user create bob bob@example.com --role=author
+        *
         * @synopsis <user-login> <user-email> [--role=<role>] [--user_pass=<password>] [--user_registered=<yyyy-mm-dd>] [--display_name=<name>] [--porcelain]
         */
        public function create( $args, $assoc_args ) {
@@ -185,6 +261,20 @@ class User_Command extends \WP_CLI\CommandWithDBObject {
        /**
         * Update a user.
         *
+        * ## OPTIONS
+        *
+        * <user>
+        * : The user login or ID of the user to update.
+        *
+        * --<field>=<value>
+        * : One or more fields to update. For accepted fields, see wp_update_user().
+        *
+        * ## EXAMPLES
+        *
+        *     wp user update 123 --user_login=mary --display_name=Mary
+        *
+        *     wp user update mary --user_pass=marypass
+        *
         * @synopsis <user>... --<field>=<value>
         */
        public function update( $args, $assoc_args ) {
@@ -202,6 +292,14 @@ class User_Command extends \WP_CLI\CommandWithDBObject {
        /**
         * Generate users.
         *
+        * ## OPTIONS
+        *
+        * --count=<number>
+        * : How many users to generate. Default: 100
+        *
+        * --role=<role>
+        * : The role of the generated users. Default: default role from WP
+        *
         * @synopsis [--count=<number>] [--role=<role>]
         */
        public function generate( $args, $assoc_args ) {
@@ -255,6 +353,20 @@ class User_Command extends \WP_CLI\CommandWithDBObject {
        /**
         * Set the user role (for a particular blog).
         *
+        * ## OPTIONS
+        *
+        * <user>
+        * : User ID or user login.
+        *
+        * [<role>]
+        * : Make the user have the specified role. If not passed, the default role is
+        * used.
+        *
+        * ## EXAMPLES
+        *
+        *     wp user set-role bob author
+        *     wp user set-role 12 author
+        *
         * @subcommand set-role
         * @synopsis <user> [<role>]
         */
@@ -275,6 +387,19 @@ class User_Command extends \WP_CLI\CommandWithDBObject {
        /**
         * Add a role for a user.
         *
+        * ## OPTIONS
+        *
+        * <user>
+        * : User ID or user login.
+        *
+        * <role>
+        * : Add the specified role to the user.
+        *
+        * ## EXAMPLES
+        *
+        *     wp user set-role bob author
+        *     wp user set-role 12 author
+        *
         * @subcommand add-role
         * @synopsis <user> <role>
         */
@@ -291,6 +416,16 @@ class User_Command extends \WP_CLI\CommandWithDBObject {
        /**
         * Remove a user's role.
         *
+        * ## OPTIONS
+        *
+        * <user>
+        * : User ID or user login.
+        *
+        * ## EXAMPLES
+        *
+        *     wp user remove-role bob
+        *     wp user remove-role 12
+        *
         * @subcommand remove-role
         * @synopsis <user> [<role>]
         */
@@ -330,6 +465,22 @@ class User_Command extends \WP_CLI\CommandWithDBObject {
        /**
         * Import users from a CSV file.
         *
+        * ## OPTIONS
+        *
+        * <file>
+        * : The CSV file of users to import.
+        *
+        * ## EXAMPLES
+        *
+        *     wp user import-csv /path/to/users.csv
+        *
+        *     Sample users.csv file:
+        *
+        *     user_login,user_email,display_name,role
+        *     bobjones,bobjones@domain.com,Bob Jones,contributor
+        *     newuser1,newuser1@domain.com,New User,author
+        *     existinguser,existinguser@domain.com,Existing User,administrator
+        *
         * @subcommand import-csv
         * @synopsis <file>
         */