Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow starting auth0 simulator via CLI without explicitly using GraphQL #146

Open
taras opened this issue Oct 18, 2021 · 2 comments
Open

Comments

@taras
Copy link
Member

taras commented Oct 18, 2021

Context

I'm working on Auth0 Simulator blog post and I'm hit a point where I need to introduce the simulator. I'm finding the current onboarding experience to be a bit of a leap. I would like to be very simple. I want to be able to say run npx @simulacrum/auth0-simulator start to start your simulator. Instead, I need to give them a bunch of steps on how to start the simulator.

Request

Let's make it possible to start the auth0-simulator without having to run GraphQL. We can later tell people about GraphQL when they have a reason to use it. I propose that we add the following,

  1. add start command to @simulacrum/auth0-simulator bin that will automatically execute the createSimulation mutation.
  2. start command should take --audience, --scope and clientId arguments. We should make sure that createSimulation auth0 client_id vs clientId #124 is not going to cause a problem for people

Unknown questions

  1. Should we allow to automatically create some predefined users so developers could use it for local development?
@cowboyd
Copy link
Member

cowboyd commented Oct 19, 2021

💯 on the one-shot transactional CLI

  • In answer to (1), I think that we should have a --scenario flag that will specify an initial scenario that is used when creating the simulation.
  • also a --port flag to choose where to run it.
  • finally, I think we should have a check or diagnostic command to make sure that SSL is properly configured.

@dagda1
Copy link
Contributor

dagda1 commented Oct 19, 2021

  • In answer to (1), I think that we should have a --scenario flag that will specify an initial scenario that is used when

we had that on the resideo simulator to point to a file

also a --port flag to choose where to run it.

We allowed the whole url to be replaced. I think we need this for mobile simulators

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants