This article here shows you how to add the SLE 11 SDK online repositories without media from the command line:
https://www.novell.com/support/kb/doc.php?id=7015337

However I cannot determine how to do this in SLE 12.

This forum post:
https://forums.suse.com/showthread.p...0176#post30176
instructs you to go into YaST to do it.

However I would like to automate this from the command line.

How do I add the SLE 12 SP1 SDK from the command line?