Synthetics init
command takes args to skip dialogue steps
#907
Labels
enhancement
New feature or request
init
command takes args to skip dialogue steps
#907
Today, when creating a new project via
npx @elastic/synthetics init
, I am given a number of prompts. This includes my Kibana API key, locations, monitor duration, Kibana spaces, etc.I would like to skip these and get right to managing my project.
The
init
command should allow arguments for these fields, so if we create a project quickstart flow in Kibana we could publish a pre-filled command likenpx @elastic/synthetics init --apiKey {...} --kibanaUrl http://127.0.0.1:5601/ --location us-east --location us-west --period 5 --kibanaSpace default --exportApiKey yes
that the user could then paste to their shell and skip the dialogue altogether.With a feature like this, they could either
npm run push
straight away, or make modifications as needed and push afterwards.We only really require API Key, Kibana URL, and Location input from the user, all the other fields are default-able, so if they're unspecified we can simply supply the default with this usage. For no arguments, we could use the existing wizard dialogue instead.
The text was updated successfully, but these errors were encountered: