storyblok / storyblok-create-demo

Set up a modern framework app with Storyblok by running one command.
9 stars 4 forks source link

Add option for HTTPS #15

Closed roberto-butti closed 1 year ago

roberto-butti commented 2 years ago

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

roberto-butti commented 1 year ago

with v2 it is the only option