How Bench Build Works

Can someone please explain how the bench build command works in Frappe? I’m seeking clarification on the process and would greatly appreciate any insights. Additionally, if there are any references available, they would be very helpful to me. Thank you!