A suite of utilities designed to enhance performance in your day-to-day operations with Spryker Commerce OS.
Installation • Usage • Contributing
git clone https://github.com/spryker-community/cli-toolkit && cd cli-toolkit
composer install
bin/cli-toolkit
composer require --dev spryker-community/cli-toolkit
vendor/bin/cli-toolkit
You can see all the available commands by executing:
bin/cli-toolkit --help
Some of the commands use external services like OpenAI or DeepL that requires API credentials. In those cases you will require to add the credential to your .env
file.
- Copy the template for the environment variables:
cp .env.dist .env
- Add your own auth credentials for the service you are using:
CLI_TOOLKIT_DEEPL_API_AUTH_KEY="your_deepl_api_token"
CLI_TOOLKIT_CHATGPT_API_AUTH_KEY="your_chatgpt_api_token"
bin/cli-toolkit translation:yves:generate
locales
: List of locales to which we want the Spryker glossary translated.
--working-dir
: If specified, use the given directory as Spryker project working directory.--translation-engine
: The translation engine to be used for translation generation. Allowed values are deepl or chatgpt [default: "chatgpt"]
- Generate missing translations Yves glossary to Spanish from Spain (es_ES) by ChatGPT.
bin/cli-toolkit translation:yves:generate es_ES --working-dir=../b2b-demo-marketplace- --translation-engine=chatgpt
- Generate missing translations Yves glossary to Spanish from Spain (es_ES) and French from France by DeepL.
bin/cli-toolkit translation:yves:generate es_ES fr_FR --working-dir=../b2b-demo-marketplace --translation-engine=deepl
bin/cli-toolkit translation:zed:generate
locales
: List of locales to which we want the Spryker glossary translated.
--working-dir
: If specified, use the given directory as Spryker project working directory.--translation-engine
: The translation engine to be used for translation generation. Allowed values aredeepl
orchatgpt
[default:chatgpt
]
- Generate missing translations Zed glossary to Spanish from Spain (es_ES) by ChatGPT.
bin/cli-toolkit translation:zed:generate es_ES --working-dir=../b2b-demo-marketplace --translation-engine=chatgpt
- Generate missing translations Zed glossary to Spanish from Spain (es_ES) and French from France by DeepL.
bin/cli-toolkit translation:zed:generate es_ES fr_FR --working-dir=../b2b-demo-marketplace --translation-engine=deepl
We love contributions, big or small. Please don't forget to read the contribution guidelines.
This package is released under the MIT license
Supported with ❤️ by the Spryker Community