shopware-cli

command module
v0.0.0-...-8c9b121 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 2 Imported by: 0

README

Shopware CLI

skills.sh

Shopware CLI is a command line companion for common Shopware account, project, and extension workflows.

Table of Contents

What it helps with

Use this CLI to create and set up Shopware projects, manage Shopware accounts, build and validate extensions, automate project maintenance, or run everyday developer tasks without leaving the terminal.

Highlights

  • Installation, initialization, and migration wizards for creating new Shopware projects or moving existing projects into the local development setup
  • Integrated Docker-based local development environment with an interactive terminal user interface (TUI)
  • Daily development loop support from one place: start environments, run watchers, check logs, access database and mail tools
  • Project automation commands for config, cache, admin, storefront, and CI workflows
  • Account-related commands under shopware-cli account
  • Extension build, validation, formatting, changelog, and packaging helpers
  • Non-interactive mode for scripts and CI

Install

From source with Go
go install github.com/shopware/shopware-cli@latest
Build locally from this repository
git clone https://github.com/shopware/shopware-cli.git
cd shopware-cli
go build -o bin/shopware-cli .

Usage

Show the available commands:

shopware-cli --help

Common command groups:

shopware-cli account --help
shopware-cli extension --help
shopware-cli project --help

Generate a CycloneDX SBOM for a project without running the full CI build:

shopware-cli project sbom
shopware-cli project sbom ./my-shop --format cyclonedx-json --output sbom.json

If you need CI-friendly behavior, disable prompts:

shopware-cli --no-interaction <command>

Silence update notifications for a single command:

shopware-cli --no-update-hint

Configuration

Shop URL and Admin API credentials belong under named environments in .shopware-project.yml. Project-level keys such as build, dump, docker, and php_version stay at the top level.

environments:
  local:
    type: local
    url: http://127.0.0.1:8000
    admin_api:
      username: admin
      password: shopware
  staging:
    url: https://staging.example.com
    admin_api:
      client_id: ...
      client_secret: ...

Omit -e / --env to target environments.local. Use -e staging (or another name) to target a different environment.

shopware-cli project create and shopware-cli project config init write environments.local. Top-level url and admin_api are deprecated: they are used only when environments.local is absent. When both are present, environments.local wins.

Disable update notifications

To disable update notifications for the current shell session, set:

export SHOPWARE_CLI_NO_UPDATE_NOTIFICATION=true

To make the setting persistent, add the export command to your shell profile, such as ~/.bashrc or ~/.zshrc.

Repository Layout

  • cmd/: Cobra command groups for account, extension, and project workflows
  • internal/: implementation packages for APIs, build steps, validation, TUI, and utilities
  • .github/: automation and workflow definitions
  • scripts/: repository helper scripts
  • env-bridge/: environment bridge helper entrypoint

Official Agent Skills

Shopware CLI maintainers provide official Agent Skills in this repository's skills/ folder. These skills teach compatible AI coding agents how to use Shopware CLI workflows safely and correctly.

Install them with:

npx skills add shopware/shopware-cli

Available skills are shopware-cli and shopware-cli-docker.

Documentation

Contributing

Contributions are welcome. If you want to improve commands, docs, or developer workflows, open an issue or send a pull request. See CONTRIBUTING.md.

License

See LICENSE.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
ai
internal
ai/directory
Package directory provides the curated directory of Shopware AI integrations that backs the "shopware-cli ai list" and "ai info" commands.
Package directory provides the curated directory of Shopware AI integrations that backs the "shopware-cli ai list" and "ai info" commands.
ai/state
Package state records which AI integrations the CLI has installed so that `ai list --installed` can report them.
Package state records which AI integrations the CLI has installed so that `ai list --installed` can report them.
ci
git
html
AST node types for the html package.
AST node types for the html package.
markdown
Package markdown renders Markdown to HTML for content that is pushed to the Shopware Store (extension description, installation manual and changelog).
Package markdown renders Markdown to HTML for content that is pushed to the Shopware Store (extension description, installation manual and changelog).
mkcert
Package mkcert is a library adaptation of https://github.com/FiloSottile/mkcert (which is intentionally not importable as a Go module).
Package mkcert is a library adaptation of https://github.com/FiloSottile/mkcert (which is intentionally not importable as a Go module).
npm
shop/install
Package install holds the Shopware installation logic shared by the interactive dev TUI (internal/tui/dev) and the non-interactive `project dev install` command.
Package install holds the Shopware installation logic shared by the interactive dev TUI (internal/tui/dev) and the non-interactive `project dev install` command.
shop/pluginmigrate
Package pluginmigrate moves extensions living in custom/ under Composer management: Shopware Store plugins are required from the Store packagist (and their local copy removed), everything else is registered as a Composer path repository.
Package pluginmigrate moves extensions living in custom/ under Composer management: Shopware Store plugins are required from the Store packagist (and their local copy removed), everything else is registered as a Composer path repository.
shop/upgrade
Package upgrade implements the backend for the interactive Shopware upgrade wizard (`shopware-cli project upgrade`): project readiness checks, the upgrade version catalog, extension compatibility classification, and the execution engine that applies the upgrade locally.
Package upgrade implements the backend for the interactive Shopware upgrade wizard (`shopware-cli project upgrade`): project readiness checks, the upgrade version catalog, extension compatibility classification, and the execution engine that applies the upgrade locally.
sqlshell
Package sqlshell implements a small SQL shell used by `project sql` and `project restore`: splitting scripts into statements, executing them and rendering results.
Package sqlshell implements a small SQL shell used by `project sql` and `project restore`: splitting scripts into statements, executing them and rendering results.
testhelper
Package testhelper provides shared fixture builders for tests: writing files into temp directories and rendering the composer.json / composer.lock shapes that Shopware project and extension tests need over and over.
Package testhelper provides shared fixture builders for tests: writing files into temp directories and rendering the composer.json / composer.lock shapes that Shopware project and extension tests need over and over.
tui
tui/app
Package app provides a terminal application shell on top of Bubble Tea v2: chrome (header/footer), an overlay stack, keybindings mapped to named commands, and quit handling.
Package app provides a terminal application shell on top of Bubble Tea v2: chrome (header/footer), an overlay stack, keybindings mapped to named commands, and quit handling.
tui/picker
Package picker provides a filterable single-select list overlay for the tui/app shell — a type-to-filter input over a windowed list, rendered as a centered modal.
Package picker provides a filterable single-select list overlay for the tui/app shell — a type-to-filter input over a windowed list, rendered as a centered modal.
tui/pluginmigrate
Package pluginmigrate implements the interactive `project autofix composer-plugins` wizard: it scans custom/ for extensions Composer does not manage, classifies them against the Shopware Store packagist, and migrates them (Store requires or path repositories) with rollback on failure.
Package pluginmigrate implements the interactive `project autofix composer-plugins` wizard: it scans custom/ for extensions Composer does not manage, classifies them against the Shopware Store packagist, and migrates them (Store requires or path repositories) with rollback on failure.
tui/prompt
Package prompt provides a multi-button confirm overlay for the tui/app shell — for questions where a plain yes/no is not enough (e.g.
Package prompt provides a multi-button confirm overlay for the tui/app shell — for questions where a plain yes/no is not enough (e.g.
tui/textprompt
Package textprompt provides a single-line text-input overlay for the tui/app shell — the third of the overlay kits next to prompt (buttons) and picker (filterable list).
Package textprompt provides a single-line text-input overlay for the tui/app shell — the third of the overlay kits next to prompt (buttons) and picker (filterable list).
tui/upgrade
Package upgrade implements the interactive Shopware upgrade wizard (`shopware-cli project upgrade`): a full-screen Bubble Tea program that walks through readiness checks, target version selection, extension compatibility, plan review, and the guided upgrade execution.
Package upgrade implements the interactive Shopware upgrade wizard (`shopware-cli project upgrade`): a full-screen Bubble Tea program that walks through readiness checks, target version selection, extension compatibility, plan review, and the guided upgrade execution.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL