You can do that exactly like with NAV. Two possible ways:
- Create a service instance that runs with your developer license and this should be hidden to users
- Use Powershell command: Import-NAVServerLicense (my preferred way) for changing the lincese temporarily.
What normally I do is to create a new service with DEV license "on the fly" with New-NAVServerInstance, I publish the extension on that service and then I remove the service with Remove-NAVServerInstance.