Knowing how to use Unity's command line interface is vital for integrating Unity into your automated build infrastructure. This article shows you how to call Unity from the command line and how to set up complex automations beyond building simple players.
The Unity editor automation cheat sheet helps you to quickly find the function you need for automating the most common tasks in Unity. If you don't know the Unity API inside out, this is giving you a head start.
Hardcoding paths in your automation scripts is not a good idea. This article shows you how to programmatically determine common paths like the user's desktop folder, or the path of the current Unity project, so your automation scripts will work everywhere.