All Projects → wp-cli → package-command

wp-cli / package-command

Licence: MIT license
Lists, installs, and removes WP-CLI packages.

Programming Languages

PHP
23972 projects - #3 most used programming language
Gherkin
971 projects

Projects that are alternatives of or similar to package-command

scaffold-package-command
Scaffolds WP-CLI commands with functional tests, full README.md, and more.
Stars: ✭ 51 (+218.75%)
Mutual labels:  wp-cli, package, wp-cli-package
wp-super-cache-cli
A CLI interface for the WP Super Cache plugin
Stars: ✭ 53 (+231.25%)
Mutual labels:  wp-cli, wp-cli-package
jean
Bored from installing tiny shell scripts and .dotfiles manually? Huh! Missing Shell Package Manager For Linux
Stars: ✭ 21 (+31.25%)
Mutual labels:  package, package-management
checksum-command
Verifies file integrity by comparing to published checksums.
Stars: ✭ 29 (+81.25%)
Mutual labels:  wp-cli, wp-cli-package
language-command
Installs, activates, and manages language packs.
Stars: ✭ 12 (-25%)
Mutual labels:  wp-cli, wp-cli-package
server-command
Launches PHP's built-in web server for a specific WordPress installation.
Stars: ✭ 69 (+331.25%)
Mutual labels:  wp-cli, wp-cli-package
wp-cli-seed-command
WP CLI Seed Command is extension for WP-CLI to seed database with sample data
Stars: ✭ 20 (+25%)
Mutual labels:  wp-cli, wp-cli-package
dudestack
A toolkit for creating a new professional WordPress project with deployments. Originally based on Roots/bedrock.
Stars: ✭ 82 (+412.5%)
Mutual labels:  wp-cli, composer
import-command
Imports content from a given WXR file.
Stars: ✭ 19 (+18.75%)
Mutual labels:  wp-cli, wp-cli-package
i18n-command
Provides internationalization tools for WordPress projects.
Stars: ✭ 76 (+375%)
Mutual labels:  wp-cli, wp-cli-package
export-command
Exports WordPress content to a WXR file.
Stars: ✭ 12 (-25%)
Mutual labels:  wp-cli, wp-cli-package
shell-command
Opens an interactive PHP console for running and testing PHP code.
Stars: ✭ 18 (+12.5%)
Mutual labels:  wp-cli, wp-cli-package
cron-command
Tests, runs, and deletes WP-Cron events; manages WP-Cron schedules.
Stars: ✭ 23 (+43.75%)
Mutual labels:  wp-cli, wp-cli-package
cache-command
Manages object and transient caches.
Stars: ✭ 12 (-25%)
Mutual labels:  wp-cli, wp-cli-package
db-command
Performs basic database operations using credentials stored in wp-config.php.
Stars: ✭ 65 (+306.25%)
Mutual labels:  wp-cli, wp-cli-package
scaffold-command
Generates code for post types, taxonomies, blocks, plugins, child themes, etc.
Stars: ✭ 149 (+831.25%)
Mutual labels:  wp-cli, wp-cli-package
Nebula
Nebula is a minimalistic and easy to use administration tool for Laravel applications, made with Laravel, Alpine.js, and Tailwind CSS.
Stars: ✭ 190 (+1087.5%)
Mutual labels:  package, composer
core-command
Downloads, installs, updates, and manages a WordPress installation.
Stars: ✭ 41 (+156.25%)
Mutual labels:  wp-cli, wp-cli-package
media-command
Imports files as attachments, regenerates thumbnails, or lists registered image sizes.
Stars: ✭ 40 (+150%)
Mutual labels:  wp-cli, wp-cli-package
config-command
Generates and reads the wp-config.php file.
Stars: ✭ 32 (+100%)
Mutual labels:  wp-cli, wp-cli-package

wp-cli/package-command

Lists, installs, and removes WP-CLI packages.

Testing

Quick links: Using | Installing | Contributing | Support

Using

This package implements the following commands:

wp package

Lists, installs, and removes WP-CLI packages.

wp package

WP-CLI packages are community-maintained projects built on WP-CLI. They can contain WP-CLI commands, but they can also just extend WP-CLI in some way.

Learn how to create your own command from the Commands Cookbook

EXAMPLES

# List installed packages
$ wp package list
+-----------------------+------------------------------------------+---------+----------+
| name                  | description                              | authors | version  |
+-----------------------+------------------------------------------+---------+----------+
| wp-cli/server-command | Start a development server for WordPress |         | dev-main |
+-----------------------+------------------------------------------+---------+----------+

# Install the latest development version of the package
$ wp package install wp-cli/server-command
Installing package wp-cli/server-command (dev-main)
Updating /home/person/.wp-cli/packages/composer.json to require the package...
Using Composer to install the package...
---
Loading composer repositories with package information
Updating dependencies
Resolving dependencies through SAT
Dependency resolution completed in 0.005 seconds
Analyzed 732 packages to resolve dependencies
Analyzed 1034 rules to resolve dependencies
 - Installing package
Writing lock file
Generating autoload files
---
Success: Package installed.

# Uninstall package
$ wp package uninstall wp-cli/server-command
Removing require statement from /home/person/.wp-cli/packages/composer.json
Deleting package directory /home/person/.wp-cli/packages/vendor/wp-cli/server-command
Regenerating Composer autoload.
Success: Uninstalled package.

wp package browse

Browses WP-CLI packages available for installation.

wp package browse [--fields=<fields>] [--format=<format>]

Lists packages available for installation from the Package Index. Although the package index will remain in place for backward compatibility reasons, it has been deprecated and will not be updated further. Please refer to wp-cli/ideas#51 to read about its potential replacement.

