Repository for managing WooCommerce with PowerShell
Manage your WordPress WooCommerce Shop through the Restful API
At a minimum, make sure you have installed the following:
- Windows Powershell 3+
WooCommerce Requirements ApiReference:
API Version | WC Version | WP Version |
---|---|---|
3 | 3.0.x or later | 4.4 or later |
Option 1: PowerShellGallery
Module can be installed from the PowerShellGalley (requires PowerShell 5+)
Install-Module -Name WooCommerce
Option 2: Manual
- Download the latest version to your desktop
- Open a PowerShell console
- Run
Set-ExecutionPolicy
using the parameterRemoteSigned
orBypass
. - Import the Module
- You have to create a special API key/secret at your WooCommerce Shop - Manual WooCommerceApiKey
- For any Cmdlet you have to call
Set-WooCommerceCredential
in first (Cmdlets throws helpful exception if not) 2.1 This Command lets you provite your website, api-key and api-secret and checks if they are correct - Now you can use all other commands
Order
Get-WooCommerceOrder
- You can provide a specific id or the switch
-all
to show all your orders
Product
New-WooCommerceProduct
- Creates a new product in your shop based on the parameters provided
Cmdlets for managing:
- variable product
- shipping zones
- payment gateways
- webhooks
- settings
- reports
- taxes
- refunds
- customers
- coupons
Knowing none