When you're first setting up SLAS for use with PWA Kit (or another headless storefront) it might be nice if there was a fast path "setup" (or similar) command that asked you for the minimal amount of information needed to get started.
It might work something like this:
$ sfcc-ci slas:setup
> What instance will you use? (zzrf_sbx, zzrf_dev, zzrf_stg, zzrf_prd) zzrf_001
> What sites will you use? (RefArch, RefArchGlobal) RefArch
> Will you use it with PWA Kit? (Y/n) Y
> Will you use it with SFRA? (Y/n) Y
> Do you want the default shopper scopes? (Y/n)
Done. You're Client ID is aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa.
Answering this way would create a tenant like this:
Thanks for suggesting @johnboxall ! I like the approach for adding meaningful interactive commands like this one. Do you happen to have a PR for this at that time? 😄
When you're first setting up SLAS for use with PWA Kit (or another headless storefront) it might be nice if there was a fast path "setup" (or similar) command that asked you for the minimal amount of information needed to get started.
It might work something like this:
Answering this way would create a tenant like this:
And a client like this:
Where
clientId
is a generated UUID.