SQL Server Command Line Install - How to change the edition?
I found some information about your question.
There is a parameter when you set up on the command line which is /PID.
Check out the document.

Specifies the product key for the edition of SQL Server. If this
parameter is not specified, Evaluation is used.

C:\SQLMedia\SQLServer2019&gt; setup.exe /Q 
/IACCEPTSQLSERVERLICENSETERMS /ACTION=&quot;install&quot; 
/PID=&quot;AAAAA-BBBBB-CCCCC-DDDDD-EEEEE&quot; /FEATURES=SQL,AS,IS,Tools
/INSTANCENAME=MSSQLSERVER /SQLSVCACCOUNT=&quot;MyDomain\MyAccount&quot;

You can use this parameter with the product key.
Evaluation: 00000-00000-00000-00000-00000
Express: 11111-00000-00000-00000-00000
Developer: 22222-00000-00000-00000-00000
Excerpt from the blog of Pinal Dave.