# `mix ussd.simulate`
[🔗](https://github.com/spesohq/ussd/blob/main/lib/mix/tasks/ussd.simulate.ex#L1)

    mix ussd.simulate MyApp.Ussd.States.Welcome
    mix ussd.simulate MyApp.Ussd.States.Welcome --phone 233200000000 --response Ussd.Responses.AfricasTalking

Options:

  * `--phone` - the subscriber identifier to simulate (random by default)
  * `--with KEY=VALUE` - extra context bag values, repeatable
  * `--configurator MODULE` - a `Ussd.Configurator` to apply, repeatable
  * `--response MODULE` - a `Ussd.Response` to preview the gateway payload alongside the message
  * `--continuing-mode start|continue|confirm` (default `start`)
  * `--continuing-state MODULE` - required when `--continuing-mode=confirm`
  * `--continuing-ttl SECONDS`
  * `--store MODULE` - a `Ussd.Cache` implementation to use

Type `:restart` to drop the call without ending the session, `:exit` to hang up.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
