FriendsOfShopware / shopware-cli

CLI for Shopware Account and Shopware 6
MIT License
81 stars 32 forks source link

Documentation #335

Open ts-mothership opened 7 months ago

ts-mothership commented 7 months ago

Question

Abstract

The shopware-cli command is more or less a blackbox. The current version of the documentation on https://sw-cli.fos.gg/ mostly lists only the different commands but does not explain the reasons why different arguments are needed, how it internally works and what to do on certain use cases and errors. There should be more information given, more examples and explanation.

I checked a few commands and it was not always clear why it didn't work as expected. Only after deep diving into the source code I understood more concepts of different commands, but not always. I know documentation is not easy but I'll try to list the questionable commands here and try to suggest something if possible or ask specific questions. Commands not listed below are fine for me 👍 .

shopware-cli project admin-build

shopware-cli project storefront-build

shopware-cli project worker

shopware-cli project dump

shopware-cli project extension *

shopware-cli project generate-jwt

shopware-cli extension validate

shopware-cli extension build

shopware-cli extension admin-watch

shopware-cli extension get-changelog

shopware-cli extension get-version

shyim commented 7 months ago

feel free to make a PR to improve the docs :)

andreasemer commented 6 months ago

@ts-mothership I think there a too many issues in this ticket, can please split this ticket up? The incompatibility of shopware-cli project dump with the current versions of SW is for example a topic for it's own.

ts-mothership commented 6 months ago

@andreasemer First things first, the documentation should be updated first to make clear how it should work. Not everything is clear until now, maybe shyim first can clarify the intensions and use-cases for the commands listed above.

To the "project dump": it still works, there is no error if old tables are missing so I wouldn't consider it a bug but a missing feature. And this is more a documentation issue than anything else.

shyim commented 6 months ago

I will look how when I have time for this. I want to do a lot of more until the SCD. I will present shopware-cli on the Community Stage at the SCD

Isengo1989 commented 2 months ago

If this becomes an official tool, I bet we can give support here docs-wise.

Only played around with it so far, but never used in "production" - I am curious :)