Now that Aliases are API enabled you could also add them via API https://docs.opnsense.org/development/how-tos/api.html
Aliases can also get copy/pasted from a comma separated list.