Skip to content

Implements useful functions for working with, developing for, or testing WP e-Commerce with WP-CLI

License

Notifications You must be signed in to change notification settings

leewillis77/WP-CLI-WPEC-Command

Repository files navigation

WP-CLI WP e-Commerce commands

This is a Work In Progress - Do not expect it to work or do anything interesting

This is a package that implements the various commands for WP-CLI for working with, developing for, or testing the WP e-Commerce plugin.

Requirements

  • PHP 5.4 or newer
  • WordPress 3.9 or newer
  • WP e-Commerce 3.8 or newer

Installation

  • Head to ~/.wp-cli/commands
  • Clone this repo
  • Edit (or create) ~/.wp-cli/config.yml and ensure that it requires the new commands
require:
  - commands/WP-CLI-WPEC-Command/commands.php

Usage

Some example usage:

Categories

# Output all categories as a table
$ wp wpec-category list

# Output all categories as a CSV file
$ wp wpec-category list --format=csv

# Get category with ID 7
$ wp wpec-category get 7

# Get category with ID 7, formatted as JSON
$ wp wpec-category get example-category --format=json

# Remove category ID 7
$ wp wpec-category delete 7

# Create a new category called Widgets
$ wp wpec-category create "Widgets" --slug="my-widgets" --parent=8 --description="Super cool widgets"

# Generate 50 categories for testing
$ wp wpec-category generate --count=50

About

Implements useful functions for working with, developing for, or testing WP e-Commerce with WP-CLI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages