simulacrum
simulacrum copied to clipboard
Allow starting auth0 simulator via CLI without explicitly using GraphQL
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,
- add
startcommand to@simulacrum/auth0-simulatorbin that will automatically execute thecreateSimulationmutation. startcommand should take--audience,--scopeandclientIdarguments. We should make sure that #124 is not going to cause a problem for people
Unknown questions
- Should we allow to automatically create some predefined users so developers could use it for local development?
💯 on the one-shot transactional CLI
- In answer to (1), I think that we should have a
--scenarioflag that will specify an initial scenario that is used when creating the simulation. - also a
--portflag to choose where to run it. - finally, I think we should have a
checkordiagnosticcommand to make sure that SSL is properly configured.
- In answer to (1), I think that we should have a
--scenarioflag 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