The existing maintenance script createOAuthConsumer.php does not allow creation of owner-only consumers.
This ability would be useful for running integration tests (of applications interfacing with MediaWiki using OAuth) in continuous integration workflows, where an MW instance is freshly created and it is not possible to use GUI to generate the credentials.