Skip to content

Wim Shopware CLI

Installation

Using Go

go install github.com/wimwenigerkind/wswcli@latest

Using Homebrew (macOS/Linux)

brew install wimwenigerkind/tap/wswcli
or
brew tap wimwenigerkind/homebrew-tap
brew install wswcli

Download Binary

Download the latest binary from the releases page.

Usage

wswcli --help

PatchVendor Command

Generate unified diff patches for Shopware vendor modifications:

# Basic usage
wswcli patchvendor source.php patched.php output.patch

# Interactive mode
wswcli patchvendor

# Directory processing
wswcli patchvendor vendor/shopware/core custom/patches patches/

Features

  • Directory processing: Batch process entire directory structures
  • Smart validation: Comprehensive input validation with detailed error messages
  • Vendor path handling: Automatic vendor path extraction and normalization
  • Interactive mode: Guided workflow with helpful prompts and suggestions

For detailed documentation, see patchvendor.md.

Development

Prerequisites

  • Go 1.21 or later

Building

make build

Testing

make test

Creating a Release

make release

License

This project is licensed under the MIT License - see the LICENSE file for details.