Cannot initialize storage without an autoloaded license

I’m trying to initialize vault enterprise cluster, after exporting the vault licence I’m running vault operator init return error
Screenshot from 2022-04-22 15-05-22

however running vault server -dev works fine

That’s default behavior. If you’re pointing to an storage with enterprise features then you need to supply your license – either by config entry or by environment variable.