Lifecycle of a command
Before you understand how to define a command, you need to understand the lifecycle of a command.
Let's say you are the owner of the command /xyz
/xyz pqr 123
Yelo reads the definition(DNA) of /xyz command and tries to match the line typed by the user with the required / optional args. Once a match is found in your DNA, we create a request JSON which is sent to the endpoint mentioned in the DNA on the "/xyz command server" maintained by you.
This endpoint will take in the request arguments and respond back to the engine. This response is then sent back to the users / clients.