storyblok/storyblok-create-demo

Add option for HTTPS

Closed this issue · 1 comments

With this tool we have a lot of parameters to control the behaviour:

  -d, --folder=folder                  Folder path for the demo (e.g. my-demo)
  -f, --framework=framework            Framework to use (e.g. remix)
  -h, --help                           show CLI help
  -k, --key=key                        Storyblok Access Token
  -l, --localmode                      using the local mode
  -p, --packagemanager=packagemanager  Package manager to use (yarn or npm)
  -r, --region=region                  Space region (e.g. us-east-1)
  -v, --version                        show CLI version

We could add an option for HTTPS (--https), which is the opposite of -l, and automate the answer n to the question:

Storyblok will be served locally on your localhost instead of app.storyblok.com

Expected Behavior

with --https skip the question "Storyblok will be served locally on your localhost instead of app.storyblok.com" and use the https configuration (same behaviour if the user answer n to the question

with v2 it is the only option