What exactly is happening when I run 'appium' command in terminal?

Hello, I just want to know what exactly is happening when I run the appium command in the terminal. What processes are started, in what order, etc.?

Thanks