Set Theme on Build / Serve

I’m very new to ionic so I still don’t know much about configuring the project.

One of the things we need to implement is building different apps with different themes. All my research points to theme switching, but what we’re aiming is different.

We have a single code base but will have to create multiple versions mostly only differs in colors. There will only be one theme per app.
If I were to manually do this, and say I want to create a red themed app, I will update the colors in variables.scss then build or serve.
Now if I want to create a green themed app, I just repeat the same process above, change color to green and, build or serve.

Can this be achieved using a configuration setting and select which theme to use on build or serve command,
something like “ionic serve --theme=red” ?

Thanks in advance