The item ID for Old Earth Assault Rifle is 0026ED2A
These are the spawn commands to give yourself Old Earth Assault Rifle in Starfield.
Example spawn commands
Copy the command below and paste it into your Starfield game or server admin console to obtain.
Add item command: This command will spawn Old Earth Assault Rifle in your inventory.
Place at me command: This command will spawn Old Earth Assault Rifle in front of you.