Compare commits
5 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0b7381f866 | ||
|
|
cf3549a6de | ||
|
|
3b8d70eb54 | ||
|
|
d5cc2168f5 | ||
|
|
c466668503 |
6 changed files with 23 additions and 124 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
/wp-cli-2.2.0.phar
|
/wp-cli-2.2.0.phar
|
||||||
/wp-cli-2.3.0.phar
|
/wp-cli-2.3.0.phar
|
||||||
/wp-cli-2.4.0.phar
|
/wp-cli-2.4.0.phar
|
||||||
|
/wp-cli-2.12.0.phar
|
||||||
|
|
|
||||||
3
LICENSE
3
LICENSE
|
|
@ -1,6 +1,6 @@
|
||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (C) 2011-2018 WP-CLI Development Group (https://github.com/wp-cli/wp-cli/contributors)
|
Copyright (C) 2011-2024 WP-CLI Development Group (https://github.com/wp-cli/wp-cli/contributors)
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|
@ -19,3 +19,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
|
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
SHA512 (wp-cli-2.4.0.phar) = 4049c7e45e14276a70a41c3b0864be7a6a8cfa8ea65ebac8b184a4f503a91baa1a0d29260d03248bc74aef70729824330fb6b396336172a624332e16f64e37ef
|
SHA512 (wp-cli-2.12.0.phar) = be928f6b8ca1e8dfb9d2f4b75a13aa4aee0896f8a9a0a1c45cd5d2c98605e6172e6d014dda2e27f88c98befc16c040cbb2bd1bfa121510ea5cdf5f6a30fe8832
|
||||||
|
|
|
||||||
Binary file not shown.
34
wp-cli.spec
Executable file → Normal file
34
wp-cli.spec
Executable file → Normal file
|
|
@ -1,14 +1,13 @@
|
||||||
%define name2 wp
|
%define name2 wp
|
||||||
|
|
||||||
Name: wp-cli
|
Name: wp-cli
|
||||||
Version: 2.4.0
|
Version: 2.12.0
|
||||||
Release: 13%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: The command line interface for WordPress
|
Summary: The command line interface for WordPress
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://%{name}.org/
|
URL: http://%{name}.org/
|
||||||
Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.phar
|
Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.phar
|
||||||
Source1: LICENSE
|
Source1: LICENSE
|
||||||
Source2: wp.1
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
|
@ -16,32 +15,37 @@ WP-CLI is the command-line interface for WordPress.
|
||||||
You can update plugins, configure multisite installations
|
You can update plugins, configure multisite installations
|
||||||
and much more, without using a web browser.
|
and much more, without using a web browser.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
chmod +x %{SOURCE0}
|
|
||||||
{
|
|
||||||
echo '.TH "WP" "1"'
|
|
||||||
php %{SOURCE0} --help
|
|
||||||
} \
|
|
||||||
| sed -e 's/^\([A-Z ]\+\)$/.SH "\1"/' \
|
|
||||||
| sed -e 's/^ wp$/wp \\- The command line interface for WordPress/' \
|
|
||||||
> %{SOURCE2}
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_bindir}
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
install -p -m 0755 %{SOURCE0} %{buildroot}%{_bindir}/%{name2}
|
install -p -m 0755 %{SOURCE0} %{buildroot}%{_bindir}/%{name2}
|
||||||
cp -f %SOURCE1 LICENSE
|
cp -af %SOURCE1 LICENSE
|
||||||
mkdir -p %{buildroot}%{_mandir}/man1
|
|
||||||
install -p -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{_bindir}/%{name2}
|
%{_bindir}/%{name2}
|
||||||
%{_mandir}/man1/wp.1*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Mar 18 2026 Jonathan Wright <jonathan@almalinux.org> - 2.12.0-1
|
||||||
|
- Update to 2.12.0
|
||||||
|
|
||||||
|
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-15
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-14
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||||
|
|
||||||
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-13
|
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-13
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||||
|
|
||||||
|
|
|
||||||
107
wp.1
107
wp.1
|
|
@ -1,107 +0,0 @@
|
||||||
.TH "WP" "1"
|
|
||||||
[1mNAME[0m
|
|
||||||
|
|
||||||
wp \- The command line interface for WordPress
|
|
||||||
|
|
||||||
[1mDESCRIPTION[0m
|
|
||||||
|
|
||||||
Manage WordPress through the command-line.
|
|
||||||
|
|
||||||
[1mSYNOPSIS[0m
|
|
||||||
|
|
||||||
wp <command>
|
|
||||||
|
|
||||||
[1mSUBCOMMANDS[0m
|
|
||||||
|
|
||||||
cache Adds, removes, fetches, and flushes the WP Object Cache object.
|
|
||||||
cap Adds, removes, and lists capabilities of a user role.
|
|
||||||
cli Review current WP-CLI info, check for updates, or see defined aliases.
|
|
||||||
comment Creates, updates, deletes, and moderates comments.
|
|
||||||
config Generates and reads the wp-config.php file.
|
|
||||||
core Downloads, installs, updates, and manages a WordPress installation.
|
|
||||||
cron Tests, runs, and deletes WP-Cron events; manages WP-Cron schedules.
|
|
||||||
db Performs basic database operations using credentials stored in wp-config.php.
|
|
||||||
embed Inspects oEmbed providers, clears embed cache, and more.
|
|
||||||
eval Executes arbitrary PHP code.
|
|
||||||
eval-file Loads and executes a PHP file.
|
|
||||||
export Exports WordPress content to a WXR file.
|
|
||||||
help Get help on WP-CLI, or on a specific command.
|
|
||||||
i18n Provides internationalization tools for WordPress projects.
|
|
||||||
import Imports content from a given WXR file.
|
|
||||||
language Installs, activates, and manages language packs.
|
|
||||||
maintenance-mode Activates, deactivates or checks the status of the maintenance mode of a site.
|
|
||||||
media Imports files as attachments, regenerates thumbnails, or lists registered image
|
|
||||||
sizes.
|
|
||||||
menu Lists, creates, assigns, and deletes the active theme's navigation menus.
|
|
||||||
network Perform network-wide operations.
|
|
||||||
option Retrieves and sets site options, including plugin and WordPress settings.
|
|
||||||
package Lists, installs, and removes WP-CLI packages.
|
|
||||||
plugin Manages plugins, including installs, activations, and updates.
|
|
||||||
post Manages posts, content, and meta.
|
|
||||||
post-type Retrieves details on the site's registered post types.
|
|
||||||
rewrite Lists or flushes the site's rewrite rules, updates the permalink structure.
|
|
||||||
role Manages user roles, including creating new roles and resetting to defaults.
|
|
||||||
scaffold Generates code for post types, taxonomies, plugins, child themes, etc.
|
|
||||||
search-replace Searches/replaces strings in the database.
|
|
||||||
server Launches PHP's built-in web server for a specific WordPress installation.
|
|
||||||
shell Opens an interactive PHP console for running and testing PHP code.
|
|
||||||
sidebar Lists registered sidebars.
|
|
||||||
site Creates, deletes, empties, moderates, and lists one or more sites on a multisite
|
|
||||||
installation.
|
|
||||||
super-admin Lists, adds, or removes super admin users on a multisite installation.
|
|
||||||
taxonomy Retrieves information about registered taxonomies.
|
|
||||||
term Manages taxonomy terms and term meta, with create, delete, and list commands.
|
|
||||||
theme Manages themes, including installs, activations, and updates.
|
|
||||||
transient Adds, gets, and deletes entries in the WordPress Transient Cache.
|
|
||||||
user Manages users, along with their roles, capabilities, and meta.
|
|
||||||
widget Manages widgets, including adding and moving them within sidebars.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[1mGLOBAL PARAMETERS[0m
|
|
||||||
|
|
||||||
--path=<path>
|
|
||||||
Path to the WordPress files.
|
|
||||||
|
|
||||||
--url=<url>
|
|
||||||
Pretend request came from given URL. In multisite, this argument is how the target site is
|
|
||||||
specified.
|
|
||||||
|
|
||||||
--ssh=[<scheme>:][<user>@]<host|container>[:<port>][<path>]
|
|
||||||
Perform operation against a remote server over SSH (or a container using scheme of "docker",
|
|
||||||
"docker-compose", "vagrant").
|
|
||||||
|
|
||||||
--http=<http>
|
|
||||||
Perform operation against a remote WordPress installation over HTTP.
|
|
||||||
|
|
||||||
--user=<id|login|email>
|
|
||||||
Set the WordPress user.
|
|
||||||
|
|
||||||
--skip-plugins[=<plugins>]
|
|
||||||
Skip loading all plugins, or a comma-separated list of plugins. Note: mu-plugins are still loaded.
|
|
||||||
|
|
||||||
--skip-themes[=<themes>]
|
|
||||||
Skip loading all themes, or a comma-separated list of themes.
|
|
||||||
|
|
||||||
--skip-packages
|
|
||||||
Skip loading all installed packages.
|
|
||||||
|
|
||||||
--require=<path>
|
|
||||||
Load PHP file before running the command (may be used more than once).
|
|
||||||
|
|
||||||
--[no-]color
|
|
||||||
Whether to colorize the output.
|
|
||||||
|
|
||||||
--debug[=<group>]
|
|
||||||
Show all PHP errors and add verbosity to WP-CLI output. Built-in groups include: bootstrap,
|
|
||||||
commandfactory, and help.
|
|
||||||
|
|
||||||
--prompt[=<assoc>]
|
|
||||||
Prompt the user to enter values for all command arguments, or a subset specified as comma-separated
|
|
||||||
values.
|
|
||||||
|
|
||||||
--quiet
|
|
||||||
Suppress informational messages.
|
|
||||||
|
|
||||||
Run 'wp help <command>' to get more information on a specific command.
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue