1 minute to read

Deprecations in Shopware CLI: what changes and when

Deprecations in Shopware CLI: what changes and when

Twelve deprecated commands, flags and config keys will be removed from Shopware CLI on 10 February 2027. Until then they keep working, but every use prints a warning with the removal date and what to use instead.

Shopware CLI runs in many CI pipelines and build scripts, often without anyone reading its output. Until now we deprecated things without saying when they would go away. A new deprecation policy fixes that: every deprecation gets a date, and you get at least three months to adapt.

How deprecation works

The policy covers commands, flags, SHOPWARE_CLI_* environment variables and config keys in .shopware-extension.yml and .shopware-project.yml.

  • Fixed removal date. A deprecated item is removed three months after the deprecation is merged, on a working day.

  • Warning on every use. The CLI prints the removal date and the replacement to stderr, for example: Flag --reporter has been deprecated, it will be removed by 2027-02-10, use --format as replacement.

  • Hidden from help. Deprecated commands and flags no longer show up in --help, so new scripts don't pick them up.

  • Usage is measured. Anonymous telemetry records which deprecated items are still used, never flag values. You can opt out with DO_NOT_TRACK=1.

  • Dates can move. If an item is still widely used close to its date, we may extend it. The new date ships in a release and is updated in the tracking issue.

What is deprecated now

All twelve items below are removed on 10 February 2027.

Deprecated

Use instead

Tracking

extension validate --full

Nothing; all checks run by default. Use --only or --exclude to pick checks

#1861

extension validate --store-compliance

validation.store_compliance in the extension config

#1862

--reporter on extension validate and project validate

--format

#1863

--no-copy on extension validate and project validate

Nothing; validation always runs in place

#1864

--allow-non-git on extension fix and project fix

Nothing; a Git repository is no longer required

#1865

project create --without-elasticsearch

--with-elasticsearch=false

#1866

--json on project extension list, project extension outdated and account producer extension list

--format json

#1867

extension zip

extension package

#1868

Tool name sw-cli in --only / --exclude

builtin

#1869

Top-level url and admin_api in the project config

environments.<name>.url and environments.<name>.admin_api

#1870

Bundles in composer.json extra.shopware-bundles

build.bundles in .shopware-project.yml

#1871

store.images[].priority in the extension config

store.images[].position

#1872

Where to check

  • Tracking issue #1859. This is the source of truth: every deprecation is a sub-issue with its removal date in the Target date field. If a date moves, it moves there first.

  • Your CLI output. Run your usual commands and look for deprecated on stderr. In CI, search the job log for it.

  • Release notes. Each release lists new deprecations and removals in a Deprecations section, linking to #1859.

What you should do

  1. Update Shopware CLI and run the commands from your scripts and CI once.

  2. Search the output for deprecated and switch each item to the replacement in the table above.

  3. Check .shopware-project.yml, .shopware-extension.yml and composer.json for the deprecated config keys.

  4. Finish before 10 February 2027. After that, a removed flag or command makes the CLI exit with an error.

Have questions or a use case that the replacement doesn't cover? Comment on the matching sub-issue of #1859.

Copied to clipboard