Hi @Siegfried Heintze , welcome to Microsoft Q&A forum.
You can check the below link that has Azure CLI script for creating the Azure Cache for Redis:
https://video2.skills-academy.com/en-us/azure/azure-cache-for-redis/scripts/create-cache
Please let us know if this is what you are looking for or else we can discuss further.
----------
If answer helps, please mark it 'Accept Answer'