OPTIONS

[--fields=<fields>]
	Limit the output to specific fields. Defaults to all fields.

[--format=<format>]
	Render output in a particular format.
	---
	default: table
	options:
	  - table
	  - csv
	  - ids
	  - json
	  - yaml
	---

AVAILABLE FIELDS

These fields will be displayed by default for each package:

  • name
  • description
  • authors
  • version

There are no optionally available fields.

EXAMPLES

$ wp package browse --format=yaml
---
10up/mu-migration:
  name: 10up/mu-migration
  description: A set of WP-CLI commands to support the migration of single WordPress instances to multisite
  authors: Nícholas André
  version: dev-main, dev-develop
aaemnnosttv/wp-cli-dotenv-command:
  name: aaemnnosttv/wp-cli-dotenv-command
  description: Dotenv commands for WP-CLI
  authors: Evan Mattson
  version: v0.1, v0.1-beta.1, v0.2, dev-main, dev-dev, dev-develop, dev-tests/behat
aaemnnosttv/wp-cli-http-command:
  name: aaemnnosttv/wp-cli-http-command
  description: WP-CLI command for using the WordPress HTTP API
  authors: Evan Mattson
  version: dev-main

wp package install

Installs a WP-CLI package.

wp package install <name|git|path|zip> [--insecure]

Packages are required to be a valid Composer package, and can be specified as:

  • Package name from WP-CLI's package index.
  • Git URL accessible by the current shell user.
  • Path to a directory on the local machine.
  • Local or remote .zip file.

Packages are installed to ~/.wp-cli/packages/ by default. Use the WP_CLI_PACKAGES_DIR environment variable to provide a custom path.

When installing a local directory, WP-CLI simply registers a reference to the directory. If you move or delete the directory, WP-CLI's reference breaks.

When installing a .zip file, WP-CLI extracts the package to ~/.wp-cli/packages/local/<package-name>.

OPTIONS

<name|git|path|zip>
	Name, git URL, directory path, or .zip file for the package to install.
	Names can optionally include a version constraint
	(e.g. wp-cli/server-command:@stable).

[--insecure]
	Retry downloads without certificate validation if TLS handshake fails. Note: This makes the request vulnerable to a MITM attack.

EXAMPLES

# Install a package hosted at a git URL.
$ wp package install runcommand/hook

# Install the latest stable version.
$ wp package install wp-cli/server-command:@stable

# Install a package hosted at a GitLab.com URL.
$ wp package install https://gitlab.com/foo/wp-cli-bar-command.git

# Install a package in a .zip file.
$ wp package install google-sitemap-generator-cli.zip

wp package list

Lists installed WP-CLI packages.

wp package list [--fields=<fields>] [--format=<format>]

OPTIONS

[--fields=<fields>]
	Limit the output to specific fields. Defaults to all fields.

[--format=<format>]
	Render output in a particular format.
	---
	default: table
	options:
	  - table
	  - csv
	  - ids
	  - json
	  - yaml
	---

AVAILABLE FIELDS

These fields will be displayed by default for each package:

  • name
  • authors
  • version
  • update
  • update_version

These fields are optionally available:

  • description

EXAMPLES

$ wp package list
+-----------------------+------------------------------------------+---------+----------+
| name                  | description                              | authors | version  |
+-----------------------+------------------------------------------+---------+----------+
| wp-cli/server-command | Start a development server for WordPress |         | dev-main |
+-----------------------+------------------------------------------+---------+----------+

wp package update

Updates all installed WP-CLI packages to their latest version.

wp package update 

EXAMPLES

$ wp package update
Using Composer to update packages...
---
Loading composer repositories with package information
Updating dependencies
Resolving dependencies through SAT
Dependency resolution completed in 0.074 seconds
Analyzed 1062 packages to resolve dependencies
Analyzed 22383 rules to resolve dependencies
Writing lock file
Generating autoload files
---
Success: Packages updated.

wp package uninstall

Uninstalls a WP-CLI package.

wp package uninstall <name> [--insecure]

OPTIONS

<name>
	Name of the package to uninstall.

[--insecure]
	Retry downloads without certificate validation if TLS handshake fails. Note: This makes the request vulnerable to a MITM attack.

EXAMPLES

$ wp package uninstall wp-cli/server-command
Removing require statement from /home/person/.wp-cli/packages/composer.json
Deleting package directory /home/person/.wp-cli/packages/vendor/wp-cli/server-command
Regenerating Composer autoload.
Success: Uninstalled package.

Installing

This package is included with WP-CLI itself, no additional installation necessary.

To install the latest version of this package over what's included in WP-CLI, run:

wp package install [email protected]:wp-cli/package-command.git

Contributing

We appreciate you taking the initiative to contribute to this project.

Contributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.

For a more thorough introduction, check out WP-CLI's guide to contributing. This package follows those policy and guidelines.

Reporting a bug

Think you’ve found a bug? We’d love for you to help us get it fixed.

Before you create a new issue, you should search existing issues to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version.

Once you’ve done a bit of searching and discovered there isn’t an open or fixed issue for your bug, please create a new issue. Include as much detail as you can, and clear steps to reproduce if possible. For more guidance, review our bug report documentation.

Creating a pull request

Want to contribute a new feature? Please first open a new issue to discuss whether the feature is a good fit for the project.

Once you've decided to commit the time to seeing your pull request through, please follow our guidelines for creating a pull request to make sure it's a pleasant experience. See "Setting up" for details specific to working on this package locally.

Support

GitHub issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support

This README.md is generated dynamically from the project's codebase using wp scaffold package-readme (doc). To suggest changes, please submit a pull request against the corresponding part of the codebase.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].