How to Set add unit through server

Are you sure there isn’t? Doing a quick search I could find two!