Implement "lib register" command