This article here shows you how to add the SLE 11 SDK online repositories without media from the command line:

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

This forum post:
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